mirror of https://github.com/zulip/zulip.git
nagios: monitor feedback bot liveness.
(imported from commit 64a97e74b8a44bf0a6faf97398f843d8209b8e36)
This commit is contained in:
parent
40a8ee48a5
commit
62284f39f4
|
@ -89,3 +89,8 @@ define command{
|
||||||
command_name check_ntp_time
|
command_name check_ntp_time
|
||||||
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_ntp_time -H time.mit.edu -w .5 -c 1'
|
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_ntp_time -H time.mit.edu -w .5 -c 1'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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"'
|
||||||
|
}
|
||||||
|
|
|
@ -65,3 +65,13 @@ define service {
|
||||||
hostgroup_name all
|
hostgroup_name all
|
||||||
max_check_attempts 1
|
max_check_attempts 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
define service {
|
||||||
|
use generic-service
|
||||||
|
service_description Check feedback bot
|
||||||
|
check_command check_feedback_bot!22
|
||||||
|
host bots
|
||||||
|
# Feedback isn't lost, it just isn't reported through Humbug
|
||||||
|
# if the bot is down, so don't page.
|
||||||
|
contact_groups admins
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue