Ad Widget

Collapse

Web Monitor Trigger for All Websites

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • psjoholm
    Junior Member
    • Apr 2013
    • 3

    #1

    Web Monitor Trigger for All Websites

    Hello all,

    I am evaluating Zabbix as an option to replace our current monitoring system.

    So far, the system is fairly simple to follow along, but I am stuck on an important decision maker on if this will work for our purposes.

    Our company has multiple web servers, that are multi-homed (multiple sites on each server). Our current system allows us to easily add of the websites to the monitor and have a single trigger to alert if any one of the many sites on that server go down.

    I was able to figure out how to add a host, and add web monitoring to that host, but I cannot figure out how to add a single trigger for all the scenarios on all the web servers.

    I really don't want to sit there and create a trigger for every scenario (website) that we host, I would like to just create one that will capture any new sites.

    The trigger I have is:

    {host:web.test.fail[Scenario].last(0)}#0

    But this would mean that I will need to:

    1. name the host
    2. Name the scenario

    I would like this to be dynamic, so that the trigger will pick up any host and any scenario.

    Any ideas please?

    Thanks a million for your help!

    -Pat S.
  • Heilig
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2013
    • 366

    #2
    This advice will suit you as well.

    It may also be useful to you
    Join the friendly and open Zabbix community on our forums and social media platforms.
    Last edited by Heilig; 29-04-2013, 14:19. Reason: add second url

    Comment

    • psjoholm
      Junior Member
      • Apr 2013
      • 3

      #3
      Thanks Heilig,

      The script is fairly nice, and I may put it use to get the first bulk import completed. The API could also simplify many things, but does not answer my question of creating a single trigger for all scenarios/websites.

      Having a trigger for every scenario seems extremely inefficient, so I was hoping to have one that would work for all the scenarios I am going to add in.

      Having 500 scenarios and 1 trigger makes a ton more sense.

      This way, when new sites (scenarios) are added in, the global trigger would pick it up.

      Maybe too much to hope for, with Zabbix, but this is how our current platform works. Zabbix does so much more, than our current platform, so I would be surprised if someone didn't figure out a way to have one trigger for all scenarios. I really want this to work, totally stoked about all the other possibilities here.

      Comment

      • Heilig
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Mar 2013
        • 366

        #4
        I also worked with the monitoring systems where you can create an incident and it will be apply by default for all servers.
        In Zabbix slightly different ideology and exists templates for things like that, but with a web scenario seems to me that this is not going to work.
        Last edited by Heilig; 30-04-2013, 18:42. Reason: add url

        Comment

        • psjoholm
          Junior Member
          • Apr 2013
          • 3

          #5
          Thanks for your time, Heilig.

          I will make it work. Once the initial import is done, adding new sites won't be that bad. Just need to remember to create a trigger each time as well.

          Naming conventions will be highly important with all these triggers

          Comment

          • simonquentel
            Member
            • Mar 2013
            • 49

            #6
            The only option I see is to have a trigger for a ODBC check that catches the state of all your items.

            It has two main issues:
            - So far I did not manage to make ODBC works in zabbix
            - It is quite a pitty to have to connect to zabbix database to avoid the problem of "one item - one trigger" for web monitoring.

            regards,

            Simon

            Comment

            • kaba
              Senior Member
              • May 2013
              • 122

              #7
              hi,
              I have a problem with the web monitoring. I can not manage to make monitroring that allows me to return the page I expected I.
              I get this error

              is anyone an idea that allows me to have as result: for example
              Required string: nagios OK

              and what is the syntax I have to put in POST at Steps and VARIABLE in scenario

              thank you for your help

              Comment

              Working...