mirror of
https://github.com/ShaYmez/HBmonitor.git
synced 2024-11-25 01:08:43 -05:00
Update Readme.md
Fix directory for lastheard.log
This commit is contained in:
parent
61527e4ae8
commit
fce9be0452
@ -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 /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
|
||||
mv /opt/HBmonitor/log/lastheard.log /opt/HBmonitor/log/lastheard.log.save
|
||||
/usr/bin/tail -150 /opt/HBmonitor/log/lastheard.log.save > /opt/HBmonitor/log/lastheard.log
|
||||
mv /opt/HBmonitor/log/lastheard.log /opt/HBmonitor/log/lastheard.log.save
|
||||
/usr/bin/tail -150 /opt/HBmonitor/log/lastheard.log.save > /opt/HBmonitor/log/lastheard.log
|
||||
|
||||
|
||||
Call this script with crontab for everyday use.
|
||||
|
Loading…
Reference in New Issue
Block a user