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
You should probably just be able to plug in this command to the template script:
ssh $IP -p $PORT 'ps -ef | grep arserverd | grep -v grep && ps -ef | grep arplugin | grep -v grep' 2>&1 > /dev/null
in replacement of this line:
nc $IP $PORT | grep "my receive string" 2>&1 > /dev/null
I haven't tested this, but I think it looks about right.
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