Ad Widget

Collapse

Custom Dashboard's Last 20 issues?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • markl
    Member
    Zabbix Certified Specialist
    • Apr 2008
    • 62

    #1

    Custom Dashboard's Last 20 issues?

    Hi All,

    Not sure if this is possible, but I'd like to not view "non categorised" issues in the Last 20 issues on the dashboard. Anyone know if this is possible?

    The reason for this is that we would like to know when systems are running, not just problems, so at least we know that they are being monitored successfully. (otherwise we would always be assuming that everything is OK even though in reality, the systems may have stopped being monitored for whatever reason). I've put the systems running (i.e. everything is OK) into the non-categorised status, but they all show up as issues on the dashboard. We would like the Last 20 issues to only be actual issues and not just informational issues.

    Any help would be appreciated.

    Cheers,

    Mark.
  • markl
    Member
    Zabbix Certified Specialist
    • Apr 2008
    • 62

    #2
    Has anyone ever customised the dashboard or used a link from a 3rd party tool or in-house web development to customise the screen?

    Don't get me wrong, I like the dashboard, but I could do with "tweaking" it to make it better for what we want to use it for.

    Cheers

    Comment

    • markl
      Member
      Zabbix Certified Specialist
      • Apr 2008
      • 62

      #3
      Has anyone ever done this? Is it possible to exclude a certain priority (not classified) from the 20 last issues on the dashboard?

      Thanks.

      Comment

      • pesadilla
        Member
        • Nov 2006
        • 69

        #4
        it is not possible
        Last edited by pesadilla; 23-06-2009, 12:16.

        Comment

        • Gunnar.Mann
          Junior Member
          • Oct 2014
          • 3

          #5
          Tweak for Zabbix 2.4

          I had the same problem and tweaked the php code (1Line). This is ugly and not upgrade-safe but simple:

          in Zabbix webroot (Ubuntu: /usr/share/zabbix) edit include/blocks.inc.php, Line 922:

          Insert filter option 'min_severity' => X, where X is the trigger severity (0-5, see Zabbix API documentation )

          PHP Code:
                  $triggers API::Trigger()->get(array_merge($options, array(
                          
          'withLastEventUnacknowledged' => (isset($filter['extAck']) && $filter['extAck'] == EXTACK_OPTION_UNACK)
                                  ? 
          true
                                  
          null,
                          
          'skipDependent' => true,
                          
          'output' => array('triggerid''state''error''url''expression''description''priority''lastchange'),
                          
          'selectHosts' => array('hostid''name'),
                          
          'selectLastEvent' => array('eventid''acknowledged''objectid''clock''ns'),
                          
          'sortfield' => $sortField,
                          
          'sortorder' => $sortOrder,
                          
          'min_severity' => 1
                          
          'limit' => isset($filter['limit']) ? $filter['limit'] : DEFAULT_LATEST_ISSUES_CNT
                  
          ))); 
          After editing, reload your webserver and you're done.
          Last edited by Gunnar.Mann; 24-10-2014, 09:41. Reason: Added webserver reload comment

          Comment

          Working...