We have CentOS Linux Operating System as a Server OS

[root@nagiosprod nagios]# yum install httpd php gcc glibc glibc-common gd gd-devel
[root@nagiosprod nagios]# yum install httpd php gcc glibc glibc-common gd gd-devel openssl-devel wget perl make
[root@nagiosprod nagios]# /usr/sbin/groupadd -g 310 nagios
[root@nagiosprod nagios]# /usr/sbin/useradd -g 310 -u 310 -c "Nagios" -d /home/nagios nagios
[root@nagiosprod nagios]# passwd -x nagios
[root@nagiosprod nagios]# wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-4.0.6.tar.gz

[root@nagiosprod nagios]# /usr/sbin/groupadd -g 311 nagcmd
[root@nagiosprod nagios]# /usr/sbin/usermod -G nagcmd nagios
[root@nagiosprod nagios]# export LDOPTS="-L /opt/nagios/lib"
[root@nagiosprod nagios]#./configure --prefix=/opt/nagios --with-command-group=nagcmd --with-gd-lib=/opt/nagios/lib --with-gd-inc=/opt/nagios/include && echo "Configure Script Successfully Done Powerd By Zeeshan.Bhatti@arpatech.com"
[root@nagiosprod nagios]# cd common
[root@nagiosprod common]# gcc -c snprintf.c

[root@nagiosprod nagios]# make all && echo "Make All Script Successfully Done Powerd By Zeeshan.Bhatti@arpatech.com"
[root@nagiosprod nagios]# make install && echo "Make Install Script Successfully Done Powerd By Zeeshan.Bhatti@arpatech.com"
[root@nagiosprod nagios]# make install-init && echo "Make Install-init Script Successfully Done Powerd By Zeeshan.Bhatti@arpatech.com"
[root@nagiosprod nagios]# make install-config && echo "Make Install-config Script Successfully Done Powerd By Zeeshan.Bhatti@arpatech.com"
[root@nagiosprod nagios]# make install-commandmode && echo "Make Install-commandmode Script Successfully Done Powerd By Zeeshan.Bhatti@arpatech.com"
[root@nagiosprod nagios]# make install-webconf && echo "Make Install-webconfig Script Successfully Done Powerd By Zeeshan.Bhatti@arpatech.com"
[root@nagiosprod nagios]# htpasswd -c /opt/nagios/etc/htpasswd.users nagiosadmin
New password:
Re-type new password:
Adding password for user nagiosadmin

Nagios Plugins Deployment.

[root@nagiosprod nagios]# cd /tmp/nagios
[root@nagiosprod nagios]#  wget http://nagios-plugins.org/download/nagios-plugins-1.4.16.tar.gz
[root@nagiosprod nagios]# tar xvf nagios-plugins-1.4.16.tar.gz
[root@nagiosprod nagios]# cd nagios-plugins-1.4.16
[root@nagiosprod nagios-plugins-1.4.16]# ./configure --prefix=/opt/nagios --with-nagios-user=nagios --with-nagios-group=nagios --with-ping-command=/usr/sbin/ping && echo "Configure Script Successfully Done Powerd By Zeeshan.Bhatti@arpatech.com"
[root@nagiosprod nagios-plugins-1.4.16]# make && echo "Make All Script Successfully Done Powerd By Zeeshan.Bhatti@arpatech.com"
[root@nagiosprod nagios-plugins-1.4.16]# make install && echo "Make Install Script Successfully Done Powerd By Zeeshan.Bhatti@arpatech.com"

THE END

[root@nagiosprod nagios-plugins-1.4.16]# /usr/sbin/usermod -a -G nagcmd apache
[root@nagiosprod nagios-plugins-1.4.16]# service nagios restart
Running configuration check...done.
Stopping nagios: done.
Starting nagios: done.
[root@nagiosprod nagios-plugins-1.4.16]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
(NRPE Installation)
[root@nagiosprod nagios]# yum install nrpe nagios-common nagios-plugins nagios-plugins-{disk,dns,users,load,procs}
[root@nagiosprod nagios]# wget dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
[root@nagiosprod nagios]# yum install -y nrpe nagios-plugins-all openssl

 

Recommended For You.

After successful installation of MantisBT on CentOS 6. Now its time to setup some more things: For Installation howto: http://opensourceeducation.net/installing-mantisbt-bug-tracking-system/#sthash.oXnInyCz.dpbs =============================================== Email Settings: -------------- For Email