Apologies if this is covered elsewhere but I've just run into a problem and I'm not sure how to deal with it.
I am getting message about gaps in my monthly data and when I looked at the log file I find:
Could not update monthly_total_down... not found in /tmp/yamon/Setup/data/2018/12/2018-12-mac_data.js
I looked up the link and found mention of running h2m.sh so I ran it and the same message appears.
Having dug a little deeper and following the script and then trying the command by hand, it appears that line 456 in hourly2monthly.sh (sed -i .... w /tmp/sed.txt ...) is working OK but does not even create /tmp/sed.txt and as the next line checks for the existence of /tmp/sed.txt you get the error message.
Having found that, I'm not sure that it actually indicates why there is still nothing in the monthly data.
So I did some more digging and discovered that the version of busybox in one of my DD-WRT routers has a date command that does not give output for a date +%m or date +j when you provide an input date with or without -d. It works OK with just date +%m or date +%j.
I will obviously have to see if there is a later version of DD-WT for this router.
I have been using this for two weeks or so. I noticed that two days ago it stopped working. I could not find a reason, but I noticed that suddenly there were two devices mounted, instead of only the one usb device with yamon on it.
Now, how I can install this within the router? There appears to be nothing which is readwrite. The manual says for example "/opt". But this is read only in my router ... So, where can I put it?
I have a Netgear R8500 with DD-WRT v3.0-r33772 std (11/16/17) on it.
Posted: Mon Dec 17, 2018 4:21 Post subject: Data not being saved to disk.
I've been having a strange problem recently. I thought it might have been some data corruption again since my last USB drive failed. Now, each time I open YAMon, I keep getting this welcome message.
Welcome to the `Yet Another Monitor` reports!
which takes me through the welcome messages and shows only a few days of data.
It seems it does not want to write any data to disk. I even try a test and change some entries in the Groups and Devices tag and the users.js on the disk does not change.
Yet Another Monitor HTML: 3.4.5 / Script: 3.4.5
Something else I find odd, which might relate to the only 3 days issue is that December only has 3 daily files while the first 13 days of December are written to the November folder.
Another question: Can I reset all data? I tried to just the delete the folder and reinstall it, but then it still shows me traffic data for 2018-12-01. I would like to completely reset this in order to compare to the counter in my cable modem.
Thx.
Posted: Thu Dec 20, 2018 23:09 Post subject: Re: Data not being saved to disk.
ggee wrote:
Something else I find odd, which might relate to the only 3 days issue is that December only has 3 daily files while the first 13 days of December are written to the November folder.
They are written in monthly increments determined by the ISPBillingDay in your config.file. _________________ Segment 1 XR700 10Gb LAN, 1Gb WAN ISP BS
Wired AP 1 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 2 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 3 Unifi Wifi 6 LR US 1Gb LAN
Syslog Services Asustor 7110T NAS 10GB
NetGear XS716T 10GB Switch
download1.dd-wrt.com/dd-wrtv2/downloads/betas/ (Brain Slayer)
YAMon https://usage-monitoring.com/index.php
Al -
I just today updated my router to a Netgear r7800 with DD-WRT v3.0-r38065M kongat (12/22/1. This has the latest Busybox v1.29.3. Upon starting YAMon, the output seems normal...
To stop the script:
* run `shutdown.sh` [*RECOMMENDED*]
e.g., `/opt/YAMon3/shutdown.sh`
* or delete the `/tmp/YAMon3.4-running` directory
e.g., `rmdir /tmp/YAMon3.4-running`
Then the below is repeated about every 20 seconds or so..
Usage: ip [OPTIONS] address|route|link|tunnel|rule [COMMAND]
OPTIONS := -f[amily] inet|inet6|link | -o[neline]
COMMAND :=
ip addr add|del IFADDR dev IFACE | show|flush [dev IFACE] [to PREFIX]
ip route list|flush|add|del|change|append|replace|test ROUTE
ip link set IFACE [up|down] [arp on|off] [multicast on|off]
[promisc on|off] [mtu NUM] [name NAME] [qlen NUM] [address MAC]
[master IFACE | nomaster]
ip tunnel add|change|del|show [NAME]
[mode ipip|gre|sit]
[remote ADDR] [local ADDR] [ttl TTL]
ip rule [list] | add|del SELECTOR ACTION
BusyBox v1.29.3 (2018-12-22 00:44:42 CET) multi-call binary.
If I stop YAMon, then these messages stop, something with the "ip" command? Any ideas? _________________ Netgear R7800: DD-WRT v3.0-r47822 std (12/09/21)
Linksys wrt1900acsV2: DD-WRT v3.0-r47822 std (12/09/21)
Al -
I just today updated my router to a Netgear r7800 with DD-WRT v3.0-r38065M kongat (12/22/1.
If I stop YAMon, then these messages stop, something with the "ip" command? Any ideas?
Busybox was compiled without the neigh command YAMon uses.
You'll need the full ip suite to fix it.
If using kongat firmware you'll need to start a telnet terminal, run bootstrap and follow the prompts to install Kong's opkg. Update opkg, search for "ip" and install the full ip pkg. Locate the ip command on the /opt drive and add it to the _path2ip location in config.file.
My path is _path2ip='/opt/sbin/ip'.
It would be a big help if Al could add the ip util to his distribution. _________________ Segment 1 XR700 10Gb LAN, 1Gb WAN ISP BS
Wired AP 1 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 2 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 3 Unifi Wifi 6 LR US 1Gb LAN
Syslog Services Asustor 7110T NAS 10GB
NetGear XS716T 10GB Switch
download1.dd-wrt.com/dd-wrtv2/downloads/betas/ (Brain Slayer)
YAMon https://usage-monitoring.com/index.php
Last edited by ddaniel51 on Mon Dec 31, 2018 7:23; edited 1 time in total
Al -
I just today updated my router to a Netgear r7800 with DD-WRT v3.0-r38065M kongat (12/22/1.
If I stop YAMon, then these messages stop, something with the "ip" command? Any ideas?
Busybox was compiled without the neigh command YAMon uses.
You'll need the full ip suite to fix it.
If using kongat firmware you'll need to start a telnet terminal, run bootstrap and follow the prompts to install Kong's ipkg. Update ipkg, search for "ip" and install the full ip pkg. Locate the ip command on the /opt drive and add it to the _path2ip location in config.file.
My path is _path2ip='/opt/sbin/ip'.
It would be a big help if Al could add the ip util to his distribution.
Thanks Al. After a bit of trial & error, I think I got it. For anyone else, here are the commands I used and if any are incorrect, please let me know.
root@Bo:/opt# bootstrap
Bootstrap is checking prerequisites...
USB automounter is enabled.
Found a valid partition: /opt.
Proceed with download and install of opkg? (y/n) [default=n]:
y
Connecting to www.desipro.de (217.160.0.162:80)
opkg.ipk 100% |********************************| 59350 0:00:00 ETA
Connecting to www.desipro.de (217.160.0.162:80)
opkg.ipk.sig 100% |********************************| 256 0:00:00 ETA
Connecting to www.desipro.de (217.160.0.162:80)
functions.sh 100% |********************************| 7269 0:00:00 ETA
Bootstrap complete. You can now use opkg to install additional packages.
root@Bo:/opt# opkg update
Downloading http://desipro.de/opkg/Packages.gz.
Updated list of available packages in /opt/var/opkg-lists/packages.
@Spider Tnx for catching my goof of ipkg for opkg. _________________ Segment 1 XR700 10Gb LAN, 1Gb WAN ISP BS
Wired AP 1 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 2 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 3 Unifi Wifi 6 LR US 1Gb LAN
Syslog Services Asustor 7110T NAS 10GB
NetGear XS716T 10GB Switch
download1.dd-wrt.com/dd-wrtv2/downloads/betas/ (Brain Slayer)
YAMon https://usage-monitoring.com/index.php
Don't rush off Al, this only works for Kong's DD-WRT builds.
BrainSlayer does not have the bootstrap util in his builds and Kong runs his own repro for his opkg.
If you can find an independent ip-full pkg to install then great! _________________ Segment 1 XR700 10Gb LAN, 1Gb WAN ISP BS
Wired AP 1 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 2 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 3 Unifi Wifi 6 LR US 1Gb LAN
Syslog Services Asustor 7110T NAS 10GB
NetGear XS716T 10GB Switch
download1.dd-wrt.com/dd-wrtv2/downloads/betas/ (Brain Slayer)
YAMon https://usage-monitoring.com/index.php
Posted: Tue Jan 01, 2019 0:40 Post subject: Various YAMon issues
I've been using YAMon for a while, but over the last few months, it's really gotten to be a problem. It will stop logging any data (for no reason that I can determine), so I end up with gaps in the reports.
My device list recently lost all the groupings that I'd assigned. I re-assigned them, but they are gone again. My fault for not backing up users.js first.
I've thought about doing a complete re-install of the software, but I'm not sure what I need to delete to ensure that it's completely clean.
Any suggestions on what I need to delete for a clean install, or how I can troubleshoot the issues would be much appreciated!
Since the change (be it year or month or a combo), YAMon3 decided to stop processing today. The task was up and running as if nothing was wrong. However, looking at the log I was getting the following every 5 minutes:
00:02:13 2 checkChainEntries: YAMON34v4 returned only 0 entries?!? Resetting ip6tables rules
00:07:17 2 checkChainEntries: YAMON34v4 returned only 0 entries?!? Resetting ip6tables rules
00:12:23 2 checkChainEntries: YAMON34v4 returned only 0 entries?!? Resetting ip6tables rules
This continued most of the day until I restarted YAMon.
Looking at this message, you see YAMON34v4, yet the next part says Resetting ip6tables. I believe that YAMon has two tables, YAMON34v4 and YAMON34v6. My YAMON34v6 has nothing in it, although I have many devices with IP6 (and IP6 is on in the config).
So, does this message contain a type-o? Should it really be resetting YAMON34v4?. Should there be two checks (one for v4 & v6)? Or, is this nothing to worry about?
Just curious. _________________ Netgear R7800: DD-WRT v3.0-r47822 std (12/09/21)
Linksys wrt1900acsV2: DD-WRT v3.0-r47822 std (12/09/21)