Ad Widget

Collapse

Monitor windows interfaces from name

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Celizior
    Junior Member
    • Nov 2015
    • 4

    #1

    Monitor windows interfaces from name

    Hello everybody !

    After some hours of research I think I would need some help ^^"
    Some of my monitored servers (with Zabbix agent) have several interfaces.
    All of those with Unix based OS work fine :
    - pfsense
    net.if.in[hn0]
    net.if.in[hn1]
    net.if.in[hn2]
    - Linux (mainly Ubuntu server)
    net.if.in[eth0]
    net.if.in[eth1]

    The problem is about Windows based OS, I renamed my interfaces LAN1,LAN2 (originaly Ethernet, Ethernet 2).
    Zabbix doesn't permit net.if.in[LAN1], it absolutely wants something like net.if.in[Realtek PCIe GBE Family Controller]
    I tried with discvovery rules but I get 2X NIC (physical NIC, VPN, hyper-v virtual switch).
    Perf counter also wants Realtek PCIe GBE Family Controller.
  • Celizior
    Junior Member
    • Nov 2015
    • 4

    #2
    I know I can use net.if.in[10.0.0.X] but I couldn't use it with templates and would become hard to manage with a lot of servers.
    Currently, I'm trying to get this value with WMI :

    select Name from win32_networkAdapter where NetConnectionID='LAN1'
    and Win32_PerfFormattedData_Tcpip_NetworkInterface
    The WMI Query Language (WQL) is a subset of the American National Standards Institute Structured Query Language (ANSI SQL)&\#8212;with minor semantic changes. The following table lists the WQL keywords.



    I'm trying to get the interface name (Realtek PCIe GBE Family Controller #X) from NetConnectionID (LANX)
    then do a kind of JOIN with the name (Realtek PCIe GBE Family Controller _X) and BytesReceivedPersec (some bps)
    The new problems are :
    1)
    win32_networkAdapter give Realtek PCIe GBE Family Controller #X
    and Win32_PerfFormattedData_Tcpip_NetworkInterface Realtek PCIe GBE Family Controller _X
    2)
    I really don't understand how work ASSOCIATORS OF

    Comment

    Working...