Forum Discussion
Troy_93881
Apr 01, 2011Nimbostratus
Monitor using "grep"
All,
Looking for a little guidance. I would like to know if I can set up a monitor ( multiple monitors ) that would run a "grep" command and based on results -- mark a member up or down. ...
hooleylist
Apr 05, 2011Cirrostratus
Can you run this from one of the hosts you want to monitor:
ps -ef | grep arserverd | grep -v grep | grep \\\. && ps -ef | grep arplugin | grep -v grep | grep \\\.
If that returns something on success and nothing on failure, can you try this in the script?
ssh $IP -p $PORT 'ps -ef | grep arserverd | grep -v grep | grep \\\. && ps -ef | grep arplugin | grep -v grep | grep \\\. 2>&1 > /dev/null'
Aaron
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects