Ad Widget

Collapse

web monitorring trigger in templere

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yosef.yudilevich
    Junior Member
    • Jul 2014
    • 4

    #1

    web monitorring trigger in templere

    hi
    as wiki says:
    {host:web.test.fail[web_scenario].last(0)}#0

    i need to replace the "host" with {HOSTNAME} macro
    to put it in host without changing every time

    but dont know how
    help please
  • aib
    Senior Member
    • Jan 2014
    • 1615

    #2
    try macros {HOST.HOST}
    Sincerely yours,
    Aleksey

    Comment

    • yosef.yudilevich
      Junior Member
      • Jul 2014
      • 4

      #3
      wiki says macros doesnt work there.
      thanx

      Comment

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

        #4
        Code:
        {[B]host[/B]:web.test.fail[web_scenario].last(0)}#0
        Host should be template name - no host:
        Code:
        {[B]<TEMPLATE_NAME>[/B]:web.test.fail[web_scenario].last(0)}#0
        Macro {HOST.HOST} ({HOST.NAME}, ...) use in web scenarios of template - step - URL
        Code:
        https://{HOST.NAME}/wp-admin
        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

        • yosef.yudilevich
          Junior Member
          • Jul 2014
          • 4

          #5
          still doesnt want to take it...
          expression:
          {web_simple_check: web.test.fail[web_online].last(0)}#0

          where
          "web_simple_check" is teplete name
          and
          "web_online" is scenario name


          error:
          incorrect trigger expression. Check expression part starting from "{web_simple_check: web.test.fail[web_online].last(0)}#0".

          help pls
          thanx
          Attached Files

          Comment

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

            #6
            And my trigger works:
            Code:
            {Zenoss - web GUI checks:web.test.fail[Zenoss].min(#2)}>0 and {Zenoss - web GUI checks:web.test.error[Zenoss].str('xxxxx')}=0
            Use "Add" button for building your trigger expression.
            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

            • yosef.yudilevich
              Junior Member
              • Jul 2014
              • 4

              #7
              problem was with white space
              taken from wiki examlpe



              thanks alot jan.garaj

              Comment

              Working...