Module: check_mk
Branch: master
Commit: d296b612cf9994003f0fdc4cef63e01bbd6639e3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d296b612cf9994…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Wed Nov 27 09:19:47 2013 +0100
Fixed inventory of hr_mem to catch broken info on juniper switches
---
checks/hr_mem | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/hr_mem b/checks/hr_mem
index 7c37e4c..50440c0 100644
--- a/checks/hr_mem
+++ b/checks/hr_mem
@@ -34,7 +34,7 @@ def inventory_hr_mem(info):
for hrtype, hrdescr, hrunits, hrsize, hrused in info:
if hrtype in [ ".1.3.6.1.2.1.25.2.1.2",
".1.3.6.1.2.1.25.2.1.3" ]:
- if saveint(hrsize) > 0: # some device have zero (broken) values
+ if saveint(hrsize) > 1: # some device have zero (broken) values
return [(None, "memused_default_levels")]
def check_hr_mem(_no_item, params, info):