lorf / zapache

Zabbix Apache Monitoring Script (from https://www.zabbix.org/wiki/Docs/howto/apache_monitoring_script#Method_3, originally from https://www.zabbix.com/forum/showthread.php?p=62457)
85 stars 44 forks source link

race condition with ping. #16

Open alvinstarr opened 6 years ago

alvinstarr commented 6 years ago

zapache_patch.txt If the polling time is close to the cache time it is possible for the cache to go stale between the first timestamp check and the second check.

The attached patch should fix the problem.