$port['cpeExtPsePortPwrAllocated'], 'PortPwrAvailable' => $port['cpeExtPsePortPwrAvailable'], 'PortConsumption' => $port['cpeExtPsePortPwrConsumption'], 'PortMaxPwrDrawn' => $port['cpeExtPsePortMaxPwrDrawn'], ); $tags = compact('ifName', 'rrd_name', 'rrd_def'); data_update($device,'poe',$tags,$fields); echo 'PoE '; }//end if