initial commit

initial commit of all files
This commit is contained in:
Paul M 2021-05-03 22:08:55 -05:00
parent 748012f50a
commit a1bcd8e0a3
23 changed files with 13925 additions and 0 deletions

View file

@ -0,0 +1,14 @@
#!/bin/bash
# step two of my revised band width monitoring system
# First script runs on openwrt, queries vnstat, crunches a number or two
# and then sends it to syslog, which then sends it to a remote server
# said remote server a RPI runs this code to make the result web accessible
# note log contains a weeks worth of hourly bandwidth logs and we need the most recent
# only
vndat=`cat /var/log/openwrt.log | grep "root: dom" | tail -n 1`;
echo "$vndat" > /var/www/html/bnd.dat;
# echo "$vndat";