My archives folder is vast - what are the exact consiquences of deleteing or zipping the old logs?
Is this where the state/notification history comes from?
Or is it literally just an event log for troubleshooting?
Consequences of deleteing /usr/local/nagios/var/archives/
-
optionstechnology
- Posts: 234
- Joined: Thu Nov 17, 2016 11:26 am
Re: Consequences of deleteing /usr/local/nagios/var/archives/
I'd keep a year of files in there.
Re: Consequences of deleteing /usr/local/nagios/var/archives/
From my experience, the archives folder usually stores historical event logs rather than live state or notification data. Deleting or zipping them typically won’t break current functionality, but you might lose historical context for troubleshooting or audits. Have you checked if any monitoring tools rely on those logs?optionstechnology wrote: ↑Tue Nov 18, 2025 6:19 am My archives folder is vast - what are the exact consiquences of deleteing or zipping the old logs?
Is thisSprunki Retake where the state/notification history comes from?
Or is it literally just an event log for troubleshooting?
Re: Consequences of deleteing /usr/local/nagios/var/archives/
Hi @Nancyfett,
Here is a direct quote from the the document How To Locate And Understand Logs Within Nagios XI https://assets.nagios.com/downloads/nag ... ptions.pdf
Here is a direct quote from the the document How To Locate And Understand Logs Within Nagios XI https://assets.nagios.com/downloads/nag ... ptions.pdf
I found a forum post that asks a similar question viewtopic.php?t=63687 that you might find helpful.The Nagios Core log, includes checks, notifications, external commands, and events. This file is
rotated daily into the /usr/local/nagios/var/archives folder (default setting in nagios.cfg) by
rsyslog.
Logs located in the /usr/local/nagios/var/archives folder are used as the data source for the
Availability and SLA reports. Deleting them would cause these reports to show inaccurate data.
Cheers,
- Cole
- Cole
Re: Consequences of deleteing /usr/local/nagios/var/archives/
Thank you so much!