verifiedjoseph / intruder-alert Goto Github PK
View Code? Open in Web Editor NEWEvent dashboard for Fail2ban
Home Page: https://verifiedjoseph.github.io/intruder-alert/demo/
License: MIT License
Event dashboard for Fail2ban
Home Page: https://verifiedjoseph.github.io/intruder-alert/demo/
License: MIT License
Since setenv isnt working really in 8.2, you should consider to change all setenv functions to $_ENV['']='';
Error when filesize is 0.
[intruder-alert] Processing /var/log/fail2ban.log.1 PHP Fatal error: Uncaught ValueError: fread(): Argument #2 ($length) must be greater than 0 in /var/www/html/intruder/backend/include/Helper/File.php:26 Stack trace: #0 /var/www/html/intruder/backend/include/Helper/File.php(26): fread() #1 /var/www/html/intruder/backend/include/Logs.php(64): IntruderAlert\Helper\File::read() #2 /var/www/html/intruder/backend/include/App.php(98): IntruderAlert\Logs->process() #3 /var/www/html/intruder/backend/include/App.php(38): IntruderAlert\App->processLogs() #4 /var/www/html/intruder/backend/cron.php(20): IntruderAlert\App->run() #5 {main} thrown in /var/www/html/intruder/backend/include/Helper/File.php on line 26
You can fix it by fixing File.php with checking the filesize:
` // end of function read in class File:
if ($handle === false) {
throw new AppException('File not opened: ' . $path);
}
if ((int) filesize($path) == 0) {
return "";
}
$contents = fread($handle, (int) filesize($path));
if ($contents === false) {
throw new AppException('File not read: ' . $path);
}
fclose($handle);
return $contents;
}`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.