mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 20:13:46 +00:00 
			
		
		
		
	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:
		| @@ -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$' | ||||
|   | ||||
| @@ -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 { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user