Opsview Knowledge Center

Increasing RRD Graphing Points

Discover how to increase your RRD graphing points

Note: instead of changing the configuration of RRD graphing, you may be better switching the graphing backend from RRD to InfluxDB instead. See Graphing Data Engine for more information.

The following steps only affect graphs that already exist - this will not change the defaults used when new graphs are created.

Note: Increasing the graphing frequency to 60 seconds will have no visible efect if the check interval is 5 minutes. The check interval should also be reduced to 60 seconds to capture the data.

Increasing frequency for one graph

You can increase the polling frequency for an individual graph by doing the following as the nagios user:

  1. Stop updates to RRD files:

    • killall import_perfdatarrd
  2. Change directory to the folder containing the value.rrd file for the graph in question:

    • cd /usr/local/nagios/var/rrd/<hostname>/<servicename>/<metric>/
  3. Dump the data from the RRD file:

    • rrdtool dump value.rrd > rrd_edit.xml
  4. Backup the original RRD file:

    • mv value.rrd{,.bak}
  5. Edit the polling frequency by editing the <step> tag:

    • vim rrd_edit.xml
    • <step>60</step># this reads <step>300</step> by default, for 5 minute intervals
  6. Update the RRD file with the changes you made:

    • rrdtool restore rrd_edit.xml value.rrd
  7. Restart the import process:

    • import_perfdatarrd

Increasing frequency globally

If you want update every graph'€™s polling frequency to one minute, you can do the following as the nagios user:

  1. Stop updates to RRD files:

    • killall import_perfdatarrd
  2. Update all value.rrd files:

    • find /usr/local/nagios/var/rrd -name value.rrd | xargs -i sh -c "rrdtool dump {} | sed 's:<step>300</step>:<step>60</step>:' > /dev/shm/tmprrd.xml && rrdtool restore -f /dev/shm/tmprrd.xml {}"
  3. Restart the import process:

    • import_perfdatarrd

Increasing RRD Graphing Points

Discover how to increase your RRD graphing points