File: startstop.html

package info (click to toggle)
icinga 1.0.2-2%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 33,952 kB
  • ctags: 13,294
  • sloc: xml: 154,821; ansic: 99,198; sh: 14,585; sql: 5,852; php: 5,126; perl: 2,838; makefile: 1,268
file content (144 lines) | stat: -rw-r--r-- 6,890 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Starting and Stopping Icinga</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.1">
<meta name="keywords" content="Supervision, Icinga, Nagios, Linux">
<link rel="home" href="index.html" title="Icinga Version 1.0.2 Documentation">
<link rel="up" href="ch04.html" title="Chapter 4. Running Icinga">
<link rel="prev" href="verifyconfig.html" title="Verifying Your Configuration">
<link rel="next" href="ch05.html" title="Chapter 5. The Basics">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<CENTER><IMG src="../images/logofullsize.png" border="0" alt="Icinga" title="Icinga"></CENTER>
<div class="navheader">
<table width="100%" summary="Navigation header">
<tr><th colspan="3" align="center">Starting and Stopping Icinga</th></tr>
<tr>
<td width="20%" align="left">
<a accesskey="p" href="verifyconfig.html">Prev</a> </td>
<th width="60%" align="center">Chapter 4. Running Icinga</th>
<td width="20%" align="right"> <a accesskey="n" href="ch05.html">Next</a>
</td>
</tr>
</table>
<hr>
</div>
<div class="section" title="Starting and Stopping Icinga">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="startstop"></a><a name="start_stop"></a>Starting and Stopping Icinga</h2></div></div></div>
  

  <p>There are different ways to start, stop, and restart Icinga. Depending on your installation, the most common example will be
  shown... In case of using the init script make sure you have performed </p>
<pre class="programlisting"> #&gt; make install-init</pre>
<p> or
  </p>
<pre class="programlisting"> #&gt; make fullinstall</pre>

  <div class="tip" title="Tip" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Tip">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Tip]" src="../images/tip.png"></td>
<th align="left">Tip</th>
</tr>
<tr><td align="left" valign="top">
    <p>Always make sure you're <a class="link" href="verifyconfig.html" title="Verifying Your Configuration">verified your configuration</a> before you (re)start Icinga.</p>
  </td></tr>
</table></div>

  <p><span class="bold"><strong>Starting Icinga</strong></span></p>

  <div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
      <p><span class="bold"><strong>Init Script:</strong></span> The easiest way to start Icinga is by using the init script:
      </p>
<pre class="programlisting"> #&gt; /etc/init.d/icinga start</pre>
    </li>
<li class="listitem">
      <p><span class="bold"><strong>Manually:</strong></span> You can start Icinga manually launching the daemon mode with the <span class="bold"><strong>-d</strong></span> command line option: </p>
<pre class="programlisting"> #&gt; /usr/local/icinga/bin/icinga -d /usr/local/icinga/etc/icinga.cfg</pre>
    </li>
<li class="listitem">
      <p><span class="bold"><strong>Debugging Mode:</strong></span> In the very rare case that Icinga ends silently without any hints in the
      various log files you can start Icinga by omitting the daemon option: </p>
<pre class="programlisting"> #&gt; /usr/local/icinga/bin/icinga /usr/local/icinga/etc/icinga.cfg</pre>
<p>
      This way it is started in the foreground which will lead to a lot of messages scrolling down the screen but it may result in a clue at
      the very end.</p>
    </li>
</ol></div>

  <p><span class="bold"><strong>Restarting Icinga</strong></span></p>

  <p>Restarting/reloading is necessary if you modify your configuration files and want those changes to take effect.</p>

  <div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
      <p><span class="bold"><strong>Init Script:</strong></span> The easiest way to reload/restart Icinga is by using the init script:
      </p>
<pre class="programlisting"> #&gt; /etc/init.d/icinga reload</pre>
<p> or </p>
<pre class="programlisting"> #&gt; /etc/init.d/icinga restart</pre>
<p>
      The difference between the two is that the latter will actually end the Icinga process and start it again. The first rereads the
      configuration files which is faster but in some cases may not be sufficient.</p>
    </li>
<li class="listitem">
      <p><span class="bold"><strong>Web-Interface:</strong></span> You can restart Icinga using the web interface. Click on the "Process
      Info" navigation link and select "Restart the Icinga Process"</p>

      <p><span class="inlinemediaobject"><img src="../images/stoprestart.png"></span></p>
    </li>
<li class="listitem">
      <p><span class="bold"><strong>Manually:</strong></span> You can restart Icinga by sending it a SIGHUP signal: </p>
<pre class="programlisting"># kill -HUP &lt;icinga_pid&gt;</pre>
    </li>
</ol></div>

  <p><span class="bold"><strong>Stopping Icinga</strong></span></p>

  <div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
      <p><span class="bold"><strong>Init Script:</strong></span> The easiest way to stop Icinga is by using the init script:
      </p>
<pre class="programlisting"># /etc/init.d/icinga stop</pre>
    </li>
<li class="listitem">
      <p><span class="bold"><strong>Web-Interface:</strong></span> You can stop Icinga using the Web-Interface Click on the "Process Info"
      navigation link and select "Shutdown the Icinga Process"</p>
      <p><span class="inlinemediaobject"><img src="../images/stoprestart.png"></span></p>
    </li>
<li class="listitem">
      <p><span class="bold"><strong>Manually:</strong></span> You can stop by sending it a SIGTERM signal: </p>
<pre class="programlisting"># kill &lt;icinga_pid&gt;</pre>
    </li>
</ol></div>

  <p><span class="bold"><strong>Miscellaneous options</strong></span></p>

  <p>If you experience long delays between starting Icinga and the first checks you can use several other options which are shown
  <a class="link" href="faststartup.html" title="Fast Startup Options">here</a>. How to have a look at the scheduling queue (-S) is described there as well.</p>

  <a class="indexterm" name="id1964021"></a>
  <a class="indexterm" name="id1964037"></a>
</div>
<div class="navfooter">
<hr>
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
<a accesskey="p" href="verifyconfig.html">Prev</a> </td>
<td width="20%" align="center"><a accesskey="u" href="ch04.html">Up</a></td>
<td width="40%" align="right"> <a accesskey="n" href="ch05.html">Next</a>
</td>
</tr>
<tr>
<td width="40%" align="left" valign="top">Verifying Your Configuration </td>
<td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td>
<td width="40%" align="right" valign="top"> Chapter 5. The Basics</td>
</tr>
</table>
</div>
<P class="copyright">© 2009-2010 Icinga Development Team, http://www.icinga.org</P>
</body>
</html>