How to install Nagios Monitoring Tool
Step:- 1
Install Http, Gcc, Glibd-common, Gd, Gd-devel's
# http, php, gcc, glibc-common gd gd-devel's all packeges will
yum -y install httpd php gcc glibc-common gd gd-devel
Step:- 2
# New user and group created then and set it the secondory
# Group of new useruseradd -m nagios
passwd -d nagios
# New group is created
groupadd nagcmd
# Apache and new user are added in that group
usermod -a -G nagcmd nagios
usermod -a -G nagcmd apache
Step:- 3
# Extract nagios tar
tar xvzf nagios-3.2.0.tar.gz
cd nagios-3.2.0
Step:- 4
# Run the exicutable file with adding new group./configure --with-command-group=nagcmd
Step:- 5
# Bind configuration with system
make all
make install
make install-init
make install-config
make install-commandmode
make install-webconf
Step:- 6
# Set password for accessing nagios by user
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
Step:- 7
# Service of http is started
service httpd restart
Step:- 8
# Extract plugin of nagios
tar xvzf nagios-plugins-1.4.13.tar.gz
cd nagios-plugins-1.4.13
Step:- 9
# Run the exicutable file with adding new group and user./configure --with-nagios-user=nagios --with-nagios-group=nagios
Step:- 10
# Bind plugin with system configurationmake
make install
Step :- 11
Start nagios Service service nagios start
chkconfig nagios on
Step:- 12
# Varified that nagios i sworking or any error /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Step:- 13
# Verver address adding in configuration file of httpvi /etc/httpd/conf/httpd.conf
Step:- 14
Restart Nagios and Httpd Services
service httpd restart
service nagios restart
Step:- 15
# Nagios is going to be started..........firefox http://localhost/nagios
Very Good Post. Succesefully Setup Nagios Core.
ReplyDeleteWrite Step by STep for Nagios XI