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 "ipmi-sensor" {
23 command = [ PluginContribDir + "/check_ipmi_sensor" ]
27 value = "$ipmi_address$"
28 description = "Hostname or ip address of the IPMI interface (default: host.address or host.address6)"
31 value = "$ipmi_config_file$"
32 description = "Path to the FreeIPMI configuration file"
35 value = "$ipmi_username$"
36 description = "Username to connect with"
39 value = "$ipmi_password$"
40 description = "Password to use"
43 value = "$ipmi_privilege_level$"
44 description = "Privilege level of the user"
47 set_if = "$ipmi_backward_compatibility_mode$"
48 description = "Enable backward compatibility mode (for FreeIPMI 0.5.*)"
51 value = "$ipmi_sensor_type$"
52 description = "Limit sensors to query based on IPMI sensor type (seperated by comma)"
55 value = "$ipmi_sel_type$"
56 description = "Limit SEL entries to specific types. (seperated by comma)"
59 value = "$ipmi_exclude_sensor_id$"
60 description = "Exclude sensor matching ipmi_sensor_id"
63 value = "$ipmi_exclude_sensor$"
64 description = "Exclude sensors based on IPMI sensor type. (seperated by comma)"
67 value = "$ipmi_exclude_sel$"
68 description = "Exclude SEL entries of specific sensor types. (seperated by comma)"
71 value = "$ipmi_sensor_id$"
72 description = "Include sensor matching ipmi_sensor_id"
75 set_if = "$ipmi_no_sel_checking$"
76 description = "Turn off system event log checking via ipmi-sel"
79 set_if = "$ipmi_no_thresholds$"
80 description = "Turn off performance data thresholds from output-sensor-thresholds"
83 value = "$ipmi_protocol_lan_version$"
84 description = "Change the protocol LAN version (default: LAN_2_0)"
87 value = "$ipmi_number_of_active_fans$"
88 description = "Number of fans that should be active"
91 set_if = "$ipmi_show_fru$"
92 description = "Print the product serial number got by ipmi-fru"
94 "--noentityabsent" = {
95 set_if = "$ipmi_noentityabsent$"
96 description = "Skip sensor checks for sensors that have 'noentityabsent' as event state"
99 set_if = "$ipmi_verbose$"
100 description = "Be Verbose multi line output, also with additional details for warnings"
103 set_if = "$ipmi_debug$"
104 description = "Be Verbose debugging output, followed by normal multi line output"
107 value = "$ipmi_unify_file$"
108 description = "Path to the unify file to unify sensor names."
112 vars.ipmi_address = "$check_address$"
113 vars.ipmi_protocol_lan_version = "LAN_2_0"
117 * Icinga2 CheckCommand definition for an IPMI interface ping check
120 template CheckCommand "ipmi-alive-common" {
121 vars.ping_wrta = 5000.0
124 vars.ping_crta = 5000.0
127 vars.ping_packets = 1
129 object CheckCommand "ipmi-alive" {
131 import "ipmi-alive-common"