Module: check_mk
Branch: master
Commit: 41e4e70c466e183214110ecd5226583f83bdf4a5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=41e4e70c466e18…
Author: Goetz Golla <gg(a)mathias-kettner.de>
Date: Thu Apr 2 16:16:28 2015 +0200
aix_if: make check more robust if extended parameters are missing in agent output
---
checks/aix_if | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/checks/aix_if b/checks/aix_if
index c4f66c7..e7fbf11 100644
--- a/checks/aix_if
+++ b/checks/aix_if
@@ -112,8 +112,9 @@ def parse_aix_if(info):
"ifInOctets", "inucast", "inmcast",
"inbcast", "ifInDiscards",
"ifInErrors", "ifOutOctets", "outucast",
"outmcast", "outbcast",
"ifOutDiscards", "ifOutErrors", "ifOutQLen",
"ifAlias", "ifPhysAddress" ]:
- nic_list.append(nic_info[nic][attr])
+ nic_list.append(nic_info[nic].get(attr,0))
if_table.append(map(str, nic_list))
+ print if_table
return if_table