" . $port['ifDescr'] . " POE"); /// Update RRDs $rrdfile = $host_rrd . "/" . safename($port['ifIndex'] . ".rrd"); if(!is_file($rrdfile)) { $woo = shell_exec($config['rrdtool'] . " create $rrdfile -s 300 \ DS:PortPwrAllocated:GAUGE:600:0:12500000000 \ DS:PortPwrAvailable:GAUGE:600:0:12500000000 \ DS:PortConsumption:DERIVE:600:0:12500000000 \ DS:PortMaxPwrDrawn:GAUGE:600:0:12500000000 \ 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"); } $woo = "$polled:".$port['cpeExtPsePortPwrAllocated'].":".$port['cpeExtPsePortPwrAvailable'].":".$port['cpeExtPsePortPwrConsumption'].":".$port['cpeExtPsePortMaxPwrDrawn']; $ret = rrdtool_update("$rrdfile", $woo); /// End Update POE-RRD } } } ?>