]>
Commit | Line | Data |
---|---|---|
9f202523 IB |
1 | # vim: filetype=nagios |
2 | ||
3 | define service { | |
4 | service_description Size on /backup2 partition | |
5 | check_command check_local_disk!10%!5%!/backup2 | |
6 | use local-service | |
7 | } | |
8 | ||
9 | define command { | |
10 | command_line /run/wrappers/bin/sudo -u "$ARG3$" $USER2$/check_last_file_date "$ARG1$" "$ARG2$" | |
11 | command_name check_last_file_date | |
12 | } | |
13 | ||
14 | define service { | |
15 | service_description Last backup in /backup2/phare is not too old | |
16 | check_command check_last_file_date!/backup2/phare!14!backup | |
17 | use local-service | |
18 | } | |
19 | ||
20 | define service { | |
21 | service_description Last backup in /backup2/immae_eu is not too old | |
22 | check_command check_last_file_date!/backup2/immae_eu!14!backup | |
23 | use local-service | |
24 | } | |
25 | ||
26 | define service { | |
27 | service_description Last backup in /backup2/immae_fr is not too old | |
28 | check_command check_last_file_date!/backup2/immae_fr!14!backup | |
29 | use local-service | |
30 | } | |
31 | ||
32 | define service { | |
33 | service_description Last postgresql dump in /backup2/eldiron/postgresql_backup is not too old | |
34 | check_command check_last_file_date!/backup2/eldiron/postgresql_backup!7!postgres | |
35 | use local-service | |
36 | } |