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

Add -o option (max message size) in check_snmp_win #69

Closed Mvedrines closed 4 years ago

Mvedrines commented 4 years ago

Hi,

The check_snmp_win plugin frequently runs into "ERROR: Process name table : The message size exceeded the buffer maxMsgSize of 5000.".

I thought I'd just implement the -o option allowing to override maxMsgSize through the command line, as already done in other plugins, for example check_snmp_process.pl.

(successfully tested against a Windows 10 machine with system SNMP service)

Here is the patch for the plugin. Then what is the process to get the associated config for Icinga2 command "snmp-service" updated upstream?

Mathias

SteScho commented 4 years ago

Merged. Thank you.