Ad Widget

Collapse

Unable to compute website uptime using templates

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sorin
    Junior Member
    • Feb 2014
    • 11

    #1

    Unable to compute website uptime using templates

    I am using zabbix 2.2.1 to monitor different webservers and I succesfully managed to implement the web scenario inside the template approach for this.

    While this works well, I wasn't able to setup the second part needed for computing the uptime of these services.

    The best resource I found so far regarding configuring zabbix for website monitoring with uptime calculation is the one from http://community.spiceworks.com/how_...ng-with-zabbix

    This this seems to be outdated and it doesn't work anymore.

    The create trigger step requires an item that does not exist because they were not created by zabbix.

    What's the correct approach for solving this? Please mind that I am trying to setup an easy to extend configuration, so it would be much easier to add new hosts to monitor.
  • aib
    Senior Member
    • Jan 2014
    • 1615

    #2
    I repeated all steps from your link and successfully configured SLA monitoring.
    Also I use information from Zabbix Documentation - Web Monitoring
    The step 5. Create a trigger based on steps 3 and 4 - creating your own scenario.

    In the trigger definition I just clicked on links and automatically select the function from list of function which can be used with my WEB Scenario.

    My final WEB scenario has a name "WEB int"
    My trigger expression is {Internal WEB servers:web.test.fail[WEB int].last(0)}#0

    And it works like a charm

    Please, give some additional information about your difficulties and I hope we can solve it.
    Sincerely yours,
    Aleksey

    Comment

    • sorin
      Junior Member
      • Feb 2014
      • 11

      #3
      Thank you Alexey,

      It seems that if I try to add the trigger while I am inside "Template Web", Zabbix will allow me to pick only an item that is assigned to a zabbix server (not to the template).

      When I do this, I endup with a trigger existing on the zabbix server, not on the web-server that I do plan to monitor.

      If I would have to do the same operation for each web server that I am trying to monitor I end-up doing a lot of manual work.

      I was looking for a setup that would allow me to enable webmonitoring and SLA calculation by simply adding a new web server and assigning it the "Template Web".

      This seems to work only for adding the web scenarios, but not for triggers which seems to be able to exist only on non-templates.

      UPDATE: it seems that now it works, maybe it is a bug which makes some triggers to be created on the zabbix server instead of the template being edited. Anyway, unless I find a way to replicate, it assume that I may being pressing the wrong button.... TX
      Last edited by sorin; 02-04-2014, 19:54.

      Comment

      • aib
        Senior Member
        • Jan 2014
        • 1615

        #4
        Almost always, when you select the functions for triggers, you have two dropdown fields in top-right corner to select the Host group and Hostname.

        It is really annoying to remember and select the correct host group and hostname every time when you create trigger/graph/etc...
        Sincerely yours,
        Aleksey

        Comment

        Working...