X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fmonitoring%2Fconf%2Fobjects.cfg;fp=modules%2Fprivate%2Fmonitoring%2Fconf%2Fobjects.cfg;h=0000000000000000000000000000000000000000;hb=eb071dd42518cb40d629e5bde29c6aed72e4d4df;hp=653477f639b7165d448627312db8e905fa337f14;hpb=9f2025235d888eb4a7822024a5fad2e288388814;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/modules/private/monitoring/conf/objects.cfg b/modules/private/monitoring/conf/objects.cfg deleted file mode 100644 index 653477f..0000000 --- a/modules/private/monitoring/conf/objects.cfg +++ /dev/null @@ -1,84 +0,0 @@ -# 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 -}