YAMon 3.0... Usage Reporting by device per hr/day/mo

Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> General Questions
Goto page Previous  1, 2, 3 ... 105, 106, 107 ... 149, 150, 151  Next
Author Message
scope2
DD-WRT User


Joined: 12 Jul 2017
Posts: 183

PostPosted: Fri Jul 21, 2017 19:29    Post subject: Reply with quote
Im in the process of setting up YAMon (GREAT little tool, btw), and I've got a question.. Having enabled FTP backup, how is this kicked off? How often does it run?


My Config:
_ftp_site='x.x.x.x'
_ftp_user='xxxx'
_ftp_pswd='xxxx'
_ftp_dir='/xxx/yyy/zzz'
Sponsor
al_c
DD-WRT Guru


Joined: 13 Apr 2013
Posts: 2134
Location: Ottawa Canada

PostPosted: Fri Jul 21, 2017 21:25    Post subject: Reply with quote
scope2 wrote:
Im in the process of setting up YAMon (GREAT little tool, btw), and I've got a question.. Having enabled FTP backup, how is this kicked off? How often does it run?


My Config:
_ftp_site='x.x.x.x'
_ftp_user='xxxx'
_ftp_pswd='xxxx'
_ftp_dir='/xxx/yyy/zzz'


good question... I thought I had a help topic about that but apparently not. It must've been blown away when I accidentally clobbered that page could of weeks ago... dang).

The files on the FTP server are updated on the same schedule as locally - see config.file:
_updatefreq='30' # number of seconds between updates
_publishInterval='2' # number of intervals between updates for to the website

With the above values, there would be updates every minute.

Does that help?
scope2
DD-WRT User


Joined: 12 Jul 2017
Posts: 183

PostPosted: Fri Jul 21, 2017 21:52    Post subject: Reply with quote
al_c wrote:
scope2 wrote:
Im in the process of setting up YAMon (GREAT little tool, btw), and I've got a question.. Having enabled FTP backup, how is this kicked off? How often does it run?


My Config:
_ftp_site='x.x.x.x'
_ftp_user='xxxx'
_ftp_pswd='xxxx'
_ftp_dir='/xxx/yyy/zzz'


good question... I thought I had a help topic about that but apparently not. It must've been blown away when I accidentally clobbered that page could of weeks ago... dang).

The files on the FTP server are updated on the same schedule as locally - see config.file:
_updatefreq='30' # number of seconds between updates
_publishInterval='2' # number of intervals between updates for to the website

With the above values, there would be updates every minute.

Does that help?


It does help, but it doesnt explain why nothing is being copied across to the FTP server. Very Happy I will try to enable logging and see whats going on tomorrow. Thanks for you help.
scope2
DD-WRT User


Joined: 12 Jul 2017
Posts: 183

PostPosted: Sat Jul 22, 2017 8:14    Post subject: Reply with quote
I got FTP working -atleast trying.. I now get the following:

ftpput: unexpected server response to STOR: 553 /Backup: Permission denied.

Entries in log:
2017-07-22 09:11:35 1 save2File --> data saved to /opt/YAMon3/data/2017/07/2017-07-22-hourly_data.js
2017-07-22 09:11:35 1 send2FTP --> /opt/YAMon3/data/2017/07/2017-07-22-hourly_data.js sent to FTP site (/Backup/)

----------------------
553 seems to indicate the filename is not allowed..? the FTP server is hosted on a Synology.

Permissions shouldnt be an issue, as I can FTP through a client and create stuff.. The user has been given admin access to the /Backup folder.
ddaniel51
DD-WRT Guru


Joined: 19 Feb 2013
Posts: 1464

PostPosted: Sat Jul 22, 2017 9:09    Post subject: Reply with quote
With FTP you need to create a shared Folder on the NAS with the directory structure YAMon expects to ftp the data to.
FTP will not automatically create directories.

_enable_ftp='1'
_ftp_site='192.168.1.100'
_ftp_dir='YAMon3/8500' (The 8500 is one of 3 routers I have running YAMon)
_ftp_user='xxxxx'
_ftp_pswd='xxxxxxxx'
_wwwData="data3/"

So, my NAS Directory looks like this:
YAMon3/8500/js
YAMon3/8500/data3/2017/01,02,pre-made folders for every month of the year.
YAMon3/8500/data3/2018/01,02,etc (So it's ready on New Years Eve in case I forget since I'll be 71 then)

And this is what you see if you got it right.

send2FTP --> /opt/data/2017/07/2017-07-22-hourly_data.js sent to FTP site (YAMon3/8500/data3/2017/07/2017-07-22-hourly_data.js)

send2FTP --> /opt/data/users.js sent to FTP site (YAMon3/8500/data3/users.js)

send2FTP --> /opt/YAMon3/www/js/config3.3.js sent to FTP site (YAMon3/8500/js/config3.3.js)

Have fun!

_________________
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
scope2
DD-WRT User


Joined: 12 Jul 2017
Posts: 183

PostPosted: Sat Jul 22, 2017 10:56    Post subject: Reply with quote
Not having much luck..

config.file:
_wwwData="data3/"

_enable_ftp='1'
_ftp_site='192.168.0.8'
_ftp_user='YAMon'
_ftp_pswd='xxxx'
_ftp_dir='Backup/YAMon3/' (tried Backup/YAMon3 aswell, same error)

Log Entry:
2017-07-22 11:47:37 1 send2FTP --> /opt/YAMon3/data/2017/07/2017-07-22-hourly_data.js sent to FTP site (Backup/YAMon3//)

folder structure:
/Backup/YAMon3/data3/2017/07
/Backup/YAMon3/js

Shell output:
ftpput: unexpected server response to STOR: 553 Backup/YAMon3: Is a directory.
rickmav3
DD-WRT User


Joined: 08 Sep 2014
Posts: 145

PostPosted: Sat Jul 22, 2017 15:26    Post subject: Reply with quote
Yes, noticed this too after startup.sh is launched:
ls: unrecognized option: e

Also, _doLocalFiles='1' option in config.file is no longer working. YAmon page is not loading in browser:
An unexpected Java error has prevented the reports from opening properly.

Thanks for great YAmon!

al_c wrote:

I'll roll this into v3.3.2... is there anyone else out there encountering the same issue?

steve265
DD-WRT Novice


Joined: 22 Jul 2017
Posts: 2
Location: WY

PostPosted: Sat Jul 22, 2017 16:27    Post subject: Newby Reply with quote
Newby here with first post. That newby is not just to the forum. It’s a reference to the universe of routers, modems, bandwidth, LANs, internet etc. After being more than half scared to death (many years off my life) Shocked about flashing my router with dd-wrt by the Peacock thread (read it all) Rolling Eyes and all the warnings in the instructions etc, I leaped and flashed. Much to my surprise it worked. Then tackled YAMon with WinSCP and PuTTY. Had never heard of them, but it all worked too and YAMon has been up and running since the 13th. Whew! Very Happy
Have tinkered with both dd-wrt and YAMon a bit and have a couple of questions. Will wait until I get to know the language of this stuff better. Then, maybe I’ll be able to ask a decent question.
Thanks to Al for doing YAMon (check/donation is in the mail/PayPal) and to all you posters in this thread who help – GREAT WORK.
s

_________________
12 mbps Service; TP-Link TD-8616 Modem; TP-Link TL-WDR4300 v 1.3 Router; dd-wrt r25697; YAMon 3.3.3
DrMona
DD-WRT Novice


Joined: 17 Nov 2016
Posts: 6

PostPosted: Sun Jul 23, 2017 0:22    Post subject: Reply with quote
al_c wrote:
DrMona wrote:
Hello guys!
I recently updated YAMON to version 3.3, but I experience a problem on my LEDE router:
- I can't access Yamon page by http://192.168.1.1/user/index.html
There are no files created in: /www (in older version there used to be symbolic links to /tmp/www).

Code:
root@LEDE:~# ls -la /tmp/www/
drwxr-xr-x    3 root     root           180 Jul 15 11:29 .
drwxrwxrwt   23 root     root           640 Jul 15 11:29 ..
lrwxrwxrwx    1 root     root            23 Jul 15 11:29 css -> /mnt/usb/YAMon3/www/css
lrwxrwxrwx    1 root     root            21 Jul 15 11:29 data3 -> /mnt/usb/YAMon3/data/
lrwxrwxrwx    1 root     root            26 Jul 15 11:29 images -> /mnt/usb/YAMon3/www/ima                           ges
lrwxrwxrwx    1 root     root            33 Jul 15 11:29 index.html -> /mnt/usb/YAMon3/www                           /yamon3.3.html
drwxr-xr-x    2 root     root            80 Jul 15 11:29 js
lrwxrwxrwx    1 root     root            21 Jul 15 11:29 logs -> /mnt/usb/YAMon3/logs/
lrwxrwxrwx    1 root     root             8 Jul 15 11:29 www -> /tmp/www


Did something change in the newer versions of the script? Do I need to create those symlinks manually?


Is _symlink2data='1' in your config.file?

If no, change it and run restart.sh.

If yes, manually delete all of the files in /tmp/www/ and run restart.sh

Does that fix things?

Sorry for late reply. _symlink2data was/is set to 1. I fixed the issue by creating a new HTTP server on a different port, which lists the Yamon3 files created in /tmp Smile The latest version where it worked fine was 3.2.5 (I skipped some versions, so I'm not sure when it started to happen).
al_c
DD-WRT Guru


Joined: 13 Apr 2013
Posts: 2134
Location: Ottawa Canada

PostPosted: Sun Jul 23, 2017 1:40    Post subject: Reply with quote
scope2 wrote:
Not having much luck..

config.file:
_wwwData="data3/"

_enable_ftp='1'
_ftp_site='192.168.0.8'
_ftp_user='YAMon'
_ftp_pswd='xxxx'
_ftp_dir='Backup/YAMon3/' (tried Backup/YAMon3 aswell, same error)

Log Entry:
2017-07-22 11:47:37 1 send2FTP --> /opt/YAMon3/data/2017/07/2017-07-22-hourly_data.js sent to FTP site (Backup/YAMon3//)

folder structure:
/Backup/YAMon3/data3/2017/07
/Backup/YAMon3/js

Shell output:
ftpput: unexpected server response to STOR: 553 Backup/YAMon3: Is a directory.


Sorry - out of town at a soccer tournament with kid#2... I'll post a help topic and debugging app for you short.

One important note (as already pointed out), the simplistic FTP functionality on your routers does not allow me to make directories on the destination server. You must create those manually.

Back to you ASAP

Thanks for your patience.

Al
al_c
DD-WRT Guru


Joined: 13 Apr 2013
Posts: 2134
Location: Ottawa Canada

PostPosted: Sun Jul 23, 2017 1:42    Post subject: Re: Newby Reply with quote
steve265 wrote:
Newby here with first post. That newby is not just to the forum. It’s a reference to the universe of routers, modems, bandwidth, LANs, internet etc. After being more than half scared to death (many years off my life) Shocked about flashing my router with dd-wrt by the Peacock thread (read it all) Rolling Eyes and all the warnings in the instructions etc, I leaped and flashed. Much to my surprise it worked. Then tackled YAMon with WinSCP and PuTTY. Had never heard of them, but it all worked too and YAMon has been up and running since the 13th. Whew! Very Happy
Have tinkered with both dd-wrt and YAMon a bit and have a couple of questions. Will wait until I get to know the language of this stuff better. Then, maybe I’ll be able to ask a decent question.
Thanks to Al for doing YAMon (check/donation is in the mail/PayPal) and to all you posters in this thread who help – GREAT WORK.
s


Steve - thanks for the kind words (and your donation Smile). You've probably crossed the steepest part of the learning curve already. Glad to hear you're up and running.

Al
al_c
DD-WRT Guru


Joined: 13 Apr 2013
Posts: 2134
Location: Ottawa Canada

PostPosted: Sun Jul 23, 2017 1:47    Post subject: Reply with quote
rickmav3 wrote:
Yes, noticed this too after startup.sh is launched:
ls: unrecognized option: e

Also, _doLocalFiles='1' option in config.file is no longer working. YAmon page is not loading in browser:
An unexpected Java error has prevented the reports from opening properly.

Thanks for great YAmon!

al_c wrote:

I'll roll this into v3.3.2... is there anyone else out there encountering the same issue?



I think I posted already that I've found a *much* better way to get the info I needed so the ls -e won't be necessary at all... I'll post a fix shortly.

I'll look into the dolocal stuff... I don't use it myself (and TBH really don't actually like the option). Be that as it may, I'll fire up a test router shortly and figure out what is going wrong.

Al
ddaniel51
DD-WRT Guru


Joined: 19 Feb 2013
Posts: 1464

PostPosted: Sun Jul 23, 2017 3:29    Post subject: Reply with quote
Did you create a user on the Synology named YAMon with permissions?
I used the administrator name and password on my NAS.

scope2 wrote:
Not having much luck..

config.file:
_wwwData="data3/"

_enable_ftp='1'
_ftp_site='192.168.0.8'
_ftp_user='YAMon'
_ftp_pswd='xxxx'
_ftp_dir='Backup/YAMon3/' (tried Backup/YAMon3 aswell, same error)

_________________
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
scope2
DD-WRT User


Joined: 12 Jul 2017
Posts: 183

PostPosted: Sun Jul 23, 2017 8:17    Post subject: Reply with quote
al_c wrote:
scope2 wrote:
Not having much luck..

config.file:
_wwwData="data3/"

_enable_ftp='1'
_ftp_site='192.168.0.8'
_ftp_user='YAMon'
_ftp_pswd='xxxx'
_ftp_dir='Backup/YAMon3/' (tried Backup/YAMon3 aswell, same error)

Log Entry:
2017-07-22 11:47:37 1 send2FTP --> /opt/YAMon3/data/2017/07/2017-07-22-hourly_data.js sent to FTP site (Backup/YAMon3//)

folder structure:
/Backup/YAMon3/data3/2017/07
/Backup/YAMon3/js

Shell output:
ftpput: unexpected server response to STOR: 553 Backup/YAMon3: Is a directory.


Sorry - out of town at a soccer tournament with kid#2... I'll post a help topic and debugging app for you short.

One important note (as already pointed out), the simplistic FTP functionality on your routers does not allow me to make directories on the destination server. You must create those manually.

Back to you ASAP

Thanks for your patience.

Al


No worries at all, enjoy your time with your family. Smile

The folders have been created on the FTP server, I also tried using the NAS Admin user, but no difference..
halucigenia
DD-WRT Novice


Joined: 23 Jul 2017
Posts: 4

PostPosted: Sun Jul 23, 2017 10:55    Post subject: Reply with quote
I just found out about YAMon and am wanting to install it to collect data from my TP-Link Mr200 on which I have just installed LEDE.
The problem is it does not have a USB port

I see from reading information above that YAMon now has FTP and also Database logging capability. Will this enable routers without USB capabilities to log externally from the router and run reports?

If so is there a guide on how to do this anywhere?
Goto page Previous  1, 2, 3 ... 105, 106, 107 ... 149, 150, 151  Next Display posts from previous:    Page 106 of 151
Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum