Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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. –  gsc-frank Aug 27 '13 at 17:58

1 Answer 1

up vote 3 down vote accepted

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

Change

 RRA:AVERAGE:0.5:1:2880

to

RRA:AVERAGE:0.5:1:10080

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? –  gsc-frank Aug 27 '13 at 17:57
1  
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? –  gsc-frank Aug 27 '13 at 18:49
1  
@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
1  
I thought I was clear but oss.oetiker.ch/rrdtool/doc/rrdcreate.en.html 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

 
discard

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.