HBmonitor/utils/Readme.md

30 lines
1.1 KiB
Markdown
Raw Normal View History

2020-08-17 01:18:21 -04:00
Requirements webserver with activated PHP (apache, nginx or whatever) PHP 7.x is ok
2019-06-26 14:00:59 -04:00
2019-07-27 06:48:28 -04:00
Extension of hbmonitor we log if a call is ended (I think its better as start) Please check permissions for writing the logfile in target folder !
2019-06-26 14:00:59 -04:00
2019-11-05 12:18:09 -05:00
I recommed to shorten the lastheard.log from time to time (I cut every day to 150 lines, longer values maybe extend the load time and parsing) with this script lastheard:
2019-06-26 14:00:59 -04:00
2019-06-29 15:25:19 -04:00
#!/bin/bash
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
2019-06-26 14:00:59 -04:00
Call this script with crontab for everyday use.
2019-08-19 06:50:48 -04:00
Put this file in /etc/cron.daily/ and add attribute:
chmod +x /etc/cron.daily/lastheard
2019-06-26 14:00:59 -04:00
2020-08-17 01:18:21 -04:00
Call the website with http://YOUR_HOST/log.php it runs with a refresh/reload time of 30sec, change the script for other timeset.
2019-06-26 14:00:59 -04:00
2019-07-27 06:48:28 -04:00
Thank you, Heiko DL1BZ, who shared the lastheard code.
2019-06-26 14:00:59 -04:00
73 Waldek SP2ONG