]> granicus.if.org Git - icinga2/blob - itl/plugins-contrib.d/ipmi.conf
Add check command "ipmi-sensor"
[icinga2] / itl / plugins-contrib.d / ipmi.conf
1 /******************************************************************************
2  * Icinga 2                                                                   *
3  * Copyright (C) 2012-2015 Icinga Development Team (https://www.icinga.org)   *
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 "plugin-check-command"
22         import "ipv4-or-ipv6"
23
24         command = [ PluginsContribDir + "/check_ipmi_sensor" ]
25
26         arguments = {
27                 "-H" = {
28                         value = "$ipmi_address$"
29                         description = "Hostname or ip address of the IPMI interface (default: host.address or host.address6)"
30                 }
31                 "-f" = {
32                         value = "$ipmi_config_file$"
33                         description = "Path to the FreeIPMI configuration file"
34                 }
35                 "-U" = {
36                         value = "$ipmi_username$"
37                         description = "Username to connect with"
38                 }
39                 "-P" = {
40                         value = "$ipmi_password$"
41                         description = "Password to use"
42                 }
43                 "-L" = {
44                         value = "$ipmi_privilege_level$"
45                         description = "Privilege level of the user"
46                 }
47                 "-b" = {
48                         set_if = "$ipmi_backward_compatibility_mode$"
49                         description = "Enable backward compatibility mode (for FreeIPMI 0.5.*)"
50                 }
51                 "-T" = {
52                         value = "$ipmi_sensor_type$"
53                         description = "Limit sensors to query based on IPMI sensor type (seperated by comma)"
54                 }
55                 "-x" = {
56                         value = "$ipmi_sensor_id$"
57                         description = "Exclude sensor matching ipmi_sensor_id"
58                 }
59                 "-i" = {
60                         value = "$ipmi_exclude_sensor_id$"
61                         description = "Include sensor matching ipmi_sensor_id"
62                 }
63                 "-D" = {
64                         value = "$ipmi_protocal_lan_version$"
65                         description = "Change the protocol LAN version (default: LAN_2_0)"
66                 }
67                 "-fc" = {
68                         value = "$ipmi_number_of_active_fans$"
69                         description = "Number of fans that should be active"
70                 }
71                 "--fru" = {
72                         set_if = "$ipmi_show_fru$"
73                         description = "Print the product serial number got by ipmi-fru"
74                 }
75                 "--nosel" = {
76                         set_if = "$ipmi_no_sel_checking$"
77                         description = "Turn off system event log checking via ipmi-sel"
78                 }
79         }
80
81         vars.ipmi_address = "$check_address$"
82         vars.ipmi_protocal_lan_version = "LAN_2_0"
83 }