Menu

Nagiosgraph Max values different when zoomed

Help
crush
2013-01-30
2013-06-07
  • crush

    crush - 2013-01-30

    Hello,

    I am graphing http responses and when I am looking at my graph's max values, they differ from each other. Daily max value is showing higher max response time then weekly and so on. If I zoom in to certain time interval on my daily graph, I often get even higher max value than displayed on x-axis for duration of the day. It seems that data is somehow formatted to fit on the graph and is not displaying correctly unless I am zoomed in. Is there a way to change graph display so it shows all of the steps without zooming?

     
  • Sergey

    Sergey - 2013-06-06

    I have exactly the same problem with graphing network trafic. When I look at the daily graph in its default state I can see some peaks as high as 13 MB/s. If I zoom this area of the graph the peak value shows 70 MB/s, which is actually closer to true values as this is a backup server with 2x1Gb agregated NICs.
    If anyone knows a solution, please share.

     
  • Herve Nicol

    Herve Nicol - 2013-06-06

    This is how rrd works: it creates arrays for different zoom level, and computes averages for each arrays.
    This is why it smoothes your graphs.
    You can tune this on your RRD bases, and even tell nagiosgraph to create new RRD files with your custom setup. But be aware that this will change your RRD files (size, performance, etc...).

    I suggest that you look for starter tutorials on RRD to better understant their principles.

     
  • Sergey

    Sergey - 2013-06-06

    Hi! Thanks for the answer. Could you give me a clue or an example about tunning RRD bases? Where do I do it in nagiosgraph - rrdopts or in the main config file or map or insert.pl ???

     
  • Herve Nicol

    Herve Nicol - 2013-06-06

    The config file is nagiosgraph.conf, section "RRD parameters":

    RRD parameters. These numbers control the number of stored data values

    and thus RRD file size. They are used when creating RRD files.

    For some more info on RRDTools, you can visit its creator's site:
    http://oss.oetiker.ch/rrdtool/
    ...you can start with the beginner's tutorial page:
    http://oss.oetiker.ch/rrdtool/tut/rrd-beginners.en.html

     
  • Sergey

    Sergey - 2013-06-06

    OK thanks for your help. I think I figured it out. By default rrdtool uses AVERAGE to consolidate the data. So what is displayed on the graph is the average for the monitored period. I added this line in nagiosgraph.conf for my net statistics service:
    maximums = .,NETWORK USAGE,.
    Now it seems to work as expected.

    P.S. there is an asterisc after each dot (.) in 'maximums =' line. For some reason they dont show when I post the message

     

    Last edit: Sergey 2013-06-06
    • Sergey

      Sergey - 2013-06-07

      Just a correction
      After adding "maximums = .*,NETWORK USAGE,.*" to nagiosgraph.conf
      the rest of the services stoped displayng their graphics with the message:
      "the rrd does not contain an rra matching the chosen cf "
      So I changed the parameter as follows:
      maximums = NETWORK USAGE

       

Log in to post a comment.

MongoDB Logo MongoDB