Ad Widget

Collapse

No macros possible in URL expression

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • frater
    Senior Member
    • Oct 2010
    • 340

    #1

    No macros possible in URL expression

    Each trigger also has a URL-field.
    In the dashboard this trigger will show a clickable text instead of normal text.
    In the orange/black theme I use this becomes hardly readable, by the way.
    Maybe no-one is using it because of that?

    I'm using it for some non-templated triggers.

    I'm not using it for templated triggers because I can't use {} there

    This works:
    Expression
    Code:
    {pfsense:net.ping[10.250.250.5].max(#2)}=0
    URL
    Code:
    http://10.250.250.5
    But this doesn't:

    Expression
    Code:
    {Template_Standalone:httpspeed[https://{HOST.CONN1}:450/ ].min(#2)}>3000
    URL
    Code:
    http://{HOST.CONN1}:450/
    I will get the text http://{HOST.CONN1}:450/ in my dashboard instead of an URL pointing to the FQDN or IP
    This way I can't use it in a template...
    Zabbix agents on Linux, FreeBSD, Windows, AVM-Fritz!box, DD-WRT and QNAP
  • jan.garaj
    Senior Member
    Zabbix Certified Specialist
    • Jan 2010
    • 506

    #2
    That's correct. You can't use macro {HOST.CONN<1-9>} in Trigger expressions (column 11).



    Unfortunately, you have to change your concept. For example use standard web monitoring (you can user MACRO in URL) and web.test.time[Scenario,Step] item. If you know size of page and required speed of downloading => you are able to setup trigger for web.test.time[Scenario,Step] item.
    Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
    My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

    Comment

    • frater
      Senior Member
      • Oct 2010
      • 340

      #3
      Hi Jan,

      Thanks, but you are focussing on the test I'm doing there, but it also could have been a test for the validity of the certificate.
      I just want to use the url field in trigger which apparently has no practical use in its current implementation as you can't use it in a template.

      I asked for this feature a long time ago, but probably didn't make a proper ticket for it.
      Zabbix agents on Linux, FreeBSD, Windows, AVM-Fritz!box, DD-WRT and QNAP

      Comment

      • jan.garaj
        Senior Member
        Zabbix Certified Specialist
        • Jan 2010
        • 506

        #4
        Yes, I understand. IMHO you can use discovering if it possible (item/trigger prototypes), but then you will over engineer it :-D
        Last edited by jan.garaj; 20-12-2014, 18:29.
        Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
        My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

        Comment

        Working...