Skip to content

Conversation

@jpfir
Copy link
Contributor

@jpfir jpfir commented Nov 27, 2025

By default, Nagios log archives under /var/log/nagios/archives are kept forever. You can optionally enable automatic cleanup by setting the log_archives_mtime parameter on nagios::server.

This value is passed directly to find -mtime, so it supports the same formats as find (for example: +365, +30, 7, -1, etc.). When set, a daily cron job is created (running as the nagios user) to delete old files from /var/log/nagios/archives.

If log_archives_mtime is left unset (the default), no cron job is created and archives are never deleted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant