Ad Widget

Collapse

Referencing proxy in Trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cameron.mcgregor
    Junior Member
    • May 2016
    • 5

    #1

    Referencing proxy in Trigger

    Is there a way to reference the proxy in the Trigger?

    For example: {HOST.NAME} is not available from {PROXY}

    This would put the actual host name in the alert but it doesn't work for the proxy.
  • dan_cytexone
    Member
    • Dec 2008
    • 61

    #2
    Have you found a solution to this? I too want to have proxies in the alerts.

    Comment

    • DmitryL
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • May 2016
      • 278

      #3
      Hi,

      Take a look at


      {PROXY.NAME} is supported in:

      * Trigger-based notifications and commands
      * Discovery notifications
      * Auto registration notifications
      * Trigger based internal notifications
      * Item based internal notifications
      * Low-level discovery rule based internal notifications

      Best regards,
      Dmitry
      Last edited by DmitryL; 13-06-2016, 10:55.

      Comment

      • dan_cytexone
        Member
        • Dec 2008
        • 61

        #4
        Unfortunately despite the documentation proxy.name does not work in action notifications.

        The documentation is either wrong or there is a bug in the software

        Comment

        • dan_cytexone
          Member
          • Dec 2008
          • 61

          #5
          My bad. My original test I think was missing quotes. This is working.

          Sorry for the false alarm.

          Dan

          Comment

          • RaulChiarella
            Member
            • Apr 2021
            • 59

            #6
            Yo. How did u fix this?
            My expression is returning "Proxy {PROXY.NAME} does not exist."

            Item key is zabbix[proxy,{PROXY.NAME},lastaccess] but it returns that it does not exists

            Comment

            • johndoe2374
              Member
              • Aug 2021
              • 80

              #7
              Originally posted by RaulChiarella
              Yo. How did u fix this?
              My expression is returning "Proxy {PROXY.NAME} does not exist."

              Item key is zabbix[proxy,{PROXY.NAME},lastaccess] but it returns that it does not exists
              I guess you're trying to put this item for your proxy, so you can check for the lastaccess.

              Do you monitor your proxy via itself ("Monitored by proxy - <yourproxy>" on the host configuration page)? And it's required to be so for using "Zabbix proxy health" template for example. I think {PROXY.NAME} resolves into corresponding proxy names only for hosts which are monitored by proxies.

              Comment

              • RaulChiarella
                Member
                • Apr 2021
                • 59

                #8
                Originally posted by johndoe2374

                I guess you're trying to put this item for your proxy, so you can check for the lastaccess.

                Do you monitor your proxy via itself ("Monitored by proxy - <yourproxy>" on the host configuration page)? And it's required to be so for using "Zabbix proxy health" template for example. I think {PROXY.NAME} resolves into corresponding proxy names only for hosts which are monitored by proxies.
                Yes. I do monitor using proxy. Well. If it is not possible for me to get the name of the proxy in my Zabbix Server in the trigger, how can I reference the host name itself?
                I used `zabbix[proxy,{HOST.NAME},delay]` but the item was saved with the name `{HOST.NAME}` and did not get the name of the host.
                Last edited by RaulChiarella; 10-04-2023, 18:05. Reason: Added some questions.

                Comment

                • cyber
                  Senior Member
                  Zabbix Certified SpecialistZabbix Certified Professional
                  • Dec 2006
                  • 4807

                  #9
                  Originally posted by RaulChiarella
                  I used `zabbix[proxy,{HOST.NAME},delay]` but the item was saved with the name `{HOST.NAME}` and did not get the name of the host.
                  In item config macros are never expanded...

                  Comment

                  Working...