Ad Widget

Collapse

What is the timout value for an External Script?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • noxis
    Senior Member
    • Aug 2007
    • 145

    #1

    What is the timout value for an External Script?

    Hi There!

    As topic really, I need to run some scripts that could take up to 2minutes to complete and return results to Zabbix.

    Thanks for your help!
  • Tenzer
    Senior Member
    • Nov 2007
    • 316

    #2
    You will probably have to look through the source code. It doesn't seem like it's mentioned in the manual.

    However, I would recommend you to set up a cronjob to execute the program/script instead, and then dump the output to a file which Zabbix reads. 2 minutes sounds like awful lot in this matter.
    Remember that a Zabbix process is taken up during the duration of the program/script, so you may have to increase the amount of processes it spawns.

    Comment

    • noxis
      Senior Member
      • Aug 2007
      • 145

      #3
      Ah I have answered my own question. The Timeout option in the zabbix_server.conf controls this timeout too. So a maximum of 30 seconds.

      I have discovered that Active checks however seem to have a far longer timeout (not found the maximum yet) but I have managed to successfully pick up this data:

      Code:
      #!/bin/bash
      sleep 60
      echo "60 seconds successfully executed"
      Edit: 300 completed just fine as well!
      Last edited by noxis; 24-10-2008, 15:37.

      Comment

      Working...