]>
Commit | Line | Data |
---|---|---|
9f202523 IB |
1 | # vim: filetype=nagios |
2 | # | |
3 | define command { | |
4 | command_line /run/wrappers/bin/sudo -u postgres $USER2$/check_postgres_replication "$ARG1$" "$ARG2$" "$ARG3$" | |
5 | command_name check_postgresql_replication | |
6 | } | |
7 | ||
8 | define service { | |
9 | service_description Postgresql replication for backup-1 is up to date | |
10 | check_command check_postgresql_replication!backup-1!/run/postgresql!5432 | |
11 | use local-service | |
12 | } | |
13 | ||
14 | define service { | |
15 | service_description Postgresql replication for backup-2 is up to date | |
16 | check_command check_postgresql_replication!backup-2!/run/postgresql!5432 | |
17 | use local-service | |
18 | } | |
19 | ||
20 | define service { | |
21 | service_description mailq is empty | |
22 | use local-service | |
23 | check_command check_mailq | |
24 | } | |
25 | ||
26 | define command { | |
27 | command_name check_mailq | |
28 | command_line $USER1$/check_mailq -s -w 1 -c 2 | |
29 | } |