$q_stats) { rrdtool_update_ng($device, 'port-jnx_cos_qstat', [ 'QedPkts' => $q_stats['jnxCosQstatQedPkts'], 'QedBytes' => $q_stats['jnxCosQstatQedBytes'], 'TxedPkts' => $q_stats['jnxCosQstatTxedPkts'], 'TxedBytes' => $q_stats['jnxCosQstatTxedBytes'], 'TailDropPkts' => $q_stats['jnxCosQstatTailDropPkts'], 'TotalRedDropPkts' => $q_stats['jnxCosQstatTotalRedDropPkts'], 'TotalRedDropBytes' => $q_stats['jnxCosQstatTotalRedDropBytes'], ], get_port_rrdindex($port) . '-' . $q_index); $queues[] = $q_index; /* if ($GLOBALS['config']['statsd']['enable']) { foreach ($adsl_oids as $oid) { // Update StatsD/Carbon StatsD::gauge(str_replace(".", "_", $device['hostname']).'.'.'port'.'.'.$port['ifIndex'].'.'.$oid, $this_port[$oid]); } } */ } set_entity_attrib('port', $port['port_id'], 'jnx_cos_queues', json_encode($queues)); } // FIXME -- remove attrib if it doesn't exist. }