mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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
This commit is contained in:
@ -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?
|
||||
|
Reference in New Issue
Block a user