quick action item
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: quick action item
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
does this look correct ?
/usr/local/nagios/libexec/check_by_ssh -H $HOST -C "top -cSbn 1" -l nagios
/usr/local/nagios/libexec/check_by_ssh -H $HOST -C "top -cSbn 1" -l nagios
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: quick action item
Assuming you have apache's id_rsa.pub from your nagios box in ~/.ssh/authorized_keys for nagios user on the remote box - yes