Page 1 of 1

check_by_ssh

Posted: Mon Oct 09, 2017 2:05 pm
by kevinmjacobsen
Hey,

I’d like to use the check_by_ssh plugin (we are using XI but I think it uses the same for the SSH Proxy wizard) but I have a slightly difficult/different setup.

My security team won’t let me use a nagios user on managed hosts. We are using a service account (e.g. svcmon) for our monitoring and that account uses an authorized key that is pushed to all managed servers.

I’m not sure what I need to do so that I could use the SSH Proxy wizard. Is there a change that I can make to either change to the service account in place of the nagios account or ensure that the tool is using the authorized key?

Re: check_by_ssh

Posted: Mon Oct 09, 2017 3:48 pm
by cdienger
Hi Kevin,

check_by_ssh can use a different account/key file using the -l and -i options. From the help page:

Code: Select all

...
 -l, --logname=USERNAME
    SSH user name on remote host [optional]
 -i, --identity=KEYFILE
    identity of an authorized key [optional]
...