check_ssh remote-protocol

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
AngeloMileto
Posts: 70
Joined: Mon Mar 21, 2022 7:53 am

check_ssh remote-protocol

Post 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.
sgardil
Posts: 355
Joined: Wed Aug 09, 2023 9:58 am

Re: check_ssh remote-protocol

Post 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.
AngeloMileto
Posts: 70
Joined: Mon Mar 21, 2022 7:53 am

Re: check_ssh remote-protocol

Post by AngeloMileto »

Awesome and thanks for the reply and the fix!
Post Reply