Bug in SNMP wizard?
Posted: Fri Apr 01, 2016 9:29 am
I am using the SNMP Wizard to configure new Linux hosts on RHEL 6 for a Proof Of Concept project with XI. Unfortunately the generated service config files are not working. I see what happens but I do not know how to fix it.
- RHEL 6
- nagiosxi-5-2.0.el6.x86_64.tar.gz
- offline installation performed
Since we have hundreds of Linux servers to configure it would be nice if this feature worked properly.
See attachment - relevant settings circled in red.
When v3 is used with authNoPriv, username and password but no privileged password, the privileged protocol setting gets stored nevertheless.
The check_snmp_storage_wizard.pl (and other check_snmp* scripts) will be configured to work like this:
The second argument to --protocols should not be there in this case, because we are NOT using a privileged password. Hence the command fails with the error "Put snmp V3 priv login info with priv protocols!"
Also, the parameter with the -m argument is incorrect and makes the command fail. It should be "/mnt/tibco", without the anchors and escapes.
When I tweak the command manually it works. However, a restart or reconfiguration will put the 'des' and the regex patterns back, causing failure.
Note that the 'Privileged Protocol' pulldown menu has only the two options DES and AES, and not an 'empty' choice.
Is there a solution to this?
- RHEL 6
- nagiosxi-5-2.0.el6.x86_64.tar.gz
- offline installation performed
Since we have hundreds of Linux servers to configure it would be nice if this feature worked properly.
See attachment - relevant settings circled in red.
When v3 is used with authNoPriv, username and password but no privileged password, the privileged protocol setting gets stored nevertheless.
The check_snmp_storage_wizard.pl (and other check_snmp* scripts) will be configured to work like this:
Code: Select all
/usr/local/nagios/libexec/check_snmp_storage_wizard.pl -v -H c1aadapp5001 --login='<secret>' --passwd='<secret>' --protocols=md5,des -m "\^/mnt/tibco\$" -w 80 -c 95 -fThe second argument to --protocols should not be there in this case, because we are NOT using a privileged password. Hence the command fails with the error "Put snmp V3 priv login info with priv protocols!"
Also, the parameter with the -m argument is incorrect and makes the command fail. It should be "/mnt/tibco", without the anchors and escapes.
When I tweak the command manually it works. However, a restart or reconfiguration will put the 'des' and the regex patterns back, causing failure.
Note that the 'Privileged Protocol' pulldown menu has only the two options DES and AES, and not an 'empty' choice.
Is there a solution to this?