]> granicus.if.org Git - icinga2/blob - itl/plugins-contrib.d/ipmi.conf
Merge pull request #6890 from T-Systems-MMS/feature/snmp-storage-exclude
[icinga2] / itl / plugins-contrib.d / ipmi.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 "ipmi-sensor" {
21         import "ipv4-or-ipv6"
22
23         command = [ PluginContribDir + "/check_ipmi_sensor" ]
24
25         arguments = {
26                 "-H" = {
27                         value = "$ipmi_address$"
28                         description = "Hostname or ip address of the IPMI interface (default: host.address or host.address6)"
29                 }
30                 "-f" = {
31                         value = "$ipmi_config_file$"
32                         description = "Path to the FreeIPMI configuration file"
33                 }
34                 "-U" = {
35                         value = "$ipmi_username$"
36                         description = "Username to connect with"
37                 }
38                 "-P" = {
39                         value = "$ipmi_password$"
40                         description = "Password to use"
41                 }
42                 "-L" = {
43                         value = "$ipmi_privilege_level$"
44                         description = "Privilege level of the user"
45                 }
46                 "-b" = {
47                         set_if = "$ipmi_backward_compatibility_mode$"
48                         description = "Enable backward compatibility mode (for FreeIPMI 0.5.*)"
49                 }
50                 "-T" = {
51                         value = "$ipmi_sensor_type$"
52                         description = "Limit sensors to query based on IPMI sensor type (seperated by comma)"
53                 }
54                 "-ST" = {
55                         value = "$ipmi_sel_type$"
56                         description = "Limit SEL entries to specific types. (seperated by comma)"
57                 }
58                 "-x" = {
59                         value = "$ipmi_exclude_sensor_id$"
60                         description = "Exclude sensor matching ipmi_sensor_id"
61                 }
62                 "-xT" = {
63                         value = "$ipmi_exclude_sensor$"
64                         description = "Exclude sensors based on IPMI sensor type. (seperated by comma)"
65                 }
66                 "-xST" = {
67                         value = "$ipmi_exclude_sel$"
68                         description = "Exclude SEL entries of specific sensor types. (seperated by comma)"
69                 }
70                 "-i" = {
71                         value = "$ipmi_sensor_id$"
72                         description = "Include sensor matching ipmi_sensor_id"
73                 }
74                 "--nosel" = {
75                         set_if = "$ipmi_no_sel_checking$"
76                         description = "Turn off system event log checking via ipmi-sel"
77                 }
78                 "--nothresholds" = {
79                         set_if = "$ipmi_no_thresholds$"
80                         description = "Turn off performance data thresholds from output-sensor-thresholds"
81                 }
82                 "-D" = {
83                         value = "$ipmi_protocol_lan_version$"
84                         description = "Change the protocol LAN version (default: LAN_2_0)"
85                 }
86                 "-fc" = {
87                         value = "$ipmi_number_of_active_fans$"
88                         description = "Number of fans that should be active"
89                 }
90                 "--fru" = {
91                         set_if = "$ipmi_show_fru$"
92                         description = "Print the product serial number got by ipmi-fru"
93                 }
94                 "--noentityabsent" = {
95                         set_if = "$ipmi_noentityabsent$"
96                         description = "Skip sensor checks for sensors that have 'noentityabsent' as event state"
97                 }
98                 "-vv" = {
99                         set_if = "$ipmi_verbose$"
100                         description = "Be Verbose multi line output, also with additional details for warnings"
101                 }
102                 "-vvv" = {
103                         set_if = "$ipmi_debug$"
104                         description = "Be Verbose debugging output, followed by normal multi line output"
105                 }
106                 "-us" = {
107                         value = "$ipmi_unify_file$"
108                         description = "Path to the unify file to unify sensor names."
109                 }
110         }
111
112         vars.ipmi_address = "$check_address$"
113         vars.ipmi_protocol_lan_version = "LAN_2_0"
114 }
115
116 /*
117  * Icinga2 CheckCommand definition for an IPMI interface ping check
118 */
119
120 template CheckCommand "ipmi-alive-common" {
121         vars.ping_wrta = 5000.0
122         vars.ping_wpl = 100
123
124         vars.ping_crta = 5000.0
125         vars.ping_cpl = 100
126
127         vars.ping_packets = 1
128 }
129 object CheckCommand "ipmi-alive" {
130         import "ping"
131         import "ipmi-alive-common"
132 }