Ad Widget

Collapse

Web monitoring + Email notifications

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sambzap
    Junior Member
    • Jan 2020
    • 15

    #1

    Web monitoring + Email notifications

    Hi!

    Im new to Zabbix...

    I have set up email notifications. It works out of box with "Template Module ICMP Ping".
    I have setup a Web monitoring scenario with one step, checking for a string in the response. It works well, I see an OK or Problem in the Monitoring view.

    But, I dont recieve any email-notifications from a Web monitoring fault. Do I have to setup anything else to get it working, compared to the ICMP Ping?

    Thanks!
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    You need to read and understand

    and

    And everything will become much easier :-)

    Comment

    • Sambzap
      Junior Member
      • Jan 2020
      • 15

      #3
      Ok, thanks!
      As I understand I have to manually configure events and notifications to work with web monitoring, compared to ICMP Ping template, where it’s pre-configured.
      is that right?..

      Comment

      • dimir
        Zabbix developer
        • Apr 2011
        • 1080

        #4
        You already have items - the data, and triggers - things that trigger problems based on that data. Events are generated by Zabbix when trigger state changes (OK -> PROBLEM or PROBLEM -> OK). Often, you need a notification about this. You configure notification in an Action. So, go to "Configuration -> Actions" and see which action matches your ICMP Ping trigger. Action has conditions, which might filter out the web monitoring triggers.

        Comment

        • Sambzap
          Junior Member
          • Jan 2020
          • 15

          #5
          Originally posted by dimir
          You already have items - the data, and triggers - things that trigger problems based on that data. Events are generated by Zabbix when trigger state changes (OK -> PROBLEM or PROBLEM -> OK). Often, you need a notification about this. You configure notification in an Action. So, go to "Configuration -> Actions" and see which action matches your ICMP Ping trigger. Action has conditions, which might filter out the web monitoring triggers.
          I have just followed:

          The Action are configured as in the documentation (no condition specified):
          "In the most simple case, if we do not add any more specific conditions, the action will be taken upon any trigger change from 'Ok' to 'Problem'."

          ICMP notifications works. But as Hamardaban noted, I maybe need to set up it manually here, to work with Web Monitoring?

          Comment

          • dimir
            Zabbix developer
            • Apr 2011
            • 1080

            #6
            You don't need additional action then. It looks to me that you are missing triggers on web monitoring items: https://www.zabbix.com/documentation...scenario_items

            Comment

            • Sambzap
              Junior Member
              • Jan 2020
              • 15

              #7
              Do I understand this correct:
              I have to to add one trigger per Scenario (I have defined multiple hosts with one Web monitoring each).
              Or can I add a trigger that catches all Web monitoring scenarios and send notification mails?

              Comment

              • dimir
                Zabbix developer
                • Apr 2011
                • 1080

                #8
                I'd recommend to use a template which will contain a web scenario and the needed trigger(s). Here's what you should go through:

                Templates: https://www.zabbix.com/documentation...nfig/templates
                Built-in macros: https://www.zabbix.com/documentation...ed_by_location
                User defined macros: https://www.zabbix.com/documentation...ros/usermacros

                Alternatively, if you have some budget you can outsource that task to Zabbix: https://www.zabbix.com/template_building_services
                Or get Zabbix team or official partner to train you in your preferred location: https://www.zabbix.com/training#training_schedule

                Comment

                • Sambzap
                  Junior Member
                  • Jan 2020
                  • 15

                  #9
                  Thanks!

                  I understand! I'm just doing it for my "home server farm" So I try to learn and understand.

                  So I should define a template, which I then can apply to multiple hosts, like the built in ICMP Template (and several others).
                  Thanks for advice's!

                  Comment

                  Working...