==================================================================
Please DO NOT REPLY to this mail or send email to the developers
about this bug. Please follow-up to Bugzilla using this link:
https://bugs.contribs.org/show_bug.cgi?id=9556
Have you checked the Frequently Asked Questions (FAQ)?
http://wiki.contribs.org/SME_Server:Documentation:FAQ
Please also take the time to read the following useful guide:
http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
==================================================================
--- Comment #1 from Daniel B. <[email protected]> ---
(In reply to Stefano Zamboni from comment #0)
>
> I see in /var/log/messages:
> Jun 1 01:12:10 fileserver esmith::event[58350]: Running event handler:
> /etc/e-smith/events/logrotate/S98fail2ban-resume-logs
> Jun 1 01:12:11 fileserver esmith::event[58350]: ERROR NOK: (2, 'No such
> file or directory')
> Jun 1 01:12:11 fileserver esmith::event[58350]: [Errno 2] No such file or
> directory: '/var/log/httpd/error_log'
> Jun 1 01:12:11 fileserver esmith::event[58350]: ERROR NOK: (2, 'No such
> file or directory')
> Jun 1 01:12:11 fileserver esmith::event[58350]: [Errno 2] No such file or
> directory: '/var/log/httpd/error_log'
> Jun 1 01:12:11 fileserver esmith::event[58350]: ERROR NOK: (2, 'No such
> file or directory')
> Jun 1 01:12:11 fileserver esmith::event[58350]: [Errno 2] No such file or
> directory: '/var/log/httpd/error_log'
> Jun 1 01:12:11 fileserver esmith::event[58350]: ERROR NOK: (2, 'No such
> file or directory')
> Jun 1 01:12:11 fileserver esmith::event[58350]: [Errno 2] No such file or
> directory: '/var/log/httpd/error_log'
> Jun 1 01:12:12 fileserver esmith::event[58350]: Current monitored log
> file(s):
I don't have those errors. During logrotate, the contrib suspend monitoring of
/var/log/httpd/error_log, and resume it after logrotate occures. Looks like you
have a problem on this server
>
> the relevant part in /etc/e-smith/events/logrotate/S98fail2ban-resume-logs
> is:
>
> for JAIL in http-overflows http-noscript http-scan http-auth; do
> /usr/bin/fail2ban-client status $JAIL > /dev/null 2>&1
> if [ $? -eq 0 ]; then
> /usr/bin/fail2ban-client set $JAIL addlogpath /var/log/httpd/error_log
> fi
> done
>
> which is wrong because on SME there's no /var/log/httpd/error_log.. it
> should be IMO /var/log/httpd/*error_log
No, it's /var/log/httpd/error_log (which is a symlink to the actual log file).
> on the same server I'm observing a strange behaviour..
This should be part of another bug
> I'll try to create a patch if Dani won't do meanwhile..
Before any patch is written, we have to understand what's not working. Can you
please poste the output of
ll /var/log/httpd/ | grep error_log
--
You are receiving this mail because:
You are the QA Contact for the bug._______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/