Module: check_mk
Branch: master
Commit: f12a0c725d0c9bbed685ed3437a5467ed7ec129b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f12a0c725d0c9b…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Jul 27 13:06:12 2012 +0200
Add performance data to f5_bigip_temp
---
ChangeLog | 1 +
checks/f5_bigip_temp | 7 ++++---
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index c795a07..9076b4a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -20,6 +20,7 @@
* vms_system.ios: new check for total direct/buffered IOs on OpenVMS
* vms_system.procs: new check for number of processes on OpenVMS
* FIX: mssql agent: Added compatibility code for MSSQL 9
+ * f5_bigip_temp: add performance data
WATO:
* Added permission to control the "clone host" feature in WATO
diff --git a/checks/f5_bigip_temp b/checks/f5_bigip_temp
index 866d9ea..939e12d 100644
--- a/checks/f5_bigip_temp
+++ b/checks/f5_bigip_temp
@@ -69,12 +69,13 @@ def check_f5_bigip_temp(item, params, info):
if item == sensor[0]:
tmpdiff = sensor[1] - sensor[2]
msgtxt = " - Temperature is %dC" % (sensor[1])
+ perfdata = [ ("temp", sensor[1]) ]
if 5 >= tmpdiff:
- return (0, "OK" + msgtxt)
+ return (0, "OK" + msgtxt, perfdata)
elif tmpdiff > 15:
- return (2, "CRIT" + msgtxt + "(!!)")
+ return (2, "CRIT" + msgtxt + "(!!)", perfdata)
elif tmpdiff > 10:
- return (1, "WARN" + msgtxt + "(!)")
+ return (1, "WARN" + msgtxt + "(!)", perfdata)
else:
return (3, "UNKNOWN - unable to read temperature")