Page 1 of 1

Consequences of deleteing /usr/local/nagios/var/archives/

Posted: Tue Nov 18, 2025 6:19 am
by optionstechnology
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?

Re: Consequences of deleteing /usr/local/nagios/var/archives/

Posted: Tue Nov 18, 2025 7:06 am
by kg2857
I'd keep a year of files in there.

Re: Consequences of deleteing /usr/local/nagios/var/archives/

Posted: Wed Nov 19, 2025 9:47 pm
by Nancyfett
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?
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?

Re: Consequences of deleteing /usr/local/nagios/var/archives/

Posted: Thu Nov 20, 2025 1:15 pm
by cdietsch
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
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.
I found a forum post that asks a similar question viewtopic.php?t=63687 that you might find helpful.

Re: Consequences of deleteing /usr/local/nagios/var/archives/

Posted: Sun Nov 23, 2025 10:54 pm
by helen9c
Thank you so much!