fix ifName randomly defined, breaking influxdb updates (#4202)

This commit is contained in:
Mickael Marchand 2016-08-25 12:55:27 +02:00 committed by Neil Lathwood
parent ec12273aa7
commit 63cdd8210d

View File

@ -641,6 +641,7 @@ foreach ($ports as $port) {
}
$port_descr_type = $port['port_descr_type'];
$ifName = $port['ifName'];
$tags = compact('ifName', 'port_descr_type', 'rrd_name', 'rrd_def');
rrdtool_data_update($device, 'ports', $tags, $fields);