Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

yum install -y httpd php gcc glibc-common gd gd-devel make net-snmp

useradd nagios
groupadd nagcmd
usermod -g nagcmd nagios
usermod -g nagcmd apache
mkadir /root/nagios
cd /root/nagios
wget (nagios_link)
wget (nagios_plugins_link)
tar - xvf (nagios-4.5.0).tar.gz
tar -xvf (nagios-plugins-2.7.0).tar.gz
cd nagios-4.5.0
./configure --with-command-group=nagcmd
make all
make install
make install-init
make install_commandmode
make install-config
nano /usr/local/nagios/ect/objects/contacts.cfg (change email)
make install-webconf
htpasswd -s -c /usr/local/nagios/ect/htpasswd.users
systemctl start httpd.service
cd /root/nagios
cd nagios-plugins-2.7.0
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
make install
/usr/local/nagios/bin/nagios -v /usr/local/nagios/ect/nagios.cfg
*chkconfig --add nagios
*chkconfig --add level 35 nagios on
*chkconfig __add httpd
*chkconfig --level 35 httpd on
systemctl enable nagios
systemclt enabel httpd
systemctl start nagios.service
*vi /ect/httpd/conf.d/nagios.conf
systemctl restart httpd

You might also like