Module: check_mk
Branch: master
Commit: 3400c4b80b54674570de5e6ff4ba3128029b45cc
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3400c4b80b5467…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Fri Apr 4 14:44:08 2014 +0200
enterasys_lsnat: now also provides perfdata
---
checks/enterasys_lsnat | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/checks/enterasys_lsnat b/checks/enterasys_lsnat
index e38169d..fb719b6 100644
--- a/checks/enterasys_lsnat
+++ b/checks/enterasys_lsnat
@@ -44,7 +44,9 @@ def check_enterasys_lsnat(no_item, params, info):
state = 1
state_info = state_markers[state]
- return state, "Current bindings %d%s" % (lsnat_bindings, state_info)
+ perfdata = [ ("current_bindings", util, warn, crit) ]
+
+ return state, "Current bindings %d%s" % (lsnat_bindings, state_info),
perfdata
check_info["enterasys_lsnat"] = {
@@ -52,6 +54,7 @@ check_info["enterasys_lsnat"] = {
"inventory_function" : inventory_enterasys_lsnat,
"service_description" : "LSNAT Bindings",
"group" : "lsnat",
+ "has_perfdata" : True,
"snmp_info" : ( ".1.3.6.1.4.1.5624.1.2.74.1.1.5", [
"0" ] ),
"snmp_scan_function" : lambda oid:
oid(".1.3.6.1.2.1.1.2.0").startswith(".1.3.6.1.4.1.5624.2.1") and
oid(".1.3.6.1.4.1.5624.1.2.74.1.1.5.0"),