Page 1 of 1

Nagios xi change default account for ssh_proxy

Posted: Tue Sep 01, 2020 1:01 pm
by btaylorjr
is their a way to change the default account for the ssh_proxy to a difrant account The"nagios" account does not match our user policy for names

Re: Nagios xi change default account for ssh_proxy

Posted: Wed Sep 02, 2020 12:25 pm
by cdienger
Welcome to the forum, @btaylorjr!

Do you mean the check_by_ssh plugin? If so, then you can use a different login. First, transfer the key over to the account on the remote machine:

Code: Select all

ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]
and then use the "-l" option with the check_by_ssh plugin to specify the account:

Code: Select all

/usr/local/nagios/libexec/check_by_ssh -H 192.168.55.3 -l bob -C uptime
These are small changes to the same commands that https://assets.nagios.com/downloads/nag ... ng_SSH.pdf outlines.