A Pflogsumm Reports Parser https://nunofcguerreiro.com

Nuno F. C. Guerreiro ec62dc811c Atualizar 'README.md' 1 year ago
includes 74deaa6193 Atualizar 'includes/reader.php' 1 year ago
reports b6b755afc0 Adicionar 'reports/2019-01-26' 1 year ago
LICENSE 52deabb2d2 Initial commit 1 year ago
README.md ec62dc811c Atualizar 'README.md' 1 year ago
index.php d3786aa347 Atualizar 'index.php' 1 year ago

README.md

Simple Pflogsumm Reports Parser

Demo Here

Installation: Unzip in your web folder

Usage Examples:

- Cron to Generate the Report Files Used in the Current Script Configuration

/usr/local/bin/pflogsumm.pl -u 20 -h 20 --problems_first -d yesterday /var/log/maillog > "/var/www/html/pflogsumm/reports/$(date +"%Y-%m-%d")" && chown www-data:www-data "/var/www/html/pflogsumm/reports/$(date +"%Y-%m-%d")"

- Cron Using reader.php to Send html Report by email

cmd=$(/usr/bin/php -f /var/www/html/pflogsumm/includes/reader.php $(date +"%Y-%m-%d") yes); echo "$cmd" | mail -s "$(echo -e "Pflogsumm Reportdate\nContent-Type: text/html")" -r "From <from@example.com>" to@example.com