Forum Discussion
rraver_79489
Nimbostratus
May 08, 2009External health monitor works when ran from CLI but doesn't when applied to profile
I have the below health monitor that works when I run it in the command line, an UP statement gets put to the screen but doesn't when I apply it to the profile. I have tried it with both the static I...
hoolio
Cirrostratus
May 27, 2009Any standard output from an external script will be interpreted as a positive response for the member state, so the case (or the content) of the "up" message shouldn't matter.
It might help to log debug messages to a log file. Here are some quick notes for adding debug to a shell script with both standard error and standard out being redirected to the log file.
Based on info from: http://tldp.org/LDP/abs/html/io-redirection.html
DEBUG='1'
LOGFILE="/var/log/${0}.log"
If debug is enabled, log the date to a log file. Redirect standard error and out to the log file.
if [ ${DEBUG} -eq 1 ]; then echo "`date +"%Y-%m-%d %H:%M:%S"`: Debug enabled" >> ${LOGFILE} 2>&1; fi
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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