quick action item

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: quick action item

Post 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.
btemple
Posts: 183
Joined: Fri Nov 08, 2013 9:30 am

Re: quick action item

Post by btemple »

does this look correct ?

/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

Post 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
Locked