Module: check_mk
Branch: master
Commit: a10c3585be7c753cb728c5edb7760a3d769caea7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a10c3585be7c75…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Fri Mar 27 14:57:52 2015 +0100
apc_powerswitch: Fixed Discovery Funtion
---
checks/apc_powerswitch | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/apc_powerswitch b/checks/apc_powerswitch
index c49b46e..d88c9a5 100644
--- a/checks/apc_powerswitch
+++ b/checks/apc_powerswitch
@@ -29,7 +29,7 @@ apc_powerswitch_critical_states = ()
def inventory_apc_powerswitch(info):
- return [ (x[0],saveint(x[2])) for x in info if x[1] == "1" ]
+ return [ (x[0],saveint(x[2])) for x in info if x[2] == "1" ]
def check_apc_powerswitch(item, params, info):
state_name = {