Changes

Jump to: navigation, search

How to Setup and configure Nagios

4 bytes added, 20:14, 8 December 2010
4.0 Server Installation (using yum utility)
<code>command[check_total_procs]=/usr/lib64/nagios/plugins/check_procs -w 700 -c 900</code>
<pre>Note: If you're running the NRPE daemon as a standalone daemon you'll need to restart it. If you're running it under the inetd/xinetd superserver you don't need to do anything more.</pre>
'''4.5 Create a command definition'''
<pre>Note: You'll need to create a command definition in one of your Nagios object configuration files in order to use the check_nrpe plugin. Open the sample commands.cfg file for editing...</pre>
<code>vi /usr/local/nagios/etc/commands.cfg</code>
'''4.6 Edit localhost.cfg file'''
<pre>Note: The localhost .cfg file can be created from one of the templates.cfg files located in the /etc/nagios/objects directory, here is a brief view of how your localhost.cfg file should appear</pre>
<pre>
<code>vi /etc/httpd/conf.d/nagios.cfg </code>
<pre>Note: The current machine has Fedora 13, however, for a machine running Fedora 12 it may differ eg. ScriptAlias /nagios/cgi-bin “/usr/lib64/nagios/cgi-bin/”
It's important that these directory paths exist and contain the appropriate content.
1
edit

Navigation menu