Ad Widget

Collapse

Change the default value of "Y axis MIN value" for graphs in Overview

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • seb06
    Junior Member
    • Apr 2012
    • 2

    #1

    Change the default value of "Y axis MIN value" for graphs in Overview

    Hi,

    I wish that Zabbix graphs generated automatically in "Monitoring> Overview> Graphs" (last hour, week, mounth) did not value "Y axis MIN value" to "Calculated" but "fixed = 0".

    I don't know how to make this change. I can get the graphs with "fixed = 0" through the creation of graphs, but that's not what I want, I want to get the value "fixed = 0 directly from the overview.

    Is any file who manage this option ?

    My tracks are:

    The value "Y axis value MIN" appears to be related to the variable "yaxismin" and value "Y axis min / max type" must be "1" to be fixed (see http://www.zabbix.com/documentation/1.8/api/graph).

    The page that generates the graphs in the overview is: history.php. This file uses three other files: config.inc.php, and items.inc.php graphs.inc.php

    Thank you for your help.
  • seb06
    Junior Member
    • Apr 2012
    • 2

    #2
    I think I found the file to modify:

    /var/www/html/zabbix/include/classes/class.cchart.php

    Then you have to change:

    $this->ymin_type = GRAPH_YAXIS_TYPE_CALCULATED;

    by :

    $this->ymin_type = GRAPH_YAXIS_TYPE_FIXED;

    I do not know if it's a good or the best solution, but it's seem work.

    Comment

    Working...