From 6f22e40042361d95801d08bddfcd604e4caa4588 Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Thu, 16 Dec 2010 10:24:24 +0000 Subject: [PATCH] allow negative values in ipmi sensor files, for negative volts and temperatures git-svn-id: http://www.observium.org/svn/observer/trunk@1761 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/polling/ipmi.inc.php | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/includes/polling/ipmi.inc.php b/includes/polling/ipmi.inc.php index 62311d7e24..7ccb66bbf0 100644 --- a/includes/polling/ipmi.inc.php +++ b/includes/polling/ipmi.inc.php @@ -29,12 +29,20 @@ if ($ipmi['host'] = get_dev_attrib($device,'ipmi_hostname')) if (!is_file($sensorrrd)) { `rrdtool create $sensorrrd \ - --step 300 \ - DS:sensor:GAUGE:600:0:20000 \ - RRA:AVERAGE:0.5:1:1200 \ - RRA:MIN:0.5:12:2400 \ - RRA:MAX:0.5:12:2400 \ - RRA:AVERAGE:0.5:12:2400`; + --step 300 \ + DS:sensor:GAUGE:600:-20000:20000 \ + RRA:AVERAGE:0.5:1:600 \ + RRA:AVERAGE:0.5:6:700 \ + RRA:AVERAGE:0.5:24:775 \ + RRA:AVERAGE:0.5:288:797 \ + RRA:MAX:0.5:1:600 \ + RRA:MAX:0.5:6:700 \ + RRA:MAX:0.5:24:775 \ + RRA:MAX:0.5:288:797\ + RRA:MIN:0.5:1:600 \ + RRA:MIN:0.5:6:700 \ + RRA:MIN:0.5:24:775 \ + RRA:MIN:0.5:288:797`; } echo($sensor . " \n"); # FIXME unit should follow?