$port['cpeExtPsePortPwrAllocated'], 'PortPwrAvailable' => $port['cpeExtPsePortPwrAvailable'], 'PortConsumption' => $port['cpeExtPsePortPwrConsumption'], 'PortMaxPwrDrawn' => $port['cpeExtPsePortMaxPwrDrawn'], ); $ret = rrdtool_update("$rrdfile", $fields); $tags = array('ifName' => $port['ifName']); influx_update($device,'poe',$tags,$fields); echo 'PoE '; }//end if