Devops Tutorial
*****************CODE USED FOR INSTALLATION******************* sudo su yum install httpd php yum install gcc glibc glibc-common yum install gd gd-devel adduser -m nagios passwd nagios groupadd nagioscmd usermod -a -G nagioscmd nagios usermod -a -G nagioscmd apache mkdir ~/downloads cd ~/downloads wget https://liquidtelecom.dl.sourceforge.net/project/nagios/nagios-4.x/nagios-4.4.13/nagios-4.4.13.tar.gz
wget http://nagios-plugins.org/download/nagios-plugins-2.0.3.tar.gz
tar zxvf nagios-4.0.8.tar.gz
cd nagios-4.0.8
./configure --with-command-group=nagioscmd
make all
make install
make install-init
make install-config
make install-commandmode
make install-webconf
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
service httpd restart
cd ~/downloads
tar zxvf nagios-plugins-2.0.3.tar.gz
cd nagios-plugins-2.0.3
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
make install
chkconfig --add nagios
chkconfig nagios on
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
service nagios start
service httpd restart
****************************END OF CODE *******************************
0 Comments: