ports/146003: [patch] port net-mgmt/nagios-check_smartmon add performance data
olli hauer
ohauer at gmx.de
Fri Apr 23 21:10:04 UTC 2010
>Number: 146003
>Category: ports
>Synopsis: [patch] port net-mgmt/nagios-check_smartmon add performance data
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Fri Apr 23 21:10:04 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: olli hauer <ohauer at gmx.de>
>Release:
>Organization:
>Environment:
>Description:
add performance data to output, so they can graphed with pnp
>How-To-Repeat:
>Fix:
--- patch_nagios-check_smartmon.txt begins here ---
--- /dev/null
+++ files/patch-check_smartmon
@@ -0,0 +1,20 @@
+--- ./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
+
--- patch_nagios-check_smartmon.txt ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list