Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reload for munin-node/munin regarding logging #1571

Open
Zugschlus opened this issue Aug 18, 2023 · 0 comments
Open

reload for munin-node/munin regarding logging #1571

Zugschlus opened this issue Aug 18, 2023 · 0 comments

Comments

@Zugschlus
Copy link

As the Debian maintainer of aide, the Advanced Intrusion Detection Environment, I have stumbled upon munin-node's method of logging which seems to be simply dumping info into /var/log/munin/munin-node.log.

The munin Debian packages use logrotate to rotate those logs using the copytruncate option so that munin-node can be kept running and still handles the log correctly.

Unfortunately, this doesn't work well with aide since there is no possibility to handle the log properly in aide.

Removing the copytruncate option from logrotate doesn't work since munin-node will happliy continue logging to the old file.

It is currently necessary to use a postrotate script to restart munin-node. I do not know how much local context is lost with a daily restart.

Would it be possible to either

  • give munin-node a SIGHUP handler that will re-open the log
  • close and re-open the log file after logging or
  • look whether the log file's inode has changed and re-open the log in that case?

Greetings
Marc

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

No branches or pull requests

1 participant