Part 3: Monitoring the health of BIG-IP APM network access PPP connections with a periodic iCall handler
Published May 12, 2020
Version 1.0Was this article helpful?
Abdessamad,
>> I removed the check "if {$errorcode} {set num_entries 0}" to have the error output logged.
Is there a reason, you prefer to remove the check? When nothing was matched by grep, the exit code is 1. The program enters the if condition and sets num_entries to 0.
If num_entries is not set, you'd encounter the error.
If you prefer not to use grep, you can probably use another command to scan through /var/log/apm for the string: errormsg "Reconnect"
Feel free to edit the code to match your requirements/environment.