-
Notifications
You must be signed in to change notification settings - Fork 530
check_sftp: fixed validation for private-key arg #398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Hi, thanks for this PR. Are you actually using this argument? I am asking since it is not configurable via the GUI and it anyway does the same as --secret (which also looks like a bug to me). |
|
Hi, i am using this argument via Integrate Nagios plugins because we are connecting to an sftp server that only allows sftp authentication via ssh-key.
The two arguments are for different use cases:
|
|
Ok, this makes sense. However, then I think there is another bug in So Could you please take a look and check if I am correct? If I am, could you please include this in your fix and also briefly test it? |
|
i added the missing commit which was only local. |
|
Now the check on my local check_mk installation works as expected with the copied file. Now i tell |
jherbel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, thanks for the changes, I would suggest to slightly rename the argument for clarity
jherbel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks, this will be merged shortly.
The active check <tt>check_sftp</tt> claimed to accept <tt>--private-key</tt> as a command line argument for specifying a private key to be used for the SFTP login. However, attempting to use this option resulted in the error <tt>option --private-key not recognized</tt>. As of this werk, <tt>check_sftp</tt> accepts <tt>--private-key-file</tt> as a command line argument. This can be used to specify the path to a private key or certificate file which will be used for authentication. Closes #398 Change-Id: I8c4f70d2f0831ab4f054283f95d87afdab3def80
corrected argument name to expect to prevent the error:
option --private-key not recognized