Updated influx port data

This commit is contained in:
laf
2015-12-23 11:28:40 +00:00
parent 904a24d7ed
commit 0e33048339
+1 -1
View File
@@ -486,7 +486,7 @@ foreach ($ports as $port) {
$fields['ifInOctets_rate'] = $port['ifInOctets_rate'];
$fields['ifOutOctets_rate'] = $port['ifOutOctets_rate'];
$tags = array('ifName' => $this_port['ifName'], 'ifSpeed' => $this_port['ifSpeed'], 'port_descr_type' => $this_port['port_descr_type']);
$tags = array('ifName' => '"'.$this_port['ifName'].'"', 'ifSpeed' => '"'.$this_port['ifSpeed'].'"', 'port_descr_type' => '"'.$this_port['port_descr_type'].'"');
influx_update($device,'ports',$tags,$fields);
// End Update IF-MIB