Ad Widget

Collapse

PATCH: add dashboard items to a screen

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • krimson
    Member
    • Sep 2008
    • 49

    #1

    PATCH: add dashboard items to a screen

    Hi,

    Being unable to add the "System status" and "Last 20 issues" items you see on the Dashboard to a Screen annoyed me a bit. I also needed a replacement for the Last 20 events screen item, as this hammered my MySQL database due to an inefficient query (took 10 seconds to generate the table). So I made a patch.
    The patch enables you to add these two items to any screen; they are called "Current events" and "Hostgroup status" in the dropdown-box. To keep the patch as simple as possible, it re-uses the code already present in blocks.inc.php to generate the items on the Dashboard.

    Things like number of lines are not configurable at the moment.

    Tested with 1.6.5. Use at your own risk
    Last edited by krimson; 21-11-2012, 15:18.
  • krimson
    Member
    • Sep 2008
    • 49

    #2
    New patch for version 1.6.6. Stick it in your zabbix web directory and run patch -p1 < screens-1.6.6.patch.
    Last edited by krimson; 21-11-2012, 15:18.

    Comment

    Working...