Page 1 of 1
check_ssh remote-protocol
Posted: Mon Oct 07, 2024 9:47 am
by AngeloMileto
I was wanting to add in a check for the protocol for SSH and added in the --remote-protocol="2.0" to the arg parameter but it fails with a message that basically says the syntax is invalid. If I swap it out to the -P instead, it works fine.
We're on an old version so maybe this is fixed? We are on v2.3.3 of the plugin.
Re: check_ssh remote-protocol
Posted: Mon Oct 07, 2024 10:55 am
by sgardil
AngeloMileto wrote: ↑Mon Oct 07, 2024 9:47 am
I was wanting to add in a check for the protocol for SSH and added in the --remote-protocol="2.0" to the arg parameter but it fails with a message that basically says the syntax is invalid. If I swap it out to the -P instead, it works fine.
We're on an old version so maybe this is fixed? We are on v2.3.3 of the plugin.
Thanks for reaching out
@AngeloMileto ,
Looking at the man pages it looks like the remote-protocol flag should also work.
Here is a link to the man pages if you would like to have a look. I found an issue in the plugin which is likely causing the issue and I made a pull request which should fix the issue.
Here is a link if you want to keep track with the change, otherwise -P does the same thing.
Re: check_ssh remote-protocol
Posted: Wed Oct 16, 2024 12:37 pm
by AngeloMileto
Awesome and thanks for the reply and the fix!