SteScho / manubulon-snmp

Set of Icinga/Nagios plugins to check hosts and hardware with the SNMP protocol.
GNU General Public License v2.0
73 stars 71 forks source link

Fallback SNMP versions and counter sizes #72

Open GillesMocellin opened 4 years ago

GillesMocellin commented 4 years ago

I wish I don't have to manage if my host will reply correctly with 64 bits or 32 bits counter, SNMP v2 or v1.

Perhaps the SNMP Interface check script can test and failover this way :

I know it will add some latency, but only on old platform which does not already support 64 bits counters...

SteScho commented 4 years ago

You should know if it is an old platform and if you have 64 bit counters. Why then let it be recognized automatically when you can just set it directly?

GillesMocellin commented 4 years ago

Hi ! Because I use a monitoring system (Icinga) with template for many different equipments, using the same command (these scripts). No, I don't want to sort my 1200 existing routers by SNMP version and 64 bits support. I do trial and error, but have to override some host by host settings.
Even more, I don't know why, some Windows hosts doesn't provide 64bits counters...

SteScho commented 4 years ago

I hope you don't have a 10 GBit interface that lacks the 64 bits ;-) Ok, maybe a switch for automatic snmp detection may be a solution. Can you create a PR?