I am assuming that you have a Nagios server already running and NRPE installed on the systems running Puppet and Monit.
Check to make sure Puppet is running:
checkcommands.cfg:# 'check_puppetd' command definition
checkcommands.cfg: command_name check_puppetd
checkcommands.cfg: command_line $USER1$/check_procs -c 1:1 -C /usr/sbin/puppetd
Check to make sure Monit is running: (Notice full name to avoid 'monitor' processes)
checkcommands.cfg:# 'check_monit' command definittion
checkcommands.cfg: command_name check_monit
checkcommands.cfg: command_line $USER1$/check_procs -c 1:1 -C /usr/local/bin/monit
or
in checkcommands.cfg
define command{
command_name check_remote_proc
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c check_proc_$ARG1$
}
in services.cfg:
define service{
use prod-tmpl
host_name puppet1
service_description puppetd
check_command check_remote_proc!puppetd
}
define service{
use prod-tmpl
host_name puppet1
service_description monit
check_command check_remote_proc!monit
}
No comments:
Post a Comment