]> granicus.if.org Git - icinga2/blob - itl/plugins-contrib.d/raid-controller.conf
Update lsi-raid parameters
[icinga2] / itl / plugins-contrib.d / raid-controller.conf
1 /*
2  * Icinga2 CheckCommand definitions to monitor RAID controller from Adaptec and Broadcom using
3  * the Adaptec RAID Monitoring Plugin and the LSI RAID Monitoring Plugin
4  */
5
6 object CheckCommand "adaptec-raid" {
7         import "plugin-check-command"
8
9         command = [ PluginDir + "/check_adaptec_raid" ]
10
11         arguments = {
12                 "-C" = {
13                         required = true
14                         value = "$adaptec_controller_number$"
15                         description = "Insert the controller number to be checked."
16                 }
17                 "-p" = {
18                         required = true
19                         value = "$arcconf_path$"
20                         description = "Insert the path to arcconf (e.g. /sbin/arcconf)."
21                 }
22         }
23
24         vars.arcconf_path = "/sbin/arcconf"
25 }
26
27 object CheckCommand "lsi-raid" {
28         import "plugin-check-command"
29
30         command = [ PluginDir + "/check_lsi_raid" ]
31
32         arguments = {
33                 "-C" = {
34                         value = "$lsi_controller_number$"
35                         description = "Insert the controller number to be checked."
36                 }
37                 "-p" = {
38                         value = "$storcli_path$"
39                         description = "Insert the path to storcli (e.g. /usr/sbin/storcli)."
40                 }
41                 "-EID" = {
42                         value = "$lsi_enclosure_id$"
43                         description = "Enclosure numbers to be checked, comma-separated."
44                 }
45                 "-LD" = {
46                         value = "$lsi_ld_id$"
47                         description = "Logical devices to be checked, comma-separated."
48                 }
49                 "-PD" = {
50                         value = "$lsi_pd_id$"
51                         description = "Physical devices to be checked, comma-separated."
52                 }
53                 "-Tw" = {
54                         value = "$lsi_temp_warning$"
55                         description = "RAID controller warning temperature."
56                 }
57                 "-Tc" = {
58                         value = "$lsi_temp_critical$"
59                         description = "RAID controller critical temperature."
60                 }
61                 "-PDTw" = {
62                         value = "$lsi_pd_temp_warning$"
63                         description = "Disk warning temperature."
64                 }
65                 "-PDTc" = {
66                         value = "$lsi_pd_temp_critical$"
67                         description = "Disk critical temperature."
68                 }
69                 "-BBUTw" = {
70                         value = "$lsi_bbu_temp_warning$"
71                         description = "Battery warning temperature."
72                 }
73                 "-BBUTc" = {
74                         value = "$lsi_bbu_temp_critical$"
75                         description = "Battery critical temperature."
76                 }
77                 "-CVTw" = {
78                         value = "$lsi_cv_temp_warning$"
79                         description = "CacheVault warning temperature."
80                 }
81                 "-CVTc" = {
82                         value = "$lsi_cv_temp_critical$"
83                         description = "CacheVault critical temperature."
84                 }
85                 "-Im" = {
86                         value = "$lsi_ignored_media_errors$"
87                         description = "Warning threshold for media errors."
88                 }
89                 "-Io" = {
90                         value = "$lsi_ignored_other_errors$"
91                         description = "Warning threshold for other errors."
92                 }
93                 "-Ip" = {
94                         value = "$lsi_ignored_predictive_fails$"
95                         description = "Warning threshold for predictive failures."
96                 }
97                 "-Is" = {
98                         value = "$lsi_ignored_shield_counters$"
99                         description = "Warning threshold for shield counter."
100                 }
101                 "-Ib" = {
102                         value = "$lsi_ignored_bbm_counters$"
103                         description = "Warning threshold for BBM counter."
104                 }
105                 "-b" = {
106                         value = "$lsi_bbu$"
107                         description = "Define if BBU is present and it's state should be checked."
108                 }
109                 "--noenclosures" = {
110                         set_if = "$lsi_noenclosures$"
111                         description = "Define if enclosures are present."
112                 }
113                 "--nosudo" = {
114                         set_if = "$lsi_nosudo$"
115                         description = "Do not use sudo when running storcli."
116                 }
117                 "--nocleanlogs" = {
118                         set_if = "$lsi_nocleanlogs$"
119                         description = "Do not clean up the log files after executing storcli checks."
120                 }
121         }
122 }