Dnsmasq as a light weight alternative to named, will appear in the linux process. E.g. when issuing the command ps -C dnsmasq
Pre-configuration checklist:
Ensure NRPE is installed and working on the host.
Step 1: Update nrpe.cfg with following;
# vi /etc/nagios/nrpe.cfgAdd the line
command[check_dnsmasq]=/usr/lib64/nagios/plugins/check_procs -C dnsmasq -w 5 -c 10
Save and test the new nrpe command;
# /usr/lib64/nagios/plugins/check_procs -C dnsmasq -w 5 -c 10
PROCS OK: 1 process with command name 'dnsmasq'
#service nrpe restart
Step 2: Add this service to the Nagios host
# vi /etc/nagios/servers/server1.cfgdefine service{
use generic-service
host_name lbserver2
service_description Dnsmasq
check_command check_nrpe!check_dnsmasq
}
Save and restart Nagios
No comments:
Post a Comment