Page 2 of 2

Re: quick action item

Posted: Fri Jul 10, 2015 9:30 am
by jdalrymple
No easy way, but you can tell check_by_ssh to login with nagios or root or whatever on the remote system by using the -l argument.

Re: quick action item

Posted: Fri Jul 10, 2015 9:33 am
by btemple
does this look correct ?

/usr/local/nagios/libexec/check_by_ssh -H $HOST -C "top -cSbn 1" -l nagios

Re: quick action item

Posted: Fri Jul 10, 2015 9:40 am
by jdalrymple
Assuming you have apache's id_rsa.pub from your nagios box in ~/.ssh/authorized_keys for nagios user on the remote box - yes