]> git.pld-linux.org Git - packages/nagios-plugin-check_raid.git/blame - bbu.patch
- rel 2; plugin doesn't monitor bbu by default, so provide separate template command...
[packages/nagios-plugin-check_raid.git] / bbu.patch
CommitLineData
5fe36881
AM
1diff -urN nagios-plugin-check_raid-4.0.8.org/check_raid.cfg nagios-plugin-check_raid-4.0.8/check_raid.cfg
2--- nagios-plugin-check_raid-4.0.8.org/check_raid.cfg 2017-09-01 20:58:44.000000000 +0200
3+++ nagios-plugin-check_raid-4.0.8/check_raid.cfg 2018-12-11 13:11:45.426546079 +0100
4@@ -5,7 +5,13 @@
5 command_line /usr/lib/nagios/plugins/check_raid $ARG1$
6 }
7
8-# service template
9+# check_raid_bbu
10+define command {
11+ command_name check_raid_bbu
12+ command_line /usr/lib/nagios/plugins/check_raid --bbu-monitoring $ARG1$
13+}
14+
15+# service templates
16 define service {
17 use generic-service
18 name raid
19@@ -19,6 +25,20 @@
20 check_command check_raid
21 }
22
23+define service {
24+ use generic-service
25+ name raid-bbu
26+ service_description raid-bbu
27+ register 0
28+
29+ normal_check_interval 30
30+ retry_check_interval 5
31+ notification_interval 3600
32+
33+ check_command check_raid_bbu
34+}
35+
36+
37 # sample check
38 #define service {
39 # use raid
This page took 0.195934 seconds and 4 git commands to generate.