lausser / check_nwc_health

nwc = network component. This plugin checks lots of aspects of routers, switches, wlan controllers, firewalls,.....
http://labs.consol.de/nagios/check_nwc_health
GNU General Public License v2.0
147 stars 87 forks source link

not able to use SNMP 1/2c/3 on same command #272

Open joschi99 opened 3 years ago

joschi99 commented 3 years ago

I would like to configure the commands for the plugin for all SNMP versions. I can add the options "--username" or "--authpassword" without any problem and the plugin works correctly even on SNMP 1/2c, but if I add the option "--privprotocol" I got the error: Option privprotocol requires an argument

If I add an option for privprotocol like "--privprotocol=aes", then I got the error: CRITICAL - cannot create session object: An empty userName was specified on SNMP 1/2c

Could you change the behavior to allow 1 command for all SNMP versions?