This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Linux/Unix Monitor

I am trying to monitor so that if a service goes down that I can get an alert.

The most effective way I have found is to do the following script

#!/bin/bash

if ps -ef | grep speechbridged | grep -v grep; then

    echo "Statistic 0"

else

    echo "Statistic 1"

fi

I would like solarwinds to see that statistic 0 is up and statistic 1 is down, and the outputs are correct. However when I test it on the node I get:

Test Failed with "Unknown" status on node

No fields were recognized in the script output:

root 7716 1 0 09:16 pts/1 00:00:00 /bin/sh /etc/init.d/speechbridged start

Statistic 0

Any Ideas on how to make the monitor status up as the script is successful?