Hi Team,
We are using nagios XI ver. 5.4.8
Please help with below points.
1 - Duration of RAW data retained by nagios xi. if its gets purge help us with how & where it gets purge.
2 - Duration of logs retention period.
3 - Alerts data retention period.
Thanks,
Rohan
Data retaintion duration
Re: Data retaintion duration
Hi Team,
Need your help on this.
Regards,
Rohan
Need your help on this.
Regards,
Rohan
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Data retaintion duration
Hello, @lrnnetops.
1. Nagios XI stores RAW performance data in Round Robin Database. It automatically shrinks and averages out the older performance data, optimizing the storage consumption. There is no available/reliable GUI option to change the historical data retention period as of right now, however, if you take a look at this file:
You will see:
So Nagios will store performance data for 4 years. But again, it should not consume huge amounts of storage because of the optimization process.
If you'd like to delete RRD files you can check this direcotry:
2. You could check and modify log retention times in /usr/local/nagiosxi/html/config.inc.php You could also run ls -l command in key nagios log directories and delete logs older than X date. Here's the link to learn more about log locations https://assets.nagios.com/downloads/nag ... gIGjfD_BwE
3. Alerts would be stored in nagios.log file. By default, each day Nagios archives that file and puts the old ones in
You could modify that setting in /usr/local/nagios/etc/nagios.cfg:
# n = None - don't rotate the log
# h = Hourly rotation (top of the hour)
# d = Daily rotation (midnight every day)
# w = Weekly rotation (midnight on Saturday evening)
# m = Monthly rotation (midnight last day of month)
Did that answer your questions?
1. Nagios XI stores RAW performance data in Round Robin Database. It automatically shrinks and averages out the older performance data, optimizing the storage consumption. There is no available/reliable GUI option to change the historical data retention period as of right now, however, if you take a look at this file:
Code: Select all
nano /usr/local/nagios/etc/pnp/rra.cfgCode: Select all
RRA:AVERAGE:0.5:30:4320
#
# 5840 entries with 360 minute step = 4 years
#
RRA:AVERAGE:0.5:360:5840If you'd like to delete RRD files you can check this direcotry:
Code: Select all
/usr/local/nagios/share/perfdata3. Alerts would be stored in nagios.log file. By default, each day Nagios archives that file and puts the old ones in
Code: Select all
/usr/local/nagios/var/archivesCode: Select all
log_rotation_method=d# h = Hourly rotation (top of the hour)
# d = Daily rotation (midnight every day)
# w = Weekly rotation (midnight on Saturday evening)
# m = Monthly rotation (midnight last day of month)
Did that answer your questions?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.