Setup Nagios Server for monitoring with Redhat 7
$ yum -y install httpd php gcc glibc glibc-common wget perl gd gd-devel unzip zip
$ useradd nagios
$ groupadd nagcmd
$ usermod -a -G nagcmd nagios
$ usermod -a -G nagcmd apache
$ cd /tmp/
$ wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.4.3.tar.gz
$ tar -zxvf nagios-4.4.3.tar.gz
$ cd /tmp/nagios-4.4.3
$ ./configure --with-nagios-group=nagios --with-command-group=nagcmd
make all
make install
make install-init
make install-config
make install-commandmode
make install-webconf
make install-exfoliation
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
systemctl restart httpdyum -y install httpd php gcc glibc glibc-common wget perl gd gd-devel unzip zip
useradd nagios
groupadd nagcmd
usermod -a -G nagcmd nagios
usermod -a -G nagcmd apache
cd /tmp/
wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.4.3.tar.gz
tar -zxvf nagios-4.4.3.tar.gz
cd /tmp/nagios-4.4.3
./configure --with-nagios-group=nagios --with-command-group=nagcmd
make all
make install
make install-init
make install-config
make install-commandmode
make install-webconf
make install-exfoliation
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
systemctl restart httpd
systemctl enable httpd
---Install Plugins-----
cd /tmp
wget https://nagios-plugins.org/download/nagios-plugins-2.2.1.tar.gz
tar -zxvf nagios-plugins-2.2.1.tar.gz
cd /tmp/nagios-plugins-2.2.1/
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
make install
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
service nagios restart
check if selinux enable disabled it or disable for temporary
setenfource 0
firewall-cmd --permanent --add-service=http
firewall-cmd --reload
systemctl enable httpd
---Install Plugins-----
cd /tmp
wget https://nagios-plugins.org/download/nagios-plugins-2.2.1.tar.gz
tar -zxvf nagios-plugins-2.2.1.tar.gz
cd /tmp/nagios-plugins-2.2.1/
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
make install
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
service nagios restart
check if selinux enable disabled it or disable for temporary
setenfource 0
firewall-cmd --permanent --add-service=http
firewall-cmd --reload
$ useradd nagios
$ groupadd nagcmd
$ usermod -a -G nagcmd nagios
$ usermod -a -G nagcmd apache
$ cd /tmp/
$ wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.4.3.tar.gz
$ tar -zxvf nagios-4.4.3.tar.gz
$ cd /tmp/nagios-4.4.3
$ ./configure --with-nagios-group=nagios --with-command-group=nagcmd
make all
make install
make install-init
make install-config
make install-commandmode
make install-webconf
make install-exfoliation
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
systemctl restart httpdyum -y install httpd php gcc glibc glibc-common wget perl gd gd-devel unzip zip
useradd nagios
groupadd nagcmd
usermod -a -G nagcmd nagios
usermod -a -G nagcmd apache
cd /tmp/
wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.4.3.tar.gz
tar -zxvf nagios-4.4.3.tar.gz
cd /tmp/nagios-4.4.3
./configure --with-nagios-group=nagios --with-command-group=nagcmd
make all
make install
make install-init
make install-config
make install-commandmode
make install-webconf
make install-exfoliation
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
systemctl restart httpd
systemctl enable httpd
---Install Plugins-----
cd /tmp
wget https://nagios-plugins.org/download/nagios-plugins-2.2.1.tar.gz
tar -zxvf nagios-plugins-2.2.1.tar.gz
cd /tmp/nagios-plugins-2.2.1/
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
make install
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
service nagios restart
check if selinux enable disabled it or disable for temporary
setenfource 0
firewall-cmd --permanent --add-service=http
firewall-cmd --reload
systemctl enable httpd
---Install Plugins-----
cd /tmp
wget https://nagios-plugins.org/download/nagios-plugins-2.2.1.tar.gz
tar -zxvf nagios-plugins-2.2.1.tar.gz
cd /tmp/nagios-plugins-2.2.1/
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
make install
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
service nagios restart
check if selinux enable disabled it or disable for temporary
setenfource 0
firewall-cmd --permanent --add-service=http
firewall-cmd --reload
Comments
Post a Comment