Ad Widget

Collapse

Timeout while executing a script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bernaldopenas
    Junior Member
    • Oct 2017
    • 13

    #1

    Timeout while executing a script

    Hi:

    I have a external check that executes a script that last arround 1 sec., in zabbix config i have configured a timeout of 6 but i still get not supported error timeout while executing a external script.
    I have zabbix 3.2.7 and i don't know why this is happening and how to solve it.
  • SchylgeICT
    Member
    • Oct 2017
    • 33

    #2
    I just got the same issue here.
    Running userparameter:
    UserParameter=product_state,powershell.exe -NoProfile -ExecutionPolicy Bypass -file "C:\Zabbix\av_check.ps1"

    av_check.ps1:
    $wmiQuery = "SELECT * FROM AntiVirusProduct"
    $AntivirusProduct = Get-WmiObject -Namespace "root\SecurityCenter2" -Query $wmiQuery @psboundparameters # -ErrorVariable myError -ErrorAction 'SilentlyContinue'
    Write-output $AntivirusProduct.productState

    anyone got a good idea?

    Comment

    • kaspars.mednis
      Senior Member
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Oct 2017
      • 349

      #3
      Hello !

      what exact error are you getting ? the not supported state can be caused by many causes

      more detailed information can be found in zabbix server/agent log files

      Sorry, you already specified the error timeout while executing a external script....
      Last edited by kaspars.mednis; 12-10-2017, 09:14.

      Comment

      • SchylgeICT
        Member
        • Oct 2017
        • 33

        #4
        Hi Kaspars,

        I have created a new thread which contains a summary of the challenge i'm facing:

        Comment

        Working...