Ad Widget

Collapse

Trying to change $AGENT.TIMEOUT in Zabbix agent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • physikerman
    Junior Member
    • Jun 2021
    • 1

    #1

    Trying to change $AGENT.TIMEOUT in Zabbix agent

    Trying to change this trigger:

    "Zabbix agent is not available (for {$AGENT.TIMEOUT})"

    so that instead of

    "Zabbix agent is not available (for 3m)"

    it says

    "Zabbix agent is not available (for 5m)"


    Does anyone know where I can change this $AGENT.TIMEOUT variable?
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1782

    #2
    Yes, they are called user macros so there is the documentation: https://www.zabbix.com/documentation...os/user_macros

    Markku

    Comment


    • marianogedisman
      marianogedisman commented
      Editing a comment
      Sorry to necropost, but on the link provided (or any previous versions of Z thereof) does not mention {$AGENT.TIMEOUT} at all.

      One would be tempted to think that the agent timeout comes from the agent config file, but config file mentions SECONDS, not minutes:

      ```
      ### Option: Timeout
      # Spend no more than Timeout seconds on processing
      #
      # Mandatory: no
      # Range: 1-30
      # Default:
      Timeout=3
      ```

      So where does the {$AGENT.TIMEOUT} really come from?
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1782

    #3
    As mentioned, it is a user macro, not an agent configuration directive.

    Look at the Macros tab in the template and/or in the host that uses the template.

    Markku

    Comment


    • marianogedisman
      marianogedisman commented
      Editing a comment
      Ohhhh, now I get what you mean! Sorry I didn't get it on the first time. Thanks a lot for the clarification! It's much appreciated Markku!
Working...