Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Apr 2010 23:03:06 +0200 (CEST)
From:      olli hauer <ohauer@gmx.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        ohauer@gmx.de
Subject:   ports/146003: [patch] port net-mgmt/nagios-check_smartmon add performance data
Message-ID:  <20100423210306.CAE7026202@u18-124.dsl.vianetworks.de>
Resent-Message-ID: <201004232110.o3NLA4Xn080299@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100423210306.CAE7026202>