mirror of https://github.com/zulip/zulip.git
nagios: add a send-receive delay check.
(imported from commit ed58f49440fc1e8175ea02eb5d1b0ae8b53472f0)
This commit is contained in:
parent
c7214a7a2c
commit
a5337033b7
|
@ -94,3 +94,8 @@ define command{
|
||||||
command_name check_feedback_bot
|
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"'
|
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'
|
||||||
|
}
|
||||||
|
|
|
@ -74,3 +74,11 @@ define service {
|
||||||
# if the bot is down, so don't page.
|
# if the bot is down, so don't page.
|
||||||
contact_groups admins
|
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
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue