Ad Widget

Collapse

Problemas Timeout system.run[]

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JJMR
    Junior Member
    • Jan 2015
    • 4

    #1

    Problemas Timeout system.run[]

    Estimados,

    Presento un problema al ejecutar un script desde zabbix:

    zabbix_get -s 10.1.1.4 -p 10055 -k 'system.run[D:\ruta\Consulta_sql.bat]'
    ZBX_NOTSUPPORTED: Timeout while executing a shell script.

    Si ejecuto el script de forma local en el servidor este demora 4 segundos aprox.

    Realice las modificaciones en los archivos zabbix_agentd.conf y zabbix_server.conf

    La configuración en los archivos esta de la siguiente forma:

    ### Option: Timeout
    #Specifies how long we wait for agent, SNMP device or external check (in #seconds).
    # Mandatory: no
    # Range: 1-30
    # Default:
    Timeout=10

    Desde ya agradezco mucho su ayuda
  • lgalford
    Junior Member
    • Aug 2014
    • 21

    #2
    ZBX_NOTSUPPORTED: Timeout while executing a shell script.

    I have the same issue when trying to run this script

    zabbix_get -s 10.66.4.90 -p 10050 -k HostInventory_[software]

    this will run the following script

    function Get-software

    {
    Get-WmiObject -Class Win32_Product |
    Select-Object -ExpandProperty Name
    }

    I run this query directly on the server and it works fine, it is true it takes a few seconds to run. Is there any way to control that condition .

    Waiting for your soon replay.

    Rgds
    Luis

    Comment

    • angelhc
      Senior Member
      Zabbix Certified Specialist
      • Nov 2009
      • 226

      #3
      JJMR, aumenta el timeout en el agente a 60 segundos y prueba
      También aviso, los items de tipo System.run hacen que todo el server se relentice muchísimo. En mi caso teníamos 40 servidores en los que era necesario monitorizar 150 items (por cada servidor) con system.run... y el zabbix server no respondía bien. La solución, como muchas veces, es poner un proxy para que haga el trabajo y no se vea afectado el performance del server.


      lgalford (Luis), este es el foro para Portugês y Español, si puedes por favor escribe en cualquiera de nuestros idiomas. Gracias.
      Number of hosts 1600,Number of items +90k,Number of triggers +22k, Number of users +100, New values per second +1270

      http://zabbixes.wordpress.com/

      Comment

      • Bruno Carvalho
        Member
        • Oct 2014
        • 32

        #4
        Caso não resolva, recompiler o zabbix_server.c com um TIMEOUT maior.

        Comment

        Working...