Add ifAlias to tag influxdb port data (#8461)

* Update ports.inc.php

Adding ifAlias to the $tags that are sent into influxdb

* Remove space
This commit is contained in:
papatango71
2018-03-23 10:43:50 -07:00
committed by Tony Murray
parent 41dbc3547d
commit 7ed7885ca7

View File

@@ -760,7 +760,8 @@ foreach ($ports as $port) {
$port_descr_type = $port['port_descr_type'];
$ifName = $port['ifName'];
$tags = compact('ifName', 'port_descr_type', 'rrd_name', 'rrd_def');
$ifAlias = $port['ifAlias'];
$tags = compact('ifName', 'ifAlias', 'port_descr_type', 'rrd_name', 'rrd_def');
rrdtool_data_update($device, 'ports', $tags, $fields);
$fields['ifInUcastPkts_rate'] = $port['ifInUcastPkts_rate'];