Ad Widget

Collapse

Help with Web Scenario Triggers!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • enkrypt3d
    Member
    • Oct 2013
    • 32

    #1

    Help with Web Scenario Triggers!

    I have been waiting for zabbix 2.2 to be release for a long time but it appears that this version doesn't fully improve the process of monitoring external web URL's.

    I have created my web scenario called FMS and I'm trying to create an item, so I can create a trigger so I can get notified. This process is very tedious.... why can't all this be on one simple page? Why would you NOT want to be notified?

    Incorrect key: "Invalid item key format.".

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

    This is really urgent......

    I am following the guide here which seems to be incorrect:

    Last edited by enkrypt3d; 10-12-2013, 19:54.
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    have you read the very first sentence in that guide ?
    Zabbix 3.0 Network Monitoring book

    Comment

    • enkrypt3d
      Member
      • Oct 2013
      • 32

      #3
      Obviously...... I just tested it and there are no triggers or items created. Why else would I be posting here?

      Comment

      • enkrypt3d
        Member
        • Oct 2013
        • 32

        #4
        web.page.get[host,<path>,<port>] Get content of WEB page. Default path is /
        web.page.perf[host,<path>,<port>] Get timing of loading full WEB page. Default path is /
        web.page.regexp[host,<path>,<port>,<regexp>,<length>] Get first occurence of regexp in WEB page. Default path is /

        This is the only items that I see when I go to create a new item. Also there are no items or triggers automatically created when I create the web scenario..

        Comment

        • enkrypt3d
          Member
          • Oct 2013
          • 32

          #5
          Also how to you variablize the URL in the web scenario step so that in a template is monitoring the correct URL per server? Does that make sense?

          When I create the web scenario, it does not create the item or trigger.... also I need to be sure its monitoring the right URL across many servers when its in a template.

          FYI this system was upgraded from 2.0.6... so I'm not sure if there is anything left over from the old installation? Should I drop the DB and start fresh?

          Please advise this is important.
          Last edited by enkrypt3d; 28-11-2013, 01:37.

          Comment

          • LenR
            Senior Member
            • Sep 2009
            • 1005

            #6
            You could use http://{HOST.DNS} or a user macro.

            After you add a web test to the template, the items will be available for a trigger.

            Comment

            • richlv
              Senior Member
              Zabbix Certified Trainer
              Zabbix Certified SpecialistZabbix Certified Professional
              • Oct 2005
              • 3112

              #7
              Originally posted by enkrypt3d
              Obviously...... I just tested it and there are no triggers or items created. Why else would I be posting here?
              the items are created, but they are not displayed in item config list, as they are "internal" ones. check latest data. also, they should be available when creating triggers/custom graphs
              Zabbix 3.0 Network Monitoring book

              Comment

              • enkrypt3d
                Member
                • Oct 2013
                • 32

                #8
                If I use {HOST.DNS} I get "Couldn't resolve host name"

                When I click on latest data it just spins there forever and the page never loads. This is after upgrading from 2.0.6 to 2.2.0 on Ubuntu / mysql.

                Comment

                • enkrypt3d
                  Member
                  • Oct 2013
                  • 32

                  #9
                  It appears to be loading the latest data but I do not see the items I need to create a trigger from....

                  why is this process so difficult?

                  What user macros can I use to make the hostname a variable? I need to setup about 30+ of these checks across our systems but this issue is preventing me from completing this.

                  Comment

                  • LenR
                    Senior Member
                    • Sep 2009
                    • 1005

                    #10
                    In a templated web step, I have http://{HOST.DNS} There could probably be "other/urlparts/whatever.html" following that macro as well.

                    For a host linked to that template, the field Agent DNS name exists and is valid. Is your host configured with valid DNS Name? Verify that first using dig or nslookup on the zabbix server/proxy running the web test.

                    User macros are any name conforming to the doc standard {$MACRO}, see https://www.zabbix.com/documentation...ros/usermacros

                    Comment

                    • enkrypt3d
                      Member
                      • Oct 2013
                      • 32

                      #11
                      The idea of doing "external web checks" is that the URL for these hosts is different than the internal hostname of the host being checked...

                      Also the zabbix agent is using the internal IP address or hostname of the host to be monitored. So zabbix is unaware of these hostnames unless they are set somewhere..

                      So there are 2 issues:

                      I may not be able to set this up in a template as each host to be monitored has a user facing URL that zabbix is unaware of.

                      And once this web scenario is created, the items and triggers are hidden.

                      I think this isn't a very unusual way of doing this and it makes sense to have the above automated as much as possible.... (bug fix? Feature enhancement?) of course I can't wait for bug fixes. I need a solution to these ASAP. Thanks

                      Comment

                      • LenR
                        Senior Member
                        • Sep 2009
                        • 1005

                        #12
                        Here is an example I use for web servers behind load balancers, there are 2 or more hosts that will server a common url.

                        For each host, I build a test, we want to know when ANY server providing the service to users is having problems. (And hopefully a action w/ remote commands to fix the problem for that host)

                        I create a host for the common url, of course not connected to any OS Template, just to the necessary Web tests. This is the tests that drive the SLA metrics, as long as the web service works, they don't care which host is doing the work.

                        Comment

                        • enkrypt3d
                          Member
                          • Oct 2013
                          • 32

                          #13
                          Yes that would be a lot of manual work...

                          Right now if I have a new FMS server come up, I have a template that checks to make sure FMS is running, and I want to add this web scenario to check the health of the app... I have maybe 15 of these servers to monitor. (as well as many other apps that will have this same type of check).

                          So automating this as much as possible is ideal. This is why I have been waiting on 2.2 to be released but it seems that the web scenario template functionality still is not ready for primetime as far as automation goes.

                          Comment

                          • enkrypt3d
                            Member
                            • Oct 2013
                            • 32

                            #14
                            Does anyone have a solution for this? I tried making a web scenario outside of a template and it still does not create the items or triggers.... how is this supposed to work?

                            Comment

                            • enkrypt3d
                              Member
                              • Oct 2013
                              • 32

                              #15
                              Is this going to be another one of those countless unanswered threads?


                              Last edited by enkrypt3d; 03-12-2013, 23:59.

                              Comment

                              Working...