Module: check_mk
Branch: master
Commit: 8c97b5811e89ded0eeb8199eddd1a13be5e2f05d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8c97b5811e89de…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Mon Oct 21 16:18:25 2013 +0200
alcatel_power: Added another Suply type. Thanks to Daniel Hertreiter @einhell.com
---
checks/alcatel_power | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/alcatel_power b/checks/alcatel_power
index 7284ca6..ed2e122 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', '0x45000002']]
+ return [ (x[0], None) for x in info if x[2] in ['0x35000001',
'0x45000004', '0x45000002', '0x45000009']]
def check_alcatel_power(item, _no_params, info):
for line in info:
if item == line[0]:
- if line[2] not in ['0x35000001', '0x45000004',
'0x45000002']:
+ if line[2] not in ['0x35000001', '0x45000004',
'0x45000002', '0x45000009']:
return 3, "No Power supply connected to this port"
if int(line[1]) != 1:
return 2, "Supply in error condition (%s)" % line[1]