1 /******************************************************************************
3 * Copyright (C) 2012-2018 Icinga Development Team (https://icinga.com/) *
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. *
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. *
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 ******************************************************************************/
20 object CheckCommand "hpasm" {
23 command = [ PluginContribDir + "/check_hpasm" ]
27 value = "$hpasm_hostname$"
28 set_if = "$hpasm_remote$"
29 description = "Hostname or IP-address of the server (SNMP mode only)"
32 value = "$hpasm_community$"
33 description = "SNMP community of the server (SNMP v1/2 only)"
36 value = "$hpasm_protocol$"
37 description = "The SNMP protocol to use (default: 2c, other possibilities: 1,3)"
40 value = "$hpasm_port$"
41 description = "The SNMP port to use (default: 161)"
44 value = "$hpasm_blacklist$"
45 description = "Blacklist some (missing/failed) components"
48 set_if = "$hpasm_ignore-dimms$"
49 description = "Ignore \"N/A\"-DIMM status on misc. servers (e.g. older DL320)"
51 "--ignore-fan-redundancy" = {
52 set_if = "$hpasm_ignore-fan-redundancy$"
53 description = "Ignore missing redundancy partners"
55 "--customthresholds" = {
56 value = "$hpasm_customthresholds$"
57 description = "Use custom thresholds for certain temperatures"
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."
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"
68 value = "$hpasm_username$"
69 description = "The securityName for the USM security model (SNMPv3 only)"
72 value = "$hpasm_authpassword$"
73 description = "The authentication password for SNMPv3"
76 value = "$hpasm_authprotocol$"
77 description = "The authentication protocol for SNMPv3 (md5|sha)"
80 value = "$hpasm_privpassword$"
81 description = "The password for authPriv security level"
84 value = "$hpasm_privprotocol$"
85 description = "The private protocol for SNMPv3 (des|aes|aes128|3des|3desde)"
88 value = "$hpasm_servertype$"
89 description = "The type of the server: proliant (default) or bladesystem"
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"
96 vars.hpasm_remote = true
97 vars.hpasm_hostname = "$check_address$"
100 object CheckCommand "openmanage" {
101 import "plugin-check-command"
102 command = [ PluginContribDir + "/check_openmanage" ]
105 set_if = "$openmanage_all$"
106 description = "Check everything, even log content"
109 value = "$openmanage_blacklist$"
111 description = "Blacklist missing and/or failed components"
114 value = "$openmanage_check$"
115 description = "Fine-tune which components are checked"
118 value = "$openmanage_community$"
119 description = "SNMP community string [default=public]"
122 value = "$openmanage_config$"
123 description = "Specify configuration file"
126 value = "$openmanage_critical$"
127 description = "Custom temperature critical limits"
130 set_if = "$openmanage_extinfo$"
131 description = "Append system info to alerts"
134 set_if = "$openmanage_fahrenheit$"
135 description = "Use Fahrenheit as temperature unit"
138 value = "$openmanage_hostname$"
139 description = "Hostname or IP (required for SNMP)"
142 set_if = "$openmanage_htmlinfo$"
143 description = "HTML output with clickable links"
146 set_if = "$openmanage_info$"
147 description = "Prefix any alerts with the service tag"
150 set_if = "$openmanage_ipv6$"
151 description = "Use IPv6 instead of IPv4 [default=no]"
153 "--legacy-perfdata" = {
154 set_if = "$openmanage_legacy_perfdata$"
155 description = "legacy performance data output"
158 set_if = "$openmanage_no_storage$"
159 description = "Don't check storage"
162 value = "$openmanage_only$"
163 description = "Only check a certain component or alert type"
166 set_if = "$openmanage_perfdata$"
167 description = "Output performance data [default=no]"
170 value = "$openmanage_port$"
171 description = "SNMP port number [default=161]"
174 value = "$openmanage_protocol$"
175 description = "SNMP protocol version [default=2c]"
178 set_if = "$openmanage_short_state$"
179 description = "Prefix alerts with alert state abbreviated"
181 "--show-blacklist" = {
182 set_if = "$openmanage_show_blacklist$"
183 description = "Show blacklistings in OK output"
186 set_if = "$openmanage_state$"
187 description = "Prefix alerts with alert state"
190 set_if = "$openmanage_tcp$"
191 description = "Use TCP instead of UDP [default=no]"
194 value = "$openmanage_timeout$"
195 description = "Plugin timeout in seconds [default=30]"
197 "--vdisk-critical" = {
198 set_if = "$openmanage_vdisk_critical$"
199 description = "Make any alerts on virtual disks critical"
202 value = "$openmanage_warning$"
203 description = "Custom temperature warning limits"
208 object CheckCommand "lmsensors" {
209 command = [ PluginDir + "/check_lmsensors" ]
213 value = "$lmsensors_warning$"
214 description = "Exit with WARNING status if above INTEGER degrees"
218 value = "$lmsensors_critical$"
219 description = "Exit with CRITICAL status if above INTEGER degrees"
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."
228 vars.lmsensors_warning = "75"
229 vars.lmsensors_critical = "80"
230 vars.lmsensors_sensor = "Core"
233 object CheckCommand "hddtemp" {
234 import "plugin-check-command"
235 command = [ PluginDir + "/check_hddtemp" ]
239 value = "$hddtemp_server$"
240 description = "server name or address"
244 value = "$hddtemp_port$"
245 description = "port number"
248 value = "$hddtemp_devices$"
249 description = "comma separated devices list, or empty for all devices in hddtemp response"
252 value = "$hddtemp_separator$"
253 description = "hddtemp separator"
256 value = "$hddtemp_warning$"
257 description = "warning temperature"
261 value = "$hddtemp_critical$"
262 description = "critical temperature"
266 value = "$hddtemp_timeout$"
267 description = "receiving data from hddtemp operation network timeout"
269 "--performance-data" = {
270 set_if = "$hddtemp_performance$"
271 description = "return performance data"
274 set_if = "$hddtemp_quiet$"
275 description = "be quiet"
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