diff --git a/plugins/telegraf_pfinterface.php b/plugins/telegraf_pfinterface.php index 4d95f74..401081d 100755 --- a/plugins/telegraf_pfinterface.php +++ b/plugins/telegraf_pfinterface.php @@ -30,14 +30,15 @@ foreach ($iflist as $ifname => $friendly) { } if (!empty($ipaddr)) { - printf("interfaces,host=%s,name=%s,ip_address=%s,friendlyname=%s,source=%s status=%s\n", + printf("interface,host=%s,name=%s,ip_address=%s,mac_address=%s,friendlyname=%s,source=%s status=%s\n", $host, $realif, $ipaddr, + $mac, $friendly, $source, $ifstatus ); } } -?> +?> \ No newline at end of file