2015-02-04 17:31:13 +01:00
|
|
|
/******************************************************************************
|
|
|
|
* Icinga 2 *
|
2018-01-02 12:06:00 +01:00
|
|
|
* Copyright (C) 2012-2018 Icinga Development Team (https://www.icinga.com/) *
|
2015-02-04 17:31:13 +01:00
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or *
|
|
|
|
* modify it under the terms of the GNU General Public License *
|
|
|
|
* as published by the Free Software Foundation; either version 2 *
|
|
|
|
* of the License, or (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
* This program is distributed in the hope that it will be useful, *
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
* GNU General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU General Public License *
|
|
|
|
* along with this program; if not, write to the Free Software Foundation *
|
|
|
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
object CheckCommand "esxi_hardware" {
|
2015-02-23 15:35:12 +01:00
|
|
|
command = [ PluginContribDir + "/check_esxi_hardware.py" ]
|
2015-02-04 17:31:13 +01:00
|
|
|
|
|
|
|
arguments = {
|
|
|
|
"-H" = {
|
|
|
|
value = "$esxi_hardware_host$"
|
|
|
|
description = "report on HOST"
|
|
|
|
}
|
|
|
|
"-U" = {
|
|
|
|
value = "$esxi_hardware_user$"
|
|
|
|
description = "user to connect as"
|
|
|
|
}
|
|
|
|
"-P" = {
|
|
|
|
value = "$esxi_hardware_pass$"
|
|
|
|
description = "password"
|
|
|
|
}
|
2016-05-31 08:24:28 +02:00
|
|
|
"-C" = {
|
|
|
|
value = "$esxi_hardware_port$"
|
|
|
|
description = "cim port"
|
|
|
|
}
|
2015-02-04 17:31:13 +01:00
|
|
|
"-V" = {
|
|
|
|
value = "$esxi_hardware_vendor$"
|
|
|
|
description = "Vendor code: auto, dell, hp, ibm, intel, or unknown"
|
|
|
|
}
|
|
|
|
"-I" = {
|
|
|
|
value = "$esxi_hardware_html$"
|
|
|
|
description = "generate html links for country XX"
|
|
|
|
}
|
|
|
|
"-i" = {
|
|
|
|
value = "$esxi_hardware_ignore$"
|
|
|
|
description = "comma-separated list of elements to ignore"
|
|
|
|
}
|
|
|
|
"-p" = {
|
|
|
|
set_if = "$esxi_hardware_perfdata$"
|
|
|
|
description = "collect performance data for pnp4nagios"
|
|
|
|
}
|
|
|
|
"--no-power" = {
|
|
|
|
set_if = "$esxi_hardware_nopower$"
|
|
|
|
description = "don't collect power performance data"
|
|
|
|
}
|
|
|
|
"--no-volts" = {
|
|
|
|
set_if = "$esxi_hardware_novolts$"
|
|
|
|
description = "don't collect voltage performance data"
|
|
|
|
}
|
|
|
|
"--no-current" = {
|
|
|
|
set_if = "$esxi_hardware_nocurrent$"
|
|
|
|
description = "don't collect current performance data"
|
|
|
|
}
|
|
|
|
"--no-temp" = {
|
|
|
|
set_if = "$esxi_hardware_notemp$"
|
|
|
|
description = "don't collect temperature performance data"
|
|
|
|
}
|
|
|
|
"--no-fan" = {
|
|
|
|
set_if = "$esxi_hardware_nofan$"
|
|
|
|
description = "don't collect fan performance data"
|
|
|
|
}
|
2017-09-12 09:09:30 +02:00
|
|
|
"--no-lcd" = {
|
|
|
|
set_if = "$esxi_hardware_nolcd$"
|
|
|
|
description = "don't collect lcd/display status data"
|
|
|
|
}
|
2015-02-04 17:31:13 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
vars.esxi_hardware_host = "$address$"
|
2016-05-31 08:24:28 +02:00
|
|
|
vars.esxi_hardware_port = 5989
|
2015-02-04 17:31:13 +01:00
|
|
|
vars.esxi_hardware_perfdata = false
|
|
|
|
vars.esxi_hardware_nopower = false
|
|
|
|
vars.esxi_hardware_novolts = false
|
|
|
|
vars.esxi_hardware_nocurrent = false
|
|
|
|
vars.esxi_hardware_notemp = false
|
|
|
|
vars.esxi_hardware_nofan = false
|
2017-09-12 09:09:30 +02:00
|
|
|
vars.esxi_hardware_nolcd = false
|
2015-02-04 17:31:13 +01:00
|
|
|
}
|
|
|
|
|