BIGIP LTM Automated Pool Monitor Flap Troubleshooting Script in Bash
Problem this snippet solves: A bash script is mainly for collecting data when F5 BIG-IP LTM pool member monitor flaps in a period of time and help determine the Root Cause of BIGIP monitor health ch...
Published Jun 18, 2015
Version 1.0Kiozs_131042
Altocumulus
Joined May 04, 2019
Kiozs_131042
Altocumulus
Joined May 04, 2019
Kiozs_131042
Jul 28, 2015Altocumulus
There's culprit on this script,
By default, LTM will rotate the LTM logs and following command:
"tail -f -n 0 $filename | while read -r line" which track the file according to the file descriptor (inode); so once file get rotated, script will still track the old file;
change the command to "tail -F -n 0 $filename | while read -r line" should be able to overcome this issue, as "-F" will track the file according to the name only.
Cheers
Best Regards
Kiozs