Hello,
I'm running a Zabbix 2.2 Appliance on a server and I've got a few Windows (7 x64) hosts to monitor.
In an effort to facilitate adding new hosts later on, I'm trying to make my items as generic as they can be.
Now I'm interested in monitoring my NIC traffic without knowing its display name.
For that purpose, I came up with a command to fetch the adapters' names using awk:
I intended to somehow use the output generated by this command as an argument to a perf_counter or net.if key, but I don't see how that would work.
Any help will be greatly appreciated.
I'm running a Zabbix 2.2 Appliance on a server and I've got a few Windows (7 x64) hosts to monitor.
In an effort to facilitate adding new hosts later on, I'm trying to make my items as generic as they can be.
Now I'm interested in monitoring my NIC traffic without knowing its display name.
For that purpose, I came up with a command to fetch the adapters' names using awk:
Code:
ipconfig /all | findstr /i description | findstr /i ethernet | gawk -F": " "{printf $2"}
Any help will be greatly appreciated.
Comment