Ad Widget

Collapse

Handling external scripts that sometimes exceed 30 seconds timeout

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mattykay
    Junior Member
    • Mar 2018
    • 7

    #1

    Handling external scripts that sometimes exceed 30 seconds timeout

    Hi all,

    Does anyone have any suggestions getting around the maximum 30 second "timeout" Zabbix server/proxy config value?

    Having a problem that due to network latency, a PowerShell external script run on a Zabbix proxy sometimes exceeds 30 seconds (usually takes 20s) and seems to get killed by Zabbix, meaning it doesn't get cleaned up leaving a large number of files under /tmp (as per attached link).

    Possible Solution:
    * Re-write script to be cron-jobbed with using Zabbix-trapper items instead of external scripts. (but this is more hacky than I would like)
    * ??

    Any ideas? - is >30seconds timeout config possible?
    It appears that PowerShell Core creates some pretty verbose logging into syslog on Ubuntu1604, as well as created a GUID directory in /tmp during script execution. Syslog messages: Mar 5 11:35:16 MYHOST powershell[4930]: (v6.0.1:1:10) [P...
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    It is very difficult to extend the process of getting values from Zabbix server to more than 30 seconds.
    As you write, for processing that takes more than 30 seconds, use the periodic execution mechanism such as cron to notify the Zabbix server with the zabbix_sender command. It is also conceivable to output the processing result to a file and let the Zabbix server refer to that file.

    Comment

    • mattykay
      Junior Member
      • Mar 2018
      • 7

      #3
      Good points, thanks Atsushi.

      Comment

      Working...