Open main menu

CDOT Wiki β

Changes

How to Setup and configure Nagios

11 bytes added, 17:24, 14 November 2010
no edit summary
* Monitor Nagios clients
 
'''2.2 Prerequisites'''
<code>yum install gd gd-devel</code>
 
'''2.3 Create Account Information'''
<code>usermod -a -G nagcmd apache</code>
 
'''2.4 Download Nagios and the Plugins'''
<pre>Note: DO NOT start Nagios yet</pre>
 
'''2.6 Customize Configuration'''
<pre>Note: this will be changed to Chris Tyler’s email.</pre>
 
'''2.7 Configure the Web Interface'''
3. Restart Apache to make the new settings take effect.
<code>service httpd restart</code>
 
'''2.8 Compile and Install the Nagios Plugins'''
<code>make install</code>
 
'''2.9 Start Nagios'''
3. If there are no errors, start Nagios. If you got errors, please check nagios.cfg file in step 2, and try it again.
<code>service nagios start </code>
 
'''2.10 Modify SELinux Settings'''
<code>chcon -R -t httpd_sys_content_t /usr/local/nagios/share/ </code>
 
'''2.11 Login to the Web Interface'''
Click on the "Service Detail" navigational bar link to see details of what's being monitored on your local machine. It will take a few minutes for Nagios to check all the services associated with your machine, as the checks are spread out over time.
 
'''2.12 Open Port 5666 on Firewall'''
<code>service iptables save</code>
 
'''2.13 You're Done'''
1
edit