Get interface description (which jail?) from SNMP

Henry78

Dabbler
Joined
Jan 28, 2016
Messages
16
Hi!

I'm monitoring my TrueNAS box (with Zabbix) via SNMP. Now I want to set the in interface name, which I get from IF-MIB::ifDescr, to the value I see in ifconfig | grep description. I could not find it anywhere with snmpwalk.

Do I miss something? Does anybody know if there's some way to achieve this?

Code:
$ snmpwalk -c ro -v2c freenas.home.hellex.online IF-MIB::ifDescr | grep vnet
        IF-MIB::ifDescr.7 = STRING: vnet0.1
        IF-MIB::ifDescr.8 = STRING: vnet0.2
        IF-MIB::ifDescr.9 = STRING: vnet0.14
        IF-MIB::ifDescr.10 = STRING: vnet0.4


Code:
freenas# ifconfig | grep description
        description: associated with jail: zabbix as nic: epair0b
        description: associated with jail: grafana as nic: epair0b
        description: associated with jail: restic as nic: epair0b
        description: associated with jail: www as nic: epair0b
 
Last edited:
Top