Ad Widget

Collapse

Added Next Check and Maintenance to last issues on dashboard

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • heaje
    Senior Member
    Zabbix Certified Specialist
    • Sep 2009
    • 325

    #1

    Added Next Check and Maintenance to last issues on dashboard

    For anyone interested, I spent some time today adding a couple of new columns to the last issues widget on the Zabbix dashboard. This was done for v2.0.0. I'll get one out for v2.0.2 when that is released (somewhat soon I imagine).


    There are many cases where some additional info was extremely helpful, so I manually added this stuff:

    1. "Next check" - This gives the date/time of the next time that Zabbix should be updating the Trigger. Since Zabbix doesn't have the functionality to force a check, this at least gives an idea of when the next one should happen. Please note: I know so far that this doesn't work right for "Zabbix Trapper" items. They get a default interval when they are created and the date/time shown reflects the expected update based on that interval (which may or may not actually be correct). As a result, I changed the dashboard so that it does not show a next check date/time for Zabbix Trapper items (to prevent confusion).
    2. "Maint." - A simple Yes/No for if the host is currently in maintenance mode. There was nothing I could see on the dashboard to make it obvious something was in maintenance mode, so this makes it easy. If the user that is logged in has any admin rights, it also provides a link to the maintenance configuration that is in effect for the host.

    Just throw the attached "blocks.inc.php" and "triggers.inc.php" files into the "include" directory of the Zabbix web server.
    Attached Files
    Last edited by heaje; 29-11-2012, 19:07. Reason: Fixed a couple of minor bugs in blocks.inc.php
  • heaje
    Senior Member
    Zabbix Certified Specialist
    • Sep 2009
    • 325

    #2
    2.0.2 modifications

    Here are the relevant files for 2.0.2. This also includes a fix for the sorting issues on the dashboard that were introduced in 2.0.2. See http://www.zabbix.com/forum/showthread.php?t=27663 for more info on that.
    Attached Files
    Last edited by heaje; 29-11-2012, 19:07.

    Comment

    • heaje
      Senior Member
      Zabbix Certified Specialist
      • Sep 2009
      • 325

      #3
      I added this to 2.0.3. Since 2.0.3 fixed issues related to hosts showing that they are in maintenance, I removed the "Maint." column.

      I also fixed 2 issues:
      1. Dates should no longer show up with 1 Jan 1970.
      2. All Next check times should be valid for checks that have missed intervals.
      Attached Files
      Last edited by heaje; 29-11-2012, 20:24. Reason: Fixed minor typo

      Comment

      Working...