Request for Options: SSh Command Execution

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
w14219
Posts: 33
Joined: Wed Feb 15, 2012 2:04 am

Request for Options: SSh Command Execution

Post 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
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: Request for Options: SSh Command Execution

Post by jsmurphy »

Locked