From 0d627df92167c3a34339140fe3570a90dd51bebe Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Tue, 9 Feb 2010 23:16:14 +0100 Subject: [PATCH 1/1] remove temp limits --- temperature.conf | 28 ++++++++++++++-------------- upsgraph.pl | 1 - 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/temperature.conf b/temperature.conf index 68ed2c7..c7e0ad4 100644 --- a/temperature.conf +++ b/temperature.conf @@ -17,22 +17,22 @@ $hosts = [ 'name' => 'Battery Temperature', 'oidtext' => 'PowerNet-MIB::upsAdvBatteryTemperature.0', 'oid' => '1.3.6.1.4.1.318.1.1.1.2.2.2.0', - 'min' => '0', - 'max' => '100', + 'min' => 'U', + 'max' => 'U', }, 'ambT' => { 'name' => 'Ambient Temperature', 'oidtext' => 'PowerNet-MIB::iemStatusProbeCurrentTemp.1', 'oid' => '1.3.6.1.4.1.318.1.1.10.2.3.2.1.4.1', - 'min' => '0', - 'max' => '60', + 'min' => 'U', + 'max' => 'U', }, 'ambH' => { 'name' => 'Ambient Humidity', 'oidtext' => 'PowerNet-MIB::iemStatusProbeCurrentHumid.1', 'oid' => '1.3.6.1.4.1.318.1.1.10.2.3.2.1.6.1', - 'min' => '0', - 'max' => '100', + 'min' => 'U', + 'max' => 'U', }, }, }, @@ -49,8 +49,8 @@ $hosts = [ 'name' => 'Battery Temperature', 'oidtext' => 'PowerNet-MIB::upsAdvBatteryTemperature.0', 'oid' => '1.3.6.1.4.1.318.1.1.1.2.2.2.0', - 'min' => '0', - 'max' => '100', + 'min' => 'U', + 'max' => 'U', }, } }, @@ -66,8 +66,8 @@ $hosts = [ 'temp' => { 'name' => 'Internal Temperature', 'oid' => '1.3.6.1.4.1.9.9.13.1.3.1.3.1004', - 'min' => '0', - 'max' => '200', + 'min' => 'U', + 'max' => 'U', }, } }, @@ -83,8 +83,8 @@ $hosts = [ 'temp' => { 'name' => 'Internal Temperature', 'oid' => '1.3.6.1.4.1.9.9.13.1.3.1.3.1004', - 'min' => '0', - 'max' => '200', + 'min' => 'U', + 'max' => 'U', }, } }, @@ -100,8 +100,8 @@ $hosts = [ 'name' => 'Arbeitszimmer', 'port' => '31337', 'proto' => 'tcp', - 'min' => '0', - 'max' => '100', + 'min' => 'U', + 'max' => 'U', }, } }, diff --git a/upsgraph.pl b/upsgraph.pl index 91ae5ad..82e0259 100755 --- a/upsgraph.pl +++ b/upsgraph.pl @@ -190,7 +190,6 @@ foreach my $host (@$hosts) { if (defined($rrdinfo->{"ds[${field}].max"})) { if ($rrdinfo->{"ds[${field}].max"} ne $host->{'vars'}->{$field}->{'max'}) { - print "Max differs\n"; RRDs::tune("${rrdfile}.${field}","-a",$field.":".$host->{'vars'}->{$field}->{'max'}); } } else { -- 2.39.5