initial commit
initial commit of all files
This commit is contained in:
parent
748012f50a
commit
a1bcd8e0a3
23 changed files with 13925 additions and 0 deletions
14
Bash/Raspberry Pi/bndweb.bash
Normal file
14
Bash/Raspberry Pi/bndweb.bash
Normal 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";
|
Loading…
Add table
Add a link
Reference in a new issue