Hello all, I'm fairly sure someone on here has done this before and am hoping its fairly easy to implement. I'm trying to use the LTM's monitors as a way to take offline non-functioning web servers. ...
Ah that's a good point, I'll make the last part of the script be:
if [ -z $pool1 ] && [ -z $pool2 ];
then
rm -f $pidfile
echo "up"
fi
This is the first external monitor I've played with so it's new territory for me. What I read in the help docs is that if there's any output from the script the F5 interprets it as a positive response (system up) and if the script doesn't output anything then it's negative (system down).
The script as-is works in this manor right now - if all pools are up, the script outputs the text "up" and if any pool is down the script doesn't output anything. I expected my test pool with this monitor applied to go down when I brought down one of the pools but it didn't and if I run the script manually it's acting as it should, not emitting any text. Am I doing something wrong?
Here's a screen shot of the monitor within the F5, fairly basic...