Ad Widget

Collapse

Timeout - script over 30 second

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tomekxin1
    Junior Member
    • Apr 2025
    • 11

    #1

    Timeout - script over 30 second

    I have written a script on Windows in .bat
    it starts a program that performs some operations and then shuts down,
    so far I have not had any problems with it because it was executing for about 15-20 seconds,
    however after updating this program the operation time increased to 45-50 seconds,
    when I run the .bat script from Windows it works correctly, but when I run it from zabbix it shuts down after 30 seconds, zabbix simply shuts down the program after 30 seconds,
    I have an error
    ... is not supported: Timeout occurred while gathering data.
  • simonl
    Junior Member
    • Apr 2021
    • 11

    #2
    What version of Zabbix are you using?

    Version 7.0 introduced per-item timeouts which can be greater than 30 seconds but not sure if that's supported on the Windows variant of the Zabbix agent.

    Comment

    • tomekxin1
      Junior Member
      • Apr 2025
      • 11

      #3
      I had zabbix agent version 2 - 6.0 LTS, I updated zabbix agent to version 7.0 LTS and later to version 7.2 and I still have the same timeout message,
      I also tried to initialize userparameter from zabbix_get on the client, but with the same result (timeout)
      The topic of updating zabbix server to version 7 is more complicated, I will set up a test server sooner to check if it works

      Comment

      • tomekxin1
        Junior Member
        • Apr 2025
        • 11

        #4
        I installed zabbix server 7.0 on a test machine, connected agent 7.0 and I also have a timeout, and the script program closes after 30 seconds.

        Comment

        • markfree
          Senior Member
          • Apr 2019
          • 868

          #5
          Did you override your item timeout? This can be up to 600 seconds.

          Comment

          • tomekxin1
            Junior Member
            • Apr 2025
            • 11

            #6
            it worked, I had to comment out the "Timeout = 30" parameter on the zabbix client.
            The call only worked from the server level, but it didn't work in testing via zabbix_get

            Comment

            Working...