Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 20598

Re: Process count script

$
0
0

Looks like a linux/unix script monitor:

 

count=`ps -ef|grep -c xxxx | grep -v grep | wc -l`

 

if [ $count == 7 ] then

echo "Statistic:$count \n";

echo "Message: Count is at $count and looks good \n"

 

else

echo "Statistic:$count \n";

echo "Message: Count is at $count and needs to be investigated"

 

fi

 

Note: You can use Warning or Critical Statistics threshold to trigger an alert ( set Warning threshold not equal to 7 -> create an adavance alert to trigger when component is in warning state)


Viewing all articles
Browse latest Browse all 20598

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>