1 |
swift 08/07/09 16:54:14 |
2 |
|
3 |
Modified: nagios-guide.xml |
4 |
Log: |
5 |
Adding some nrpe stuff |
6 |
|
7 |
Revision Changes Path |
8 |
1.5 xml/htdocs/doc/en/nagios-guide.xml |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/nagios-guide.xml?rev=1.5&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/nagios-guide.xml?rev=1.5&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/nagios-guide.xml?r1=1.4&r2=1.5 |
13 |
|
14 |
Index: nagios-guide.xml |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/nagios-guide.xml,v |
17 |
retrieving revision 1.4 |
18 |
retrieving revision 1.5 |
19 |
diff -u -r1.4 -r1.5 |
20 |
--- nagios-guide.xml 7 Jul 2008 20:02:46 -0000 1.4 |
21 |
+++ nagios-guide.xml 9 Jul 2008 16:54:13 -0000 1.5 |
22 |
@@ -1,5 +1,5 @@ |
23 |
<?xml version="1.0" encoding="UTF-8"?> |
24 |
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/nagios-guide.xml,v 1.4 2008/07/07 20:02:46 swift Exp $ --> |
25 |
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/nagios-guide.xml,v 1.5 2008/07/09 16:54:13 swift Exp $ --> |
26 |
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
27 |
|
28 |
<guide disclaimer="draft"> |
29 |
@@ -265,8 +265,11 @@ |
30 |
|
31 |
<p> |
32 |
Next, edit <path>/etc/nagios/nrpe.cfg</path> to allow your main Nagios system to |
33 |
-access the NRPE daemon and customize the installation to your liking. Finally, |
34 |
-launch the NRPE daemon: |
35 |
+access the NRPE daemon and customize the installation to your liking. Another |
36 |
+important change to the <path>nrpe.cfg</path> file is the list of commands that |
37 |
+NRPE supports. For instance, to use <c>nagios-nrpe</c> version 2.12 with Nagios |
38 |
+3, you'll need to change the paths from <path>/usr/nagios/libexec</path> to |
39 |
+<path>/usr/lib/nagios/plugins</path>. Finally, launch the NRPE daemon: |
40 |
</p> |
41 |
|
42 |
<pre caption="Launching the NRPE daemon"> |
43 |
@@ -345,7 +348,32 @@ |
44 |
</pre> |
45 |
|
46 |
<p> |
47 |
-Finally, define the service(s) you want to check on these hosts. |
48 |
+Finally, define the service(s) you want to check on these hosts. As a prime |
49 |
+example, we run the system load test and disk usage plugins: |
50 |
+</p> |
51 |
+ |
52 |
+<pre caption="Define the services to check"> |
53 |
+# <i>nano /etc/nagios/objects/remote/nrpe-services.cfg</i> |
54 |
+ |
55 |
+define service { |
56 |
+ use generic-service |
57 |
+ host_name webber,isync |
58 |
+ service_description Current Load |
59 |
+ check_command check_nrpe!check_load |
60 |
+} |
61 |
+ |
62 |
+define service { |
63 |
+ use generic-service |
64 |
+ host_name webber,isync |
65 |
+ service_description Root Partition |
66 |
+ check_command check_nrpe!check_disk |
67 |
+} |
68 |
+</pre> |
69 |
+ |
70 |
+<p> |
71 |
+That's it. If you now check the service details on the Nagions monitoring site |
72 |
+you'll see that the remote hosts are connected and are transmitting their |
73 |
+monitoring metrics to the Nagios server. |
74 |
</p> |
75 |
|
76 |
</body> |
77 |
|
78 |
|
79 |
|
80 |
-- |
81 |
gentoo-doc-cvs@l.g.o mailing list |