Module: check_mk
Branch: master
Commit: a004c7ec05cce8c9f8a97efb350fd51ecb44c6ee
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a004c7ec05cce8…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Jul 9 17:14:29 2013 +0200
Minor code cleanups in VMware checks
---
checks/esx_vsphere_vm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/checks/esx_vsphere_vm b/checks/esx_vsphere_vm
index c8d438a..7cdd45d 100644
--- a/checks/esx_vsphere_vm
+++ b/checks/esx_vsphere_vm
@@ -45,7 +45,7 @@ def inventory_esx_vsphere_vm_mem(info):
if 'summary.quickStats.guestMemoryUsage' in data:
return [(None, {})]
-def check_esx_vsphere_vm_mem(item, params, info):
+def check_esx_vsphere_vm_mem(_no_item, _no_params, info):
data = esx_vsphere_vm_convert(info)
# If the machine is powered of, we do not get data
@@ -102,7 +102,7 @@ def inventory_esx_vsphere_vm_name(info):
if 'name' in data:
return [(None, None)]
-def check_esx_vsphere_vm_name(item, params, info):
+def check_esx_vsphere_vm_name(_no_item, _no_params, info):
data = esx_vsphere_vm_convert(info)
return(0, " ".join(data['name']))
@@ -134,7 +134,7 @@ def inventory_esx_vsphere_vm_hb_status(info):
if 'guestHeartbeatStatus' in data:
return [(None, None)]
-def check_esx_vsphere_vm_hb_status(item, params, info):
+def check_esx_vsphere_vm_hb_status(_no_item, _no_params, info):
data = esx_vsphere_vm_convert(info)
vm_status = data['guestHeartbeatStatus'][0]