Ad Widget

Collapse

Disk space graphs minimum Y value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • victor
    Junior Member
    • Oct 2008
    • 2

    #1

    Disk space graphs minimum Y value

    I've got a graph with two lines:

    vfs.fs.size[/]
    vfs.fs.size[/,used]

    I've got the Y-axis set to "Calculate" and have applied this to all of my hosts. On most hosts, the minimum Y value is 0 bytes, which is exactly what I want because it represents an accurate view of the space consumed in relationship to the total. However, on certain hosts, the minimum Y value is anywhere from 50Gb to 110GB (the max disk space on my machines range from 250gb to 1TB).

    Is there some way to force the minimum value to 0?
  • victor
    Junior Member
    • Oct 2008
    • 2

    #2
    This is what I'm talking about. The minimum Y value is 111GB, which is highly misleading. There has to be someone out there who has had this same issue.
    Attached Files

    Comment

    • nelsonab
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2006
      • 1233

      #3
      Ya... The only way to do this is to set the graph axis to fixed unfortunately.
      RHCE, author of zbxapi
      Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
      Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

      Comment

      • Aly
        ZABBIX developer
        • May 2007
        • 1126

        #4
        In ZBX 1.6.x there is such calculation type. MAX y - calculated, MIN y - 0.
        Zabbix | ex GUI developer

        Comment

        • arli
          Member
          • Jan 2008
          • 71

          #5
          As a workaround in older version of zabbix you could search for function calculateMinY in /include/classes/graph.inc.php and disable Y axis calculation by adding line that returns 0:
          PHP Code:
             if($this->yaxistype==GRAPH_YAXIS_TYPE_FIXED)
             {
              return 
          $this->yaxismin;
             }
             else
             {
          +++    return 
          0
          I'm having strange results with Calculated [Min=0] in 1.6

          Most of the times the Y axis is calculated correctly, but in case of windows disk graphs it looks like this



          Last edited by arli; 16-10-2008, 12:51. Reason: Correction

          Comment

          • Aly
            ZABBIX developer
            • May 2007
            • 1126

            #6
            As I remember, there was incorrect calculation with big values. It's fixed and as I remember I gave a patch to this, try searching the forum. You may also try nightly build of pre 1.6.1, it contains the fix.
            Zabbix | ex GUI developer

            Comment

            • arli
              Member
              • Jan 2008
              • 71

              #7
              Just downloaded the 1.6.1 nightly build and now all the graphs are calculated correctly. Thanks a lot

              Comment

              Working...