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=653477f639b7165d448627312db8e905fa337f14;hb=3bc32d9ebd9b0900eeef756122ad28f8857f8bfe;hp=0000000000000000000000000000000000000000;hpb=e886ea19877fa0d4de32d35939f69e9c18681d59;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/modules/private/monitoring/conf/objects.cfg b/modules/private/monitoring/conf/objects.cfg new file mode 100644 index 0000000..653477f --- /dev/null +++ b/modules/private/monitoring/conf/objects.cfg @@ -0,0 +1,84 @@ +# 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 +}