diff --git a/servers/puppet/files/nagios3/commands.cfg b/servers/puppet/files/nagios3/commands.cfg index 227884b5cc..bf93713076 100644 --- a/servers/puppet/files/nagios3/commands.cfg +++ b/servers/puppet/files/nagios3/commands.cfg @@ -94,3 +94,8 @@ define command{ command_name check_feedback_bot command_line /usr/lib/nagios/plugins/check_by_ssh -p $ARG1$ -l nagios -t 30 -i /var/lib/nagios/.ssh/id_rsa -H $HOSTADDRESS$ -C '/usr/lib/nagios/plugins/check_procs -c 1:1 -a "/usr/bin/python /home/humbug/humbug/api/bots/feedback-bot"' } + +define command{ + command_name check_send_receive_time + command_line /usr/lib/nagios/plugins/check_by_ssh -p $ARG1$ -l humbug -t 30 -i /var/lib/nagios/.ssh/id_rsa -H $HOSTADDRESS$ -C '/usr/lib/nagios/plugins/check_send_receive_time --nagios' +} diff --git a/servers/puppet/files/nagios3/conf.d/services.cfg b/servers/puppet/files/nagios3/conf.d/services.cfg index db6b39b14c..9039e673e2 100644 --- a/servers/puppet/files/nagios3/conf.d/services.cfg +++ b/servers/puppet/files/nagios3/conf.d/services.cfg @@ -74,3 +74,11 @@ define service { # if the bot is down, so don't page. contact_groups admins } + +define service { + use generic-service + service_description Check send receive time + check_command check_send_receive_time!22 + host staging + contact_groups admins +}