mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix more booboo
git-svn-id: http://www.observium.org/svn/observer/trunk@1945 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -27,7 +27,7 @@ if (is_numeric($cpu_usage))
|
||||
{
|
||||
if (!is_file($cpurrd))
|
||||
{
|
||||
rrd_create($cpurrd," --step 300 DS:LOAD:GAUGE:600:-1:100 RRA:AVERAGE:0.5:1:1200 RRA:AVERAGE:0.5:1:2000 \
|
||||
rrdtool_create($cpurrd," --step 300 DS:LOAD:GAUGE:600:-1:100 RRA:AVERAGE:0.5:1:1200 RRA:AVERAGE:0.5:1:2000 \
|
||||
RRA:AVERAGE:0.5:6:2000 \
|
||||
RRA:AVERAGE:0.5:24:2000 \
|
||||
RRA:AVERAGE:0.5:288:2000 \
|
||||
|
||||
@@ -31,7 +31,7 @@ if ($port_stats[$port['ifIndex']] && $port['ifType'] == "ethernetCsmacd"
|
||||
$rrd_create .= " DS:PortConsumption:DERIVE:600:0:U";
|
||||
$rrd_create .= " DS:PortMaxPwrDrawn:GAUGE:600:0:U ";
|
||||
|
||||
rrd_create($rrdfile, $rrd_create);
|
||||
rrdtool_create($rrdfile, $rrd_create);
|
||||
}
|
||||
|
||||
$upd = "$polled:".$port['cpeExtPsePortPwrAllocated'].":".$port['cpeExtPsePortPwrAvailable'].":".$port['cpeExtPsePortPwrConsumption'].":".$port['cpeExtPsePortMaxPwrDrawn'];
|
||||
|
||||
Reference in New Issue
Block a user