freebsd-ports/net-mgmt/nagios-check_smartmon/files/patch-check_smartmon
Sahil Tandon f540cdb303 - Add performance data to output for PNP graphing
- Bump PORTREVISION due to functionality enhancement

PR:		ports/146003
Submitted by:	olli hauer <ohauer@gmx.de>
Approved by:	Krzysztof Stryjek (maintainer), wxs@ (mentor)
2010-04-25 23:22:03 +00:00

20 lines
1.2 KiB
Text

--- ./check_smartmon.orig 2010-03-18 18:56:53.000000000 +0100
+++ ./check_smartmon 2010-04-23 22:53:13.000000000 +0200
@@ -229,11 +229,14 @@
# fi
if temperature > criticalThreshold:
- return (2, "CRITICAL: device temperature (%d) exceeds critical temperature threshold (%s)" % (temperature, criticalThreshold))
+ return (2, "CRITICAL: device temperature (%d) exceeds critical temperature threshold (%s)|TEMP=%d;%d;%d;"
+ % (temperature, criticalThreshold, temperature, warningThreshold, criticalThreshold))
elif temperature > warningThreshold:
- return (1, "WARNING: device temperature (%d) exceeds warning temperature threshold (%s)" % (temperature, warningThreshold))
+ return (1, "WARNING: device temperature (%d) exceeds warning temperature threshold (%s)|TEMP=%d;%d;%d;"
+ % (temperature, warningThreshold, temperature, warningThreshold, criticalThreshold))
else:
- return (0, "OK: device is functional and stable (temperature: %d)" % temperature)
+ return (0, "OK: device is functional and stable (temperature: %d)|TEMP=%d;%d;%d;"
+ % (temperature, temperature, warningThreshold, criticalThreshold))
# fi
# end