Part 3: Monitoring the health of BIG-IP APM network access PPP connections with a periodic iCall handler
In this part, you monitor the health of PPP connections on the BIG-IP APM system by monitoring the frequency of a particular log message in the /var/log/apm file. In this log file, when the system is...
Published May 12, 2020
Version 1.0Kin
Employee
Joined June 05, 2019
Kin
Employee
Joined June 05, 2019
Kin
Apr 13, 2021Employee
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.