Ad Widget

Collapse

Zabbix 1.8 UI Zoom improvements

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jhgrc
    Member
    • Jun 2009
    • 52

    #1

    Zabbix 1.8 UI Zoom improvements

    Earlier I tried to suggest that Zabbix should offer user selectable Zoom-factors. The 1.6 version was bad, luckily 1.8 improved it a bit. But we are not still there.

    This is how I added my much needed informative 30h view. Just added zoom factor 30 times hour (30*3600) and then tidied up the Zoom: -line but splitting strings with ' 0' instead of ' '. This way I could split output of formatStampByDHM with data clipped at first '0'.

    1w 1d 0m => 1w 1d
    1w 0d => 1w

    Another edit featured trimming spaces in-between. Split string at ' ' and join together without white space

    1w 1d => 1w1d

    Originally posted by file js/gtlc.js
    var zooms = [3600, (2*3600), (3*3600), (6*3600), (12*3600), 86400, (30*3600), (7*86400), (1

    caption = this.formatStampByDHM(zooms[key], false, true);
    caption = caption.split(' 0',2)[0].split(' ').join('');
    On my loved 30h view now I have Zoom: 1d6h

    Feel free to take above additions to Zabbix UI source code base.
Working...