Module: check_mk
Branch: master
Commit: c0af7b647ad4e845cb2b41b8b96d66303592a6ab
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c0af7b647ad4e8…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Thu Oct 17 16:01:20 2013 +0200
Added antother suply type to alcatel_power
---
checks/alcatel_power | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/alcatel_power b/checks/alcatel_power
index 6042249..7284ca6 100644
--- a/checks/alcatel_power
+++ b/checks/alcatel_power
@@ -25,12 +25,12 @@
# Boston, MA 02110-1301 USA.
def inventory_alcatel_power(info):
- return [ (x[0], None) for x in info if x[2] in ['0x35000001',
'0x45000004']]
+ return [ (x[0], None) for x in info if x[2] in ['0x35000001',
'0x45000004', '0x45000002']]
def check_alcatel_power(item, _no_params, info):
for line in info:
if item == line[0]:
- if line[2] not in ['0x35000001', '0x45000004']:
+ if line[2] not in ['0x35000001', '0x45000004',
'0x45000002']:
return 3, "No Power supply connected to this port"
if int(line[1]) != 1:
return 2, "Supply in error condition (%s)" % line[1]