Hi Wolfgang and Gerd Thanks for your replies.
I followed Gerd's instructions for creating custom <check_command_name>.rra.cfg and it worked perfectly. The rrd file increased in size from 400kb to 1 MB, so no space issues either! I did an rrdtool dump on the rrd file and the resultant xml file had the correct number of rows for each category also. I will be able to use Wolfgang's instructions to resize the rrd file if I need to do so in the future! Kind Regards John ------------------------------ Message: 2 Date: Thu, 22 May 2014 16:54:19 +0000 From: John Roberts <[email protected]> To: "[email protected]" <[email protected]> Subject: [icinga-users] Can you have different RRA settings for different services? Message-ID: <[email protected]> Content-Type: text/plain; charset="us-ascii" Hi All We have installed Icinga in our company on a test server and are currently configuring it. I'm currently investigating how to change how the data is held in the Round Robin Archives of the RRD databases. I can see that the following file in the pnp4nagios folder holds the default settings: /etc/pnp4nagios/rra.cfg RRA_STEP=60 RRA:AVERAGE:0.5:1:2880 RRA:AVERAGE:0.5:5:2880 RRA:AVERAGE:0.5:30:4320 RRA:AVERAGE:0.5:360:5840 The default is fine for the majority of our services. However, I would like different settings for a subset of services which retains the 5 minute data for 90 days rather than 10 days and extends the 30 minute data to 180 days as below. RRA_STEP=60 RRA:AVERAGE:0.5:1:2880 RRA:AVERAGE:0.5:5:25920 RRA:AVERAGE:0.5:30:8640 RRA:AVERAGE:0.5:360:5840 I can't see how to do this for a subset of services. Is it possible to change the settings for a subset rather than universally? If so, how? Many thanks in advance John P.S. I have just joined the list, so apologies if I'm not conforming to the list etiquette in any way! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.icinga.org/pipermail/icinga-users/attachments/20140522/c98c166f/attachment-0001.html> ------------------------------ Message: 3 Date: Thu, 22 May 2014 21:54:45 +0200 From: Wolfgang <[email protected]> To: [email protected] Subject: Re: [icinga-users] Can you have different RRA settings for different services? Message-ID: <[email protected]> Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" As you already mentioned you found files in the PNP4Nagios folder (not Icinga) so I'd take a look at http://oss.oetiker.ch/rrdtool/doc/rrdresize.en.html and similar rrdtool programs ;-) ------------------------------ Message: 4 Date: Thu, 22 May 2014 22:44:46 +0200 From: Gerd Radecke <[email protected]> To: Icinga User's Corner <[email protected]> Subject: Re: [icinga-users] Can you have different RRA settings for different services? Message-ID: <[email protected]> Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" Hi, actually rrd might be slightly misleading here, because while rrd is responsible for creating the rrd database files - pnp4nagios actually defines what parameters are used to create the rrd. The configuration files you want to look at to have different RRA definitions for different services are (on a RHEL/Centos setup, paths might differ slightly but from you posted it seems yours might match): /etc/pnp4nagios/<check_command_name>.rra.cfg (without the <> ;) Format is the same as the global rra.cfg you posted. Note that this will only apply new rrd files, existing rrd DBs will not change. Should it look like your configuration file is not being used, I suggest increasing the LOG_LEVEL in /etc/pnp4nagios/process_perfdata.log (LOG_FILE will tell you where to find the log output :)) or checking out the parse_rra_config() function in /usr/libexec/pnp4nagios/process_perfdata.pl Cheers, Gerd _______________________________________________ icinga-users mailing list [email protected] https://lists.icinga.org/mailman/listinfo/icinga-users
