Fail2ban shows as not installed when the log files are rotated
When the log files are rotated the Fail2ban log is emptied but when the log file is viewed in the control panel it shows:
'fail2ban is not installed at this server.'
This makes you think that Fail2ban is not working but it is - I tested it by deliberately getting my IP banned.
The data field in the monitor_data tables for type 'log_fail2ban' shows:
This causes the code in /interface/lib/classes/tools_monitor.inc.php around line 442 to display this message.
Only if the data field is empty will the message 'There is no data available at the moment.' be shown.
It seems like these two messages are in the wrong order maybe?