Page 1 of 1

Request for Options: SSh Command Execution

Posted: Sun Sep 09, 2012 9:41 am
by w14219
I am trying to monitor and return a specific value from a Mikrotik router, RG411. The value I need cannot be queried via OIDs, however, if I execute the following command via a bash script, I can capture the results to the $outputSSH string.

outputSSH=$(ssh $community@$Host "/interface wireless monitor 0 once"|grep tx-ccq|grep -v overall-tx-ccq|sed 's/%//')


Can I get some help with implementing this in Nagios Core? Some suggestions would be appreciated.

Many thanks,
Mike

Re: Request for Options: SSh Command Execution

Posted: Sun Sep 09, 2012 6:03 pm
by jsmurphy