Nagios Core + Nagios plugins basic install from source on Centos 6.x
Download nagios core source In my case the latest stable nagios is nagios-4.0.8 Here’s the URL: http://www.nagios.org/download/core/thanks/?t=1414494536 Install some dependecy packages
1 |
yum install httpd php gd gd-devel gcc glibc glibc-common openssl perl perl-devel make mailx |
Create nagios user/groups
1 2 3 |
useradd nagios groupadd nagcmd usermod -a -G nagcmd nagios |
Untar the source and install
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
# Untar and go to source dir tar xvzf nagios-4.0.8.tar.gz && cd nagios-4.0.8 # Configure ./configure --with-command-group=nagcmd # Make + make installs make all make install make install-init make install-config make install-commandmode make install-webconf # The last one creates apache configuration here: /etc/httpd/conf.d/nagios.conf |
Copy event handlers
1 2 |
cp -rvf contrib/eventhandlers/ /usr/local/nagios/libexec/ chown -R nagios:nagios /usr/local/nagios/libexec/eventhandlers |
Syntax check nagios.cfg configuration file
1 2 |
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg |
Create htpasswd containing access credentials The credentials… Continue reading Nagios Core + Nagios plugins basic install from source on Centos 6.x