centreon / centreon-plugins

Collection of standard plugins to discover and gather cloud-to-edge metrics and status across your whole IT infrastructure.
https://www.centreon.com
Apache License 2.0
310 stars 273 forks source link

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

Open sunks08 opened 7 years ago

sunks08 commented 7 years ago

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 commented 7 years ago

I think this is a standard OID by the way

garnier-quentin commented 7 years ago

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

sunks08 commented 7 years ago

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 commented 7 years ago

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

garnier-quentin commented 5 years ago

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

lucie-dubrunfaut commented 2 months ago

Hello :)

Without additional information we are not able to provide a solution or resolve a possible bug. So @sunks08 if you still need a response / solution to this issue, can you provide us the snmpwalk asked by Quentin ? Otherwise we will be forced to close this issue.