Ad Widget

Collapse

External checks timeout

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • niumar
    Junior Member
    • Sep 2009
    • 25

    #1

    External checks timeout

    Hi all!

    Could someone answer me how much is the timeout for itens with type 'external checks' and how I can increase them?
  • eskytthe
    Senior Member
    Zabbix Certified Specialist
    • May 2011
    • 363

    #2
    In your zabbix_server.conf file:

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

    (Be careful, can have performance impact on your zabbix system)
    BR
    Erik

    Comment

    • niumar
      Junior Member
      • Sep 2009
      • 25

      #3
      Thanks Erik! Next time I will read the whole description in conf file .

      I made a sql script to analise some data from zabbix database and return them to zabbix via external check. The problem is that this select cold spand more than 30 seconds to finish.

      Now I need start to optimize the database and the sql!

      Thanks,
      Niumar

      Comment

      • eskytthe
        Senior Member
        Zabbix Certified Specialist
        • May 2011
        • 363

        #4
        Hi Niumar
        Consider to use zabbix_sender to send you data into zabbix.

        E.g. run your job and zabbix_sender from a cronjob locally on the zabbix server.
        Your items have to be "Zabbix trapper" type then.
        (I use zabbix_sender a lot - most with the data input file option).
        BR
        Erik

        Comment

        • niumar
          Junior Member
          • Sep 2009
          • 25

          #5
          Its a good idea Erik when my host has the zabbix agent!
          But on my worst case, the hosts are agent less and, therefore, without zabbix sender. In this cas, the server must execute a command to get the data from that agent less host and then save it for the right host on zabbix database.

          If I use the agent installed on server to get the data from the remote agent less host, i think the data will be stored for the host zabbix_server instead to right agent less host.

          A little bit confused i think. But I will try your suggestion!

          Thanks again!
          Niumar

          Comment

          • eskytthe
            Senior Member
            Zabbix Certified Specialist
            • May 2011
            • 363

            #6
            Just use the -s option for zabbix_sender for the "data source" host or the <hostname> if using data input file :-)
            BR
            Erik

            ----------------
            -s, --host <host>
            Specify host name as registered in Zabbix front-end. Host IP address and DNS name will not work.

            Comment

            Working...