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

logfile rotation-detection not working #1

Open
buanzo opened this issue Aug 16, 2015 · 2 comments
Open

logfile rotation-detection not working #1

buanzo opened this issue Aug 16, 2015 · 2 comments

Comments

@buanzo
Copy link
Owner

buanzo commented Aug 16, 2015

in monitor.py, Monitor.run(), there is code to detect when /var/log/fail2ban.log has rotated. It does not seem to be working on any of my Ubuntu 14.04 LTS systems.

If anyone can take a look...?

@funjon
Copy link

funjon commented Oct 14, 2015

I'm not a python person (yet), so I can't offer a code fix, however, stat(1) returns inode number as one of the fields. If python's stat() can return that, you could monitor to see if the inode number changes? I will look into this and see if I can give a hand...

EDIT: Aha, looks like stat.ST_INO may be something to look at...

@buanzo
Copy link
Owner Author

buanzo commented Sep 16, 2016

Hi! Thank you! I will check that out!!! Sorry for the long delay.

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

No branches or pull requests

2 participants