2019-06-26 20:00:59 +02:00
Requirements:
- a webserver with activated PHP (apache, nginx or whatever) – PHP 7.x is ok
2019-07-27 12:48:28 +02:00
Extension of hbmonitor – we log if a call is ended (I think it’ s better as start) Please check permissions for writing the logfile in target folder !
2019-06-26 20:00:59 +02:00
2019-07-27 12:48:28 +02:00
Please remove in web_tables.py coment # in lines 516 - 520
2019-06-26 20:00:59 +02:00
2019-07-27 12:48:28 +02:00
https://github.com/sp2ong/HBmonitor/blob/master/web_tables.py#L516
2019-06-26 20:00:59 +02:00
The line:
if int(float(p[9])) > 2:
we can skip show in last heard for exmaple from MASTER with name OPB-Link
if p[3] != 'OPB-Link' and int(float(p[9])) > 2:
2019-06-29 21:25:19 +02:00
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.sh:
2019-06-26 20:00:59 +02:00
2019-06-29 21:25:19 +02:00
#!/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
2019-06-26 20:00:59 +02:00
Call this script with crontab for everyday use.
2019-07-27 10:34:26 +02:00
Put this file in /etc/cron.daily/
2019-06-26 20:00:59 +02: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-07-27 12:48:28 +02:00
Thank you, Heiko DL1BZ, who shared the lastheard code.
2019-06-26 20:00:59 +02:00
2019-07-27 08:29:06 +02:00
The version of web_tables.py in my fork contains the display in the column of group names.
2019-06-26 20:00:59 +02:00
73 Waldek SP2ONG