Nagios Monitoring Server Installation & Configuration on
RedHat 6/CentOS 6
Download following packages nagios and nagios-plugin
Install following packages will be required for nagios
installation
Packages and versions used:
a.
nagios-3.3.1.tar
b.
nagios-plugins-1.4.15.tar
1.
Download the following dependency for nagios
installation
yum install httpd
php gcc glibc glibc-common gd gd-devel openssl*
2.
Now add a user ‘nagios’ and group ‘nagms’
useradd
nagios
passwd nagios
groupadd nagms
3.
Now add nagios and apache to nagms group
usermod –g
nagms nagios
usermod –g nagms apache
5.
Untar the nagios package
tar xvfz nagios-3.3.1.tar
cd nagios-3.3..1/
./configure –with-coomand-group=nagms
make all
make install
make install-init
make install-config
make install-commandmode
make install webconf
Now Nagios server installation is complete.
We can now customize our nagios server.
6.
Edit admin email account
vim
/usr/local/nagios/etc/objects/contacts.cfg
7.
Now create a user for login using web browser
htpasswd -c /usr/local/nagios/etc/htpasswd.users
nagiosuser
service httpd restart
9. Untar the package
tar xvfz nagios-plugins-1.4.15.tar
cd nagios-plugins-1.4.15/
./configure
make
make install
chkconfig nagios on
service nagios restart
10.
To check whether installation is done without
error, run this
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nag ios.cfg
0 comments:
Post a Comment
Note: only a member of this blog may post a comment.