aboutsummaryrefslogtreecommitdiff
path: root/modules/private/monitoring/conf/objects.cfg
blob: 653477f639b7165d448627312db8e905fa337f14 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
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
}