Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed pnp4nagios and all is fine, just want change a conf but not know how.

Here one can read

Using the defaults allows to store the data with a resolution of one minute for the last two days, five minutes resolution for ten days, 30 minutes resolution for 90 days and 6 hours resolution for four years.

Where are such defaults and how change them to allows to store the data with a resolution of one minute for the last seven days?

share|improve this question
How did you install it? distro package? – Keith Aug 27 '13 at 17:00
From source. Thanks for your reply. – gsi-frank Aug 27 '13 at 17:58
up vote 3 down vote accepted

Depends on your distribution but I think you want to look at the rra.cfg.





Please note this defines how much data is stored, the config.php is where the defaults are defined on how it's displayed. Please see this page for more detail.

share|improve this answer
The file is /usr/local/pnp4nagios/etc/rra.cfg cos I installed pnp4nagios from sources. I saw several RRA:AVERAGE (RRA:AVERAGE:0.5:5:2880 RRA:AVERAGE:0.5:30:4320 RRA:AVERAGE:0.5:360:5840) and its corresponding RRA:MAX and RRA:MIN to the , I need change those values too? or just the RRA:AVERAGE I changed? – gsi-frank Aug 27 '13 at 17:57
I believe this won't affect existing RRD files, but you can use rrdtool to tune/resize them (and verify that new ones are created correctly). – Keith Aug 27 '13 at 18:08
@Keith Hmm, what if I delete all file in /usr/local/pnp4nagios/var/perfdata ? I don't need keep all data cos I'm just starting the congiguration. BTW, @Keith do you know if I must change the others RRA: values? – gsi-frank Aug 27 '13 at 18:49
@gsc-frank I think those values are for the min & max that get displayed under the graph so yes, you'd want the times to match up. – TheFiddlerWins Aug 27 '13 at 19:35
I thought I was clear but can help if you are confused. Each pnp4nagios image has a min and max listed over the time. The entries you are asking about is how they are determined. – TheFiddlerWins Aug 27 '13 at 20:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.