Ad Widget

Collapse

Zabbix Report Triggers Top 100

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • linax101
    Junior Member
    • Sep 2017
    • 2

    #1

    Zabbix Report Triggers Top 100

    Is there anyway to get this report to exclude hosts that have a maintenance window ?
  • linax101
    Junior Member
    • Sep 2017
    • 2

    #2
    If that is not possible can someone provide a query that I can run against postgresql zabbix database to obtain the same thing ?

    Comment

    • troffasky
      Senior Member
      • Jul 2008
      • 567

      #3
      Did you ever get an answer to this?

      Comment

      • troffasky
        Senior Member
        • Jul 2008
        • 567

        #4
        Well, anyway,: https://support.zabbix.com/browse/ZBXNEXT-4638

        Comment

        • ingus.vilnis
          Senior Member
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Mar 2014
          • 908

          #5
          I assume there might be a problem to do this now because Triggers top 100 page is generated form event status changes but in the events table there is no field to indicate whether that event was generated while host is in maintenance mode or not. Anyways looks like a valid feature request.

          Comment

          • NgRox
            Member
            • Jun 2022
            • 44

            #6
            Here is the SQL code that pulls this data over the 30 day period:

            I hope it helps!​

            SELECT h.name, t.description, COUNT(e.eventid) 'count' FROM hosts h INNER JOIN items i ON h.hostid = i.hostid INNER JOIN functions f ON i.itemid = f.itemid INNER JOIN triggers t ON f.triggerid = t.triggerid INNER JOIN events e ON t.triggerid = e.objectid AND e.object = 0 AND e.source = 0 AND e.value = 1 AND e.clock > UNIX_TIMESTAMP() - 86400*30 WHERE h.status = 0 AND i.status = 0 AND t.status = 0 GROUP BY h.name, t.description ORDER BY count DESC LIMIT 100;

            Comment

            Working...