Nagios xi change default account for ssh_proxy

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
btaylorjr
Posts: 4
Joined: Tue Sep 01, 2020 12:37 pm

Nagios xi change default account for ssh_proxy

Post 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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios xi change default account for ssh_proxy

Post 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 bob@192.168.55.33
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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.