mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 16:04:35 +02:00
Power discovery/polling enabled for IPMI, CISCO-ENTITY-SENSORS-MIB and ENTIY-SENSORS-MIB
git-svn-id: http://www.observium.org/svn/observer/trunk@2104 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -20,12 +20,16 @@ function poll_sensor($device, $class, $unit)
|
||||
|
||||
if (!is_file($rrd_file))
|
||||
{
|
||||
|
||||
rrdtool_create($rrd_file,"--step 300 \
|
||||
DS:sensor:GAUGE:600:-273: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");
|
||||
DS:sensor:GAUGE:600:-20000:20000 \
|
||||
RRA:AVERAGE:0.5:1:1200 \
|
||||
RRA:AVERAGE:0.5:12:2400 \
|
||||
RRA:AVERAGE:0.5:288:750 \
|
||||
RRA:MAX:0.5:12:2400 \
|
||||
RRA:MAX:0.5:288:750 \
|
||||
RRA:MIN:0.5:12:2400 \
|
||||
RRA:MIN:0.5:288:750");
|
||||
}
|
||||
|
||||
echo("$sensor_value $unit\n");
|
||||
|
||||
Reference in New Issue
Block a user