Nagios Monitoring Basic Setup
Jump to navigation
Jump to search
Nagios Monitoring Basic Setup
In Remote server :
Step 1 : Add Check Commands in NRPE
[edit]vim /etc/nagios/nrpe.cfg
command[check_users]=/usr/lib/nagios/plugins/check_users -w 5 -c 10 command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 command[check_hda1]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/hda1 command[check_zombie_procs]=/usr/lib/nagios/plugins/check_procs -w 5 -c 10 -s Z command[check_total_procs]=/usr/lib/nagios/plugins/check_procs -w 150 -c 200
Step 2 : Restart the nrpe service
In ubuntu :
sudo /etc/init.d/nagios-nrpe-server start sudo /etc/init.d/nagios-nrpe-server restart
In Nagios Server :
1)Create conf file
cd /usr/local/nagios/etc/servers/
Just copy the existing conf file and rename it.
Open the conf file and edit IP address and server name .