# vim: filetype=nagios define command { command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5 command_name check-host-alive } define command { command_line $USER2$/check_md_raid command_name check_md_raid } define command { command_line $USER2$/check_command -c "$ARG1$" -o "$ARG2$" $ARG3$ command_name check_command_output } define command { command_line /usr/bin/sudo -u postgres $USER2$/check_postgres_replication "$ARG1$" "$ARG2$" "$ARG3$" command_name check_postgresql_replication } define service { ## --PUPPET_NAME-- (called '_naginator_name' in the manifest) Databases are present in postgresql active_checks_enabled 1 check_command check_command_output!psql -c 'select nspname from pg_catalog.pg_namespace'!public!-r postgres check_freshness 0 check_interval 5 check_period 24x7 contact_groups admins event_handler_enabled 1 flap_detection_enabled 1 host_name caldance-1.v.immae.eu is_volatile 0 max_check_attempts 4 notification_interval 60 notification_options w,u,c,r notification_period 24x7 notifications_enabled 0 obsess_over_service 1 passive_checks_enabled 1 process_perf_data 1 retain_nonstatus_information 1 retain_status_information 1 retry_interval 1 service_description Databases are present in postgresql } define command { command_line $USER2$/check_last_file_date "$ARG1$" "$ARG2$" "$ARG3$" command_name check_last_file_date } define command { command_line $USER2$/check_date "$ARG1$" "$ARG2$" "$ARG3$" command_name check_date } define service { ## --PUPPET_NAME-- (called '_naginator_name' in the manifest) Postgresql replication for backup-1 is up to date active_checks_enabled 1 check_command check_postgresql_replication!backup-1!/run/postgresql!5432 check_freshness 0 check_interval 5 check_period 24x7 contact_groups admins event_handler_enabled 1 flap_detection_enabled 1 host_name caldance-1.v.immae.eu is_volatile 0 max_check_attempts 4 notification_interval 60 notification_options w,u,c,r notification_period 24x7 notifications_enabled 0 obsess_over_service 1 passive_checks_enabled 1 process_perf_data 1 retain_nonstatus_information 1 retain_status_information 1 retry_interval 1 service_description Postgresql replication for backup-1 is up to date }