Added mac address to the output
This commit is contained in:
parent
b6b4ac1009
commit
127bd5f9ac
@ -30,14 +30,15 @@ foreach ($iflist as $ifname => $friendly) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($ipaddr)) {
|
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,
|
$host,
|
||||||
$realif,
|
$realif,
|
||||||
$ipaddr,
|
$ipaddr,
|
||||||
|
$mac,
|
||||||
$friendly,
|
$friendly,
|
||||||
$source,
|
$source,
|
||||||
$ifstatus
|
$ifstatus
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
Loading…
x
Reference in New Issue
Block a user