Update Readme.md

This commit is contained in:
Waldek 2019-08-20 18:23:31 +02:00 committed by GitHub
parent 3427264e4c
commit c7b73ed86c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -22,10 +22,10 @@ we can skip show in last heard for exmaple from MASTER with name OPB-Link
I recommed to shorten the lastheard.log from time to time (I cut every day to 550 lines, longer values maybe extend the load time and parsing) with this script lastheard:
#!/bin/bash
mv /var/www/html/lastheard.log /var/www/html/lastheard.log.save
/usr/bin/tail -550 /var/www/html/lastheard.log.save > /var/www/html/lastheard.log
mv /var/www/html/lastheard.log /var/www/html/lastheard.log.save
/usr/bin/tail -550 /var/www/html/lastheard.log.save > /var/www/html/lastheard.log
mv /opt/HBmonitor/lastheard.log /opt/HBmonitor/lastheard.log.save
/usr/bin/tail -150 /opt/HBmonitor/lastheard.log.save > /opt/HBmonitor/lastheard.log
mv /opt/HBmonitor/lastheard.log /opt/HBmonitor/lastheard.log.save
/usr/bin/tail -150 /opt/HBmonitor/lastheard.log.save > /var/www/html/lastheard.log
Call this script with crontab for everyday use.