swift 08/07/09 16:54:14 Modified: nagios-guide.xml Log: Adding some nrpe stuff
Revision Changes Path 1.5 xml/htdocs/doc/en/nagios-guide.xml file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/nagios-guide.xml?rev=1.5&view=markup plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/nagios-guide.xml?rev=1.5&content-type=text/plain diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/nagios-guide.xml?r1=1.4&r2=1.5 Index: nagios-guide.xml =================================================================== RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/nagios-guide.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- nagios-guide.xml 7 Jul 2008 20:02:46 -0000 1.4 +++ nagios-guide.xml 9 Jul 2008 16:54:13 -0000 1.5 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/nagios-guide.xml,v 1.4 2008/07/07 20:02:46 swift Exp $ --> +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/nagios-guide.xml,v 1.5 2008/07/09 16:54:13 swift Exp $ --> <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> <guide disclaimer="draft"> @@ -265,8 +265,11 @@ <p> Next, edit <path>/etc/nagios/nrpe.cfg</path> to allow your main Nagios system to -access the NRPE daemon and customize the installation to your liking. Finally, -launch the NRPE daemon: +access the NRPE daemon and customize the installation to your liking. Another +important change to the <path>nrpe.cfg</path> file is the list of commands that +NRPE supports. For instance, to use <c>nagios-nrpe</c> version 2.12 with Nagios +3, you'll need to change the paths from <path>/usr/nagios/libexec</path> to +<path>/usr/lib/nagios/plugins</path>. Finally, launch the NRPE daemon: </p> <pre caption="Launching the NRPE daemon"> @@ -345,7 +348,32 @@ </pre> <p> -Finally, define the service(s) you want to check on these hosts. +Finally, define the service(s) you want to check on these hosts. As a prime +example, we run the system load test and disk usage plugins: +</p> + +<pre caption="Define the services to check"> +# <i>nano /etc/nagios/objects/remote/nrpe-services.cfg</i> + +define service { + use generic-service + host_name webber,isync + service_description Current Load + check_command check_nrpe!check_load +} + +define service { + use generic-service + host_name webber,isync + service_description Root Partition + check_command check_nrpe!check_disk +} +</pre> + +<p> +That's it. If you now check the service details on the Nagions monitoring site +you'll see that the remote hosts are connected and are transmitting their +monitoring metrics to the Nagios server. </p> </body> -- [email protected] mailing list
