Search found 77 matches

by agrohe21
Fri Feb 21, 2020 7:11 pm
Forum: Show / Tell / Contribute
Topic: Script to restart bwmon_gargoyle if it goes down
Replies: 0
Views: 6477

Script to restart bwmon_gargoyle if it goes down

This small script will check to see if a know request fails and tries to start up the service again. I assume that it is still enabled but crashed for whatever reason, which has happened to me in the past. root@Gargoyle:~/scripts# cat mon_bwmon.sh #!/bin/sh if [[ "$(bw_get -i total5-upload-day-365 2...
by agrohe21
Fri Feb 21, 2020 5:43 pm
Forum: Monitoring / Quota / QoS Issues
Topic: Email,SMS notification
Replies: 7
Views: 8345

Re: Email,SMS notification

I have written such a script. Just a few lines really. It emails only when >=99%. I set it to run every 10 min in cron. I dont think the Priority works but left it in there. #!/bin/sh current_date_time=$(date +"%Y-%m-%d-%H-%M-%S") print_quotas | grep quotaPercents |grep -v "\= \[\];"|grep -v " 0.000...
by agrohe21
Thu Feb 20, 2020 10:11 pm
Forum: Monitoring / Quota / QoS Issues
Topic: Installing logrotate on Gargoyle?
Replies: 8
Views: 5134

Re: Installing logrotate on Gargoyle?

Hey, this now works in 1.12.

Code: Select all

opkg update
opkg install logrotate


good stuff. thanks!
by agrohe21
Thu Feb 20, 2020 10:04 pm
Forum: Network / Wireless Issues
Topic: Ver 1.7 Channel Width of 40MHz @ 5GHz for Wireless N
Replies: 26
Views: 19287

Re: Ver 1.7 Channel Width of 40MHz @ 5GHz for Wireless N

For this reason, I ended up using Gargoyle for only non-wifi stuff and got an Orbi mesh setup for all my wifi needs. Super happy with the division of labor.
by agrohe21
Thu Feb 20, 2020 10:00 pm
Forum: Monitoring / Quota / QoS Issues
Topic: bw_get will not return any data
Replies: 5
Views: 3077

Re: bw_get will not return any data

it seems iptables does not have a -m switch. but I found what I was looking for in then /tmp/bw_backup/do_bw_backup.sh file.

that seems to be some sort of memory dump of what are the latest valid combinations based on the configuration.
by agrohe21
Thu Feb 20, 2020 9:57 pm
Forum: General Discussion
Topic: Tracking website usage similar to data quotas
Replies: 27
Views: 9256

Re: Tracking website usage similar to data quotas

thanks. I found that earlier. My issue seemed to be in the script I was processing it with.

In Javascript, I tried to create a new Date(epoch). but you have to create a new Date(0) and then .setUTCSeconds(epoch). so that is working now. thx
by agrohe21
Thu Feb 20, 2020 9:53 pm
Forum: Monitoring / Quota / QoS Issues
Topic: Bandwidth Monitoring Not Working on new Gargoyle 1.12 WRT32X
Replies: 13
Views: 5226

Re: Bandwidth Monitoring Not Working on new Gargoyle 1.12 WRT32X

related to this original post.... I am finding that bwmon dies periodically. not sure why or how to tell what happened. When this happens, I also lose all my history data as well. I am writing a script to lift this data hourly to an Oracle DB to keep track of. but I do enable and start and it seems ...
by agrohe21
Thu Feb 20, 2020 11:22 am
Forum: General Discussion
Topic: Tracking website usage similar to data quotas
Replies: 27
Views: 9256

Re: Tracking website usage similar to data quotas

Lantis wrote:You could possibly parse the output of

Code: Select all

cat /proc/webmon_recent_domains



This output provides timestamps similar to this: 1582043139. What format is that? and how might I convert that to a regular date/time/timestamp.
by agrohe21
Wed Feb 19, 2020 9:17 am
Forum: Other Issues
Topic: logread shows many entries uhttpd[3040]: sh: write error: Broken pipe
Replies: 8
Views: 3301

Re: logread shows many entries uhttpd[3040]: sh: write error: Broken pipe

The question/issue is how to determine which options to use for the -i parameter. I assumed that the names of the files were the right options, but as you indicated, those are not. I think I am good now but the 1440 minutes seems to be slowing down my gargoyle so may need something in between 15 and...
by agrohe21
Wed Feb 19, 2020 9:15 am
Forum: General Discussion
Topic: Tracking website usage similar to data quotas
Replies: 27
Views: 9256

Re: Tracking website usage similar to data quotas

I also have problems with this and I fixed it by adding a line to /etc/opkg.conf: viewtopic.php?f=14&t=12138&p=54478#p54478


I do not see what line you added in that post. Given this may be custom stuff, I may just go with a separate VM running squid instead of on the Gargoyle box.