Hello,
First, sorry for my bad english.
I'm working on a template to monitoring my Stormshield router and try to compare informations from 2 SNMP discovery to view the SNMP value of Table1 on my table 2 which had a different index.
The first SNMP request get information from FreeBSD OID i think, I need those to get my network interfaces informations ;
(Bold red lines is here for the final exemple)
MAC Address :
Network Speed Interfaces : .1.3.6.1.2.1.2.2.1.5 ???
For those request the index is based on a 1 to 16 value, and watch for more interfaces like the loopback.
I would like to get at least the two value (MAC Address and Speed) in SNMP discovery to get them on Zabbix on the other table that i use (OID Stormshield).
I used others SNMP Discovery given by Stormshield to get other informations like interfaces tags et label, comments ...).
In both table tables INDEX are differents (0 to 13 for Stormshield and 1 to 16 for FreeBSD) but got both the same value on a table, the interfaces/ports name :
Stormshield :
FreeBSD :
Not the same index, not the same ordrer but nearly the same data (name), I would like to automatically compare both and when a match occure between the interfaces name, Zabbix goes to find the MAC address of the correspondant index.
Like : "Interface N°{#SNMPINDEX} MAC Address = SNMPVALUE of index N°? table FreeBSD OID ifPhysAddress"
Exemple :
Zabbix looks for eth0 in Stormshield table, found it on index 12, looks in FreeBSD table and found eth0 on index 4, then get the result :
"Interface N°12 MAC Address = SNMPVALUE of index 4 table FreeBSD OID ifPhysAddress"
(Interface 12 MAC Address = 0:d:b4:f:0:56)
I hope that you found time to help me or found another way to do.
Have a nice day !
First, sorry for my bad english.
I'm working on a template to monitoring my Stormshield router and try to compare informations from 2 SNMP discovery to view the SNMP value of Table1 on my table 2 which had a different index.
The first SNMP request get information from FreeBSD OID i think, I need those to get my network interfaces informations ;
(Bold red lines is here for the final exemple)
MAC Address :
Code:
[root@localhost]# snmpwalk -v 2c -c public 192.168.x.x 1.3.6.1.2.1.2.2.1.6 MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs IF-MIB::ifPhysAddress.1 = STRING: IF-MIB::ifPhysAddress.2 = STRING: IF-MIB::ifPhysAddress.3 = STRING: 0:d:b4:f:0:55 IF-MIB::ifPhysAddress.[COLOR=#FF0000][B]4 = STRING: 0:d:b4:f:0:56[/B][/COLOR] IF-MIB::ifPhysAddress.5 = STRING: 0:d:b4:f:0:57 IF-MIB::ifPhysAddress.6 = STRING: 0:d:b4:f:0:58 IF-MIB::ifPhysAddress.7 = STRING: 0:d:b4:f:0:59 IF-MIB::ifPhysAddress.8 = STRING: 0:d:b4:f:0:5a IF-MIB::ifPhysAddress.9 = STRING: 0:d:b4:f:0:5a IF-MIB::ifPhysAddress.10 = STRING: 0:d:b4:f:0:5c IF-MIB::ifPhysAddress.11 = STRING: 0:d:b4:f:0:5c IF-MIB::ifPhysAddress.12 = STRING: IF-MIB::ifPhysAddress.13 = STRING: IF-MIB::ifPhysAddress.14 = STRING: IF-MIB::ifPhysAddress.15 = STRING: IF-MIB::ifPhysAddress.16 = STRING: 0:d:b4:f:0:56
For those request the index is based on a 1 to 16 value, and watch for more interfaces like the loopback.
I would like to get at least the two value (MAC Address and Speed) in SNMP discovery to get them on Zabbix on the other table that i use (OID Stormshield).
I used others SNMP Discovery given by Stormshield to get other informations like interfaces tags et label, comments ...).
In both table tables INDEX are differents (0 to 13 for Stormshield and 1 to 16 for FreeBSD) but got both the same value on a table, the interfaces/ports name :
Stormshield :
Code:
[root@localhost]# snmpwalk -v 2c -c public 192.168.x.x 1.3.6.1.4.1.11256.1.4.1.1.38 MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs SNMPv2-SMI::enterprises.11256.1.4.1.1.38.0 = STRING: "vlan0" SNMPv2-SMI::enterprises.11256.1.4.1.1.38.1 = STRING: "ng1" SNMPv2-SMI::enterprises.11256.1.4.1.1.38.2 = STRING: "ng0" SNMPv2-SMI::enterprises.11256.1.4.1.1.38.3 = STRING: "tun1" SNMPv2-SMI::enterprises.11256.1.4.1.1.38.4 = STRING: "tun0" SNMPv2-SMI::enterprises.11256.1.4.1.1.38.5 = STRING: "eth7" SNMPv2-SMI::enterprises.11256.1.4.1.1.38.6 = STRING: "eth6" SNMPv2-SMI::enterprises.11256.1.4.1.1.38.7 = STRING: "eth5" SNMPv2-SMI::enterprises.11256.1.4.1.1.38.8 = STRING: "eth4" SNMPv2-SMI::enterprises.11256.1.4.1.1.38.9 = STRING: "eth3" SNMPv2-SMI::enterprises.11256.1.4.1.1.38.10 = STRING: "eth2" SNMPv2-SMI::enterprises.11256.1.4.1.1.38.11 = STRING: "eth1" SNMPv2-SMI::enterprises.11256.1.4.1.1.38.[COLOR=#FF0000][B]12 = STRING: "eth0"[/B][/COLOR] SNMPv2-SMI::enterprises.11256.1.4.1.1.38.13 = STRING: "enc0"
Code:
[root@localhost]# snmpwalk -v 2c -c public 192.168.x.x 1.3.6.1.2.1.2.2.1.2 MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs IF-MIB::ifDescr.1 = STRING: lo0 IF-MIB::ifDescr.2 = STRING: enc0 IF-MIB::ifDescr.3 = STRING: em0 IF-MIB::ifDescr.[COLOR=#FF0000][B]4 = STRING: eth0[/B][/COLOR] IF-MIB::ifDescr.5 = STRING: eth1 IF-MIB::ifDescr.6 = STRING: eth2 IF-MIB::ifDescr.7 = STRING: eth3 IF-MIB::ifDescr.8 = STRING: eth4 IF-MIB::ifDescr.9 = STRING: eth5 IF-MIB::ifDescr.10 = STRING: eth6 IF-MIB::ifDescr.11 = STRING: eth7 IF-MIB::ifDescr.12 = STRING: tun0 IF-MIB::ifDescr.13 = STRING: tun1 IF-MIB::ifDescr.14 = STRING: ng0 IF-MIB::ifDescr.15 = STRING: ng1 IF-MIB::ifDescr.16 = STRING: vlan0
Like : "Interface N°{#SNMPINDEX} MAC Address = SNMPVALUE of index N°? table FreeBSD OID ifPhysAddress"
Exemple :
Zabbix looks for eth0 in Stormshield table, found it on index 12, looks in FreeBSD table and found eth0 on index 4, then get the result :
"Interface N°12 MAC Address = SNMPVALUE of index 4 table FreeBSD OID ifPhysAddress"
(Interface 12 MAC Address = 0:d:b4:f:0:56)
I hope that you found time to help me or found another way to do.
Have a nice day !
Comment