SSH Login wizard

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jwelch
Posts: 225
Joined: Wed Sep 05, 2012 12:49 pm

SSH Login wizard

Post by jwelch »

I was trying out the SSH Login wizard and managed to break it.
Under 'Login Details', I entered a password with an exclamation mark in it. The wizard split the password and put the first part (winging this from memory) in $ARG2$, the 2nd half in $ARG3$ and the string to look for in $ARG4$ which was not used by the script. The check failed with an invalid return code. I went into the CCM and fixed the check variables and verified that the script works with the repaired variable settings. I did *not* try putting single or double quotes around the password in the wizard so (if the wizard can't catch and compensate for shell chars in the password) I don't know whether or not there needs to be instructions to do so under the password input field.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: SSH Login wizard

Post by lmiltchev »

The exclamation mark symbol is probably the most problematic one, as it is used as a delimiter... The wizard needs to be modified to include the logic for checking for illegal characters. You can put you password in the "/usr/local/nagios/etc/resource.cfg" file.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked