centreon-plugins icon indicating copy to clipboard operation
centreon-plugins copied to clipboard

network::dlink::standard::snmp::plugin --mode=interfaces

Open sunks08 opened this issue 7 years ago • 6 comments

Hello,

i'm using a command to display the traffic on each ports of my dlink switch and i would like to add the vlan of the port.

The command is : --plugin=network::dlink::standard::snmp::plugin --mode=interfaces --hostname=$HOSTADDRESS$ --interface=x

I tried to add "--oid-extra-display=x.x.x.x.." but i get "UNKNOWN: Unsupported oid in --oid-extra-display-option"

I'm not sure to understand how this option is working and if it's possible to display the vlan of each port. It would be really awesome if i could !

I found the oid that give the VLAN number of the port, it's this one : 1.3.6.1.2.1.17.7.1.4.5.1.1.x the x mean the port number we want to display

Thanks !

sunks08 avatar Jun 08 '17 14:06 sunks08

I think this is a standard OID by the way

sunks08 avatar Jun 08 '17 14:06 sunks08

The index is the IfIndex of your interface ? You can have X Vlan for the same interface also no ?

garnier-quentin avatar Jun 09 '17 09:06 garnier-quentin

what i found about the OID 1.3.6.1.2.1.17.7.1.4.5.1.1: "The PVID, the VLAN ID assigned to untagged frames or Priority-Tagged frames received on this port."

Untagged frames means that you can have only one vlan, so it will display only one vlan for each port (or all port if you don't add the number of the interface). I guess it's an other OID for trunk port (tagged). I'll check monday if i can find something about that

sunks08 avatar Jun 10 '17 11:06 sunks08

To resume: With that OID when i do a "snmpwalk -v2c -c public xx.xx.xx.xx 1.3.6.1.2.1.17.7.1.4.5.1.1" It display the PVID (Port Vlan ID) of every interface and when theire is X vlan for the same interface it just display vlan 1 for me (wich is ok for now).

example for 1 interface: "snmpwalk -v2c -c public xx.xx.xx.xx 1.3.6.1.2.1.17.7.1.4.5.1.1.x SNMPv2-SMI::mib-2.17.7.1.4.5.1.1.x = Gauge32: 10"

So for the interface x, the vlan ID is 10.

If it's possible to add this option in the --plugin=network::dlink::standard::snmp::plugin --mode=interfaces it would be awesome.

thanks

sunks08 avatar Jun 12 '17 08:06 sunks08

Excuse me for the late response. If you still have the issue, could you provide me a snmpwalk with VLAN informations. snmpwalk -ObentU -v 2c -c public IP .1.3.6.1.2 > dlink.snmpwalk

garnier-quentin avatar Jun 06 '19 07:06 garnier-quentin