Ad Widget

Collapse

Monitor web page and send alert when site in unavailable

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mihab
    Junior Member
    • Sep 2015
    • 13

    #1

    Monitor web page and send alert when site in unavailable

    Hi

    We have our Zabbix configured for hosts (server and network equipment) in our LAN. We also want to add monitoring for a certain web pages in the same way, so that Zabbix will monitor one website like http://mywebsite.com/ and send alert when this web page is not reachable ?
    Is there any template that we can use, or what is the right procedure to do this ? Do we need to create a new host like we did for a server object ?

    Thank you
    Mike
  • miramira007
    Member
    • Sep 2015
    • 89

    #2
    Hey Mihab,

    in our network we must monitor some webapplications, too. i have done it like this: i created a dummy host and make web scenarios. But i havent set a trigger on it yet. Or do you have another way to monitor webapps?

    cu,
    mira

    Comment

    • aib
      Senior Member
      • Jan 2014
      • 1615

      #3
      Under the same "dummy host", where you created Web Scenarios, you can create some Triggers to control the result of web checks.
      In Expression you can use something like:
      Code:
      {dummy_hostname:web.test.fail[web_scenarios_name].last(0)}<>0 and {dummy_hostname:web.test.fail[web_scenarios_name].prev(0)}<>0
      Sincerely yours,
      Aleksey

      Comment

      • mihab
        Junior Member
        • Sep 2015
        • 13

        #4
        Originally posted by aib
        Under the same "dummy host", where you created Web Scenarios, you can create some Triggers to control the result of web checks.
        In Expression you can use something like:
        Code:
        {dummy_hostname:web.test.fail[web_scenarios_name].last(0)}<>0 and {dummy_hostname:web.test.fail[web_scenarios_name].prev(0)}<>0
        Aleksey

        Thank you. This was the right 'code' for trigger that I need.
        Now it works perfectly.
        @Mira - just create a 'dummy' host (I added 127.0.0.1 for IP), then create web scenario for web page that you want to monitor, and finally add trigger code that Aleksey posted.

        Regards,
        Mike

        Comment

        • kberrien
          Member
          • Mar 2007
          • 43

          #5
          Overall web check config??

          Mihab... would you share your settings, overall to implement a basic web check (is site down)?

          I've looked for documentation and I find https://www.zabbix.com/documentation...web_monitoring which is like 10% of the overall config, which excludes a step I resolved here https://www.zabbix.com/forum/showthread.php?t=51770

          I've got a template, a web policy (with items) which errors that it can't resolve the address (when the server can). I've got an application setup, and I've now added the trigger logic in this thread here...

          All the documentation I can find, or posts provide small bits of the overall config but no overall configuration or explanation of what items are needed, and how the inter relate.

          Thanks!

          Comment

          Working...