Request for Options: SSh Command Execution
Posted: Sun Sep 09, 2012 9:41 am
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
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