NAGIOS
NAGIOS
monitoring:
Nagios: it is an open source it infra monitoring: tools
Nagios Package:
1) Nagios-core
2) Nagios-Pligin
Client:
Nagios-NRPE
# yum install -y httpd httpd-tools php gcc glibc glibc-common gd gd-devel make
net-snmp
# useradd nagios
# groupadd nagcmd
# wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-
4.4.5.tar.gz
# ls
# ls
# cd nagios-4.4.5.tar.gz
# ./configure --with-command-group=nagcmd
# make all
# make install
# make install-init
# make install-commandmode
# make install-config
# ls /usr/local/nagios/etc/objects
# make install-webconf
# vi /etc/httpd/conf.d/nagios.conf (to see only)
#nagiosadmin
# cat /usr/local/nagios/etc/htpasswd.users
# wget https://nagios-plugins.org/download/nagios-plugins-2.2.1.tar.gz
wget https://www.nagios.org/downloads/nagios-plugins-2.3.3.tar.gz
# ls
# ls
# cd nagios-plugins-2.2.1
# ls /usr/local/nagios/libexec/
# make
# make install
# cd
# ls /usr/local/nagios/libexec
# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
( verify the semple Nagios configuration files )
# cd /usr/local/nagios
# ls
# cd etc/
# ls
# objects/
# ls
# vim localhost.cfg
if you want to stop any service so just go to this localhost.cfg file and type
register 0
# ./check_users -w 5 -c 10
# ./check_users -w 0 -c 1
# ./check_disk -w 20% -p /
# ./check_disk --help