wrapper script for zabbix-agent externalscript with timeout of operation

Sometime you have situation that external script is running for a long time and that cause zabbix agent to accumulate huge amout of unused semaphores. This situation can be described by:

You can avoid this by such custom script that will return result in time interval if not kill process and return None by timeout:

It could be usefull to find out more detail information:

You can clean all semaphores by such script:

Please don’t use it in case when zabbix agent is running. I have to find out that semaphore is not currenty using. You can use it safely in case when zabbix agent stopped.


Author: GergunD

Leave a Reply