puppet: Add websockets Nagios test to configuration.

Since browser clients send messages via websockets and not the API,
this is an important element in making sure mission-critical Zulip
functionality is working.
This commit is contained in:
Tim Abbott
2017-02-08 11:12:25 -08:00
parent 8db13d0bb9
commit fa8045a484
2 changed files with 14 additions and 0 deletions

View File

@@ -111,6 +111,11 @@ define command{
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/zulip_app_frontend/check_cron_file /var/lib/nagios_state/check_send_receive_state'
}
define command{
command_name check_send_receive_time_websockets
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/zulip_app_frontend/check_cron_file /var/lib/nagios_state/check_send_receive_websockets_state'
}
define command{
command_name check_rabbitmq_consumers
command_line /usr/lib/nagios/plugins/check_by_ssh -p 22 -l nagios -t 30 -i /var/lib/nagios/.ssh/id_rsa -H $HOSTADDRESS$ -C '/usr/lib/nagios/plugins/zulip_app_frontend/check_rabbitmq_consumers $ARG1$'

View File

@@ -143,6 +143,15 @@ define service {
contact_groups page_admins
}
define service {
use generic-service
service_description Check send receive time_websockets
check_command check_send_receive_time_websockets!22
max_check_attempts 2
hostgroup_name frontends
contact_groups page_admins
}
## check_postgres.pl services
define service {