Nagios Comunity

Following the guide of linuxacademy on the course "Linux By Example For Novices To Pros"

Prerequisite

we need to install somethings and add user and group that nagios use

apt-get install wget build-essential apache2 php5-gd libgd2-xpm-dev libapache2-mod-php5
useradd nagios
groupadd nagcmd
usermod -a -G nagcmd nagios

after download nagios-core from sourceforge.net

 ./configure --with-nagios-group=nagios --with-command-group=nagcmd --with-mail=/usr/bin/sendmail

the make didn't work for me

to find if the agent is running on a machine to monitor

[root@localhost ~]# netstat -at | grep nrpe
tcp        0      0 *:nrpe                      *:*                         LISTEN
  • /usr/local/nagios/etc/hosts.cfg
host.png
  • /usr/local/nagios/etc/service.cfg
the things to check everytime you add nagios to our system
service.png
  • verify nagios configuration to check the validation
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Salvo diversa indicazione, il contenuto di questa pagina è sotto licenza Creative Commons Attribution-ShareAlike 3.0 License