]> granicus.if.org Git - icinga2/blob - itl/plugins-contrib.d/hardware.conf
Merge pull request #6896 from Icinga/bugfix/notification-delay-5561
[icinga2] / itl / plugins-contrib.d / hardware.conf
1 /******************************************************************************
2  * Icinga 2                                                                   *
3  * Copyright (C) 2012-2018 Icinga Development Team (https://icinga.com/)      *
4  *                                                                            *
5  * This program is free software; you can redistribute it and/or              *
6  * modify it under the terms of the GNU General Public License                *
7  * as published by the Free Software Foundation; either version 2             *
8  * of the License, or (at your option) any later version.                     *
9  *                                                                            *
10  * This program is distributed in the hope that it will be useful,            *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of             *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *
13  * GNU General Public License for more details.                               *
14  *                                                                            *
15  * You should have received a copy of the GNU General Public License          *
16  * along with this program; if not, write to the Free Software Foundation     *
17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.             *
18  ******************************************************************************/
19
20 object CheckCommand "hpasm" {
21         import "ipv4-or-ipv6"
22
23         command = [ PluginContribDir + "/check_hpasm" ]
24
25         arguments = {
26                 "--hostname" = {
27                         value = "$hpasm_hostname$"
28                         set_if = "$hpasm_remote$"
29                         description = "Hostname or IP-address of the server (SNMP mode only)"
30                 }
31                 "--community" = {
32                         value = "$hpasm_community$"
33                         description = "SNMP community of the server (SNMP v1/2 only)"
34                 }
35                 "--protocol" = {
36                         value = "$hpasm_protocol$"
37                         description = "The SNMP protocol to use (default: 2c, other possibilities: 1,3)"
38                 }
39                 "--port" = {
40                         value = "$hpasm_port$"
41                         description = "The SNMP port to use (default: 161)"
42                 }
43                 "--blacklist" = {
44                         value = "$hpasm_blacklist$"
45                         description = "Blacklist some (missing/failed) components"
46                 }
47                 "--ignore-dimms" = {
48                         set_if = "$hpasm_ignore-dimms$"
49                         description = "Ignore \"N/A\"-DIMM status on misc. servers (e.g. older DL320)"
50                 }
51                 "--ignore-fan-redundancy" = {
52                         set_if = "$hpasm_ignore-fan-redundancy$"
53                         description = "Ignore missing redundancy partners"
54                 }
55                 "--customthresholds" = {
56                         value = "$hpasm_customthresholds$"
57                         description = "Use custom thresholds for certain temperatures"
58                 }
59                 "--eventrange" = {
60                         value = "$hpasm_eventrange$"
61                         description = "Period of time before critical IML events respecively become warnings or vanish. A range is descibed as a number and a unit (s, m, h, d), e.g. --eventrange 1h/20m."
62                 }
63                 "--perfdata" = {
64                         value = "$hpasm_perfdata$"
65                         description = "Output performance data. If your performance data string becomes too long and is truncated by Nagios, then you can use --perfdata=short instead. This will output temperature tags without location information"
66                 }
67                 "--username" = {
68                         value = "$hpasm_username$"
69                         description = "The securityName for the USM security model (SNMPv3 only)"
70                 }
71                 "--authpassword" = {
72                         value = "$hpasm_authpassword$"
73                         description = "The authentication password for SNMPv3"
74                 }
75                 "--authprotocol" = {
76                         value = "$hpasm_authprotocol$"
77                         description = "The authentication protocol for SNMPv3 (md5|sha)"
78                 }
79                 "--privpassword" = {
80                         value = "$hpasm_privpassword$"
81                         description = "The password for authPriv security level"
82                 }
83                 "--privprotocol" = {
84                         value = "$hpasm_privprotocol$"
85                         description = "The private protocol for SNMPv3 (des|aes|aes128|3des|3desde)"
86                 }
87                 "--servertype" = {
88                         value = "$hpasm_servertype$"
89                         description = "The type of the server: proliant (default) or bladesystem"
90                 }
91                 "--eval-nics" = {
92                         set_if = "$hpasm_eval-nics$"
93                         description = "Check network interfaces (and groups). Try it and report me whyt you think about it. I need to build up some know how on this subject. If get an error and you think, it is not justified for your configuration, please tell me about it. (alwasy send the output of \"snmpwalk -On .... 1.3.6.1.4.1.232\" and a description how you setup your nics and why it is correct opposed to the plugins error message"
94                 }
95         }
96         vars.hpasm_remote = true
97         vars.hpasm_hostname = "$check_address$"
98 }
99
100 object CheckCommand "openmanage" {
101         import "plugin-check-command"
102         command = [ PluginContribDir + "/check_openmanage" ]
103         arguments += {
104                 "--all" = {
105                         set_if = "$openmanage_all$"
106                         description = "Check everything, even log content"
107                 }
108                 "--blacklist" = {
109                         value = "$openmanage_blacklist$"
110                         repeat_key = true
111                         description = "Blacklist missing and/or failed components"
112                 }
113                 "--check" = {
114                         value = "$openmanage_check$"
115                         description = "Fine-tune which components are checked"
116                 }
117                 "--community" = {
118                         value = "$openmanage_community$"
119                         description = "SNMP community string [default=public]"
120                 }
121                 "--config" = {
122                         value = "$openmanage_config$"
123                         description = "Specify configuration file"
124                 }
125                 "--critical" = {
126                         value = "$openmanage_critical$"
127                         description = "Custom temperature critical limits"
128                 }
129                 "--extinfo" = {
130                         set_if = "$openmanage_extinfo$"
131                         description = "Append system info to alerts"
132                 }
133                 "--fahrenheit" = {
134                         set_if = "$openmanage_fahrenheit$"
135                         description = "Use Fahrenheit as temperature unit"
136                 }
137                 "--hostname" = {
138                         value = "$openmanage_hostname$"
139                         description = "Hostname or IP (required for SNMP)"
140                 }
141                 "--htmlinfo" = {
142                         set_if = "$openmanage_htmlinfo$"
143                         description = "HTML output with clickable links"
144                 }
145                 "--info" = {
146                         set_if = "$openmanage_info$"
147                         description = "Prefix any alerts with the service tag"
148                 }
149                 "--ipv6" = {
150                         set_if = "$openmanage_ipv6$"
151                         description = "Use IPv6 instead of IPv4 [default=no]"
152                 }
153                 "--legacy-perfdata" = {
154                         set_if = "$openmanage_legacy_perfdata$"
155                         description = "legacy performance data output"
156                 }
157                 "--no-storage" = {
158                         set_if = "$openmanage_no_storage$"
159                         description = "Don't check storage"
160                 }
161                 "--only" = {
162                         value = "$openmanage_only$"
163                         description = "Only check a certain component or alert type"
164                 }
165                 "--perfdata" = {
166                         set_if = "$openmanage_perfdata$"
167                         description = "Output performance data [default=no]"
168                 }
169                 "--port" = {
170                         value = "$openmanage_port$"
171                         description = "SNMP port number [default=161]"
172                 }
173                 "--protocol" = {
174                         value = "$openmanage_protocol$"
175                         description = "SNMP protocol version [default=2c]"
176                 }
177                 "--short-state" = {
178                         set_if = "$openmanage_short_state$"
179                         description = "Prefix alerts with alert state abbreviated"
180                 }
181                 "--show-blacklist" = {
182                         set_if = "$openmanage_show_blacklist$"
183                         description = "Show blacklistings in OK output"
184                 }
185                 "--state" = {
186                         set_if = "$openmanage_state$"
187                         description = "Prefix alerts with alert state"
188                 }
189                 "--tcp" = {
190                         set_if = "$openmanage_tcp$"
191                         description = "Use TCP instead of UDP [default=no]"
192                 }
193                 "--timeout" = {
194                         value = "$openmanage_timeout$"
195                         description = "Plugin timeout in seconds [default=30]"
196                 }
197                 "--vdisk-critical" = {
198                         set_if = "$openmanage_vdisk_critical$"
199                         description = "Make any alerts on virtual disks critical"
200                 }
201                 "--warning" = {
202                         value = "$openmanage_warning$"
203                         description = "Custom temperature warning limits"
204                 }
205         }
206 }
207
208 object CheckCommand "lmsensors" {
209         command = [ PluginDir + "/check_lmsensors" ]
210
211         arguments = {
212                 "-w" = {
213                         value = "$lmsensors_warning$"
214                         description = "Exit with WARNING status if above INTEGER degrees"
215                         required = true
216                 }
217                 "-c" = {
218                         value = "$lmsensors_critical$"
219                         description = "Exit with CRITICAL status if above INTEGER degrees"
220                         required = true
221                 }
222                 "--sensor" = {
223                         value = "$lmsensors_sensor$"
224                         description = "Set what to monitor, for example CPU or MB (or M/B). Check sensors for the correct word. Default is CPU."
225                 }
226         }
227
228         vars.lmsensors_warning = "75"
229         vars.lmsensors_critical = "80"
230         vars.lmsensors_sensor = "Core"
231 }
232
233 object CheckCommand "hddtemp" {
234         import "plugin-check-command"
235         command = [ PluginDir + "/check_hddtemp" ]
236
237         arguments = {
238                 "--server" = {
239                         value = "$hddtemp_server$"
240                         description = "server name or address"
241                         required = true
242                 }
243                 "--port" = {
244                         value = "$hddtemp_port$"
245                         description = "port number"
246                 }
247                 "--devices" = {
248                         value = "$hddtemp_devices$"
249                         description = "comma separated devices list, or empty for all devices in hddtemp response"
250                 }
251                 "--separator" = {
252                         value = "$hddtemp_separator$"
253                         description = "hddtemp separator"
254                 }
255                 "--warning" = {
256                         value = "$hddtemp_warning$"
257                         description = "warning temperature"
258                         required = true
259                 }
260                 "--critical" = {
261                         value = "$hddtemp_critical$"
262                         description = "critical temperature"
263                         required = true
264                 }
265                 "--timeout" = {
266                         value = "$hddtemp_timeout$"
267                         description = "receiving data from hddtemp operation network timeout"
268                 }
269                 "--performance-data" = {
270                         set_if = "$hddtemp_performance$"
271                         description = "return performance data"
272                 }
273                 "--quiet" = {
274                         set_if = "$hddtemp_quiet$"
275                         description = "be quiet"
276                 }
277         }
278
279         vars.hddtemp_server = "127.0.0.1"
280         vars.hddtemp_warning = 55
281         vars.hddtemp_critical = 60
282         vars.hddtemp_performance = true
283         vars.hddtemp_timeout = 5
284 }