[checkmk-commits] Check_MK Git: check_mk: esx_vsphere_hostsystem.maintenance: Added manual

Bastian Kuhn bk at mathias-kettner.de
Tue Aug 5 11:10:24 CEST 2014


Module: check_mk
Branch: master
Commit: c67f0be79cf0ba768d359a2a31983470eecd1d50
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c67f0be79cf0ba768d359a2a31983470eecd1d50

Author: Bastian Kuhn <bk at mathias-kettner.de>
Date:   Tue Aug  5 11:10:19 2014 +0200

esx_vsphere_hostsystem.maintenance: Added manual

---

 checkman/esx_vsphere_hostsystem.maintenance |   21 +++++++++++++++++++++
 checks/esx_vsphere_hostsystem               |    1 -
 2 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/checkman/esx_vsphere_hostsystem.maintenance b/checkman/esx_vsphere_hostsystem.maintenance
new file mode 100644
index 0000000..6715708
--- /dev/null
+++ b/checkman/esx_vsphere_hostsystem.maintenance
@@ -0,0 +1,21 @@
+title: VMWare ESX Host System: Maintenance State 
+agents: vsphere
+catalog: os/misc
+license: GPL
+distribution: check_mk
+description:
+ This check queries the maintenance State of an ESX host
+ system via the vsphere agent and returns:
+
+ {OK} if the ESX host has the same sate since the last service detection
+
+ {CRIT} if the state has changed.
+
+ The behavior can be changed by a Wato rule to force Maintenance mode or not.
+
+ See "Monitoring VMWare ESX with Check_MK" in the online documentation
+ as well.
+
+inventory:
+ On each ESX host one check is generated.
+
diff --git a/checks/esx_vsphere_hostsystem b/checks/esx_vsphere_hostsystem
index b885c00..7f7d262 100644
--- a/checks/esx_vsphere_hostsystem
+++ b/checks/esx_vsphere_hostsystem
@@ -211,7 +211,6 @@ def inventory_esx_vsphere_hostsystem_maintenance(info):
     data = esx_vsphere_hostsystem_convert(info)
     if 'runtime.inMaintenanceMode' in data:
         current_state = str(data['runtime.inMaintenanceMode'][0]).lower()
-        print current_state
         return [(None, { 'target_state' : current_state })]
 
 def check_esx_vsphere_hostsystem_maintenance(_no_item, params, info):



More information about the checkmk-commits mailing list