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 ... 137, 138, 139 ... 149, 150, 151  Next
Author Message
ddaniel51
DD-WRT Guru


Joined: 19 Feb 2013
Posts: 1464

PostPosted: Wed Feb 21, 2018 20:53    Post subject: Reply with quote
Hi Al

Can you add CTF (Cut Through Forwarding) to go along with SFE warnings on the manual install page please?
Effectively same operation with different descriptions depending on firmware being used.

Tnx
Dave

_________________
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
Sponsor
jtp10181
DD-WRT Novice


Joined: 07 Sep 2009
Posts: 31

PostPosted: Thu Feb 22, 2018 22:33    Post subject: Re: Looking for guinea pigs to test v3.4.1 Reply with quote
cray wrote:
Trying to run old and dev version. Scripts running but cannot get GUI to work, don't know how to configure so you can access either index.html.

Previous dev GUI would still load, after new update it hangs. If I look in /www I see a mix of 3.4 and 3.3.6 files.

root@nsagateway:/tmp/www# ls -l
lrwxrwxrwx 1 root root 19 Feb 21 04:19 css -> /opt/YAMon3/www/css
lrwxrwxrwx 1 root root 19 Feb 21 12:11 data3 -> /opt/YAMon3.4/data/
lrwxrwxrwx 1 root root 22 Feb 21 04:19 images -> /opt/YAMon3/www/images
lrwxrwxrwx 1 root root 31 Feb 21 12:11 index.html -> /opt/YAMon3.4/www/yamon3.4.html
drw-rw-r-- 2 root root 0 Feb 21 10:34 js
lrwxrwxrwx 1 root root 17 Feb 21 04:19 logs -> /opt/YAMon3/logs/

I assume this is not good and can't figure out how to option the config to create two separate trees.

I run the gui at 192.168.1.1/user/index.html. Can't figure out how to make a user2 or what the best way to do this is.


I am just about to set this up, I am going to set these vars on both the current and dev version different (may have to adjust www location for your router). I already set my current version up and it seems to work fine except for an extraneous symlink that keeps getting created.

Current:
_wwwPath='/tmp/var/wwwext/YAMon/'
_wwwURL='/user/YAMon/'

Dev:
_wwwPath='/tmp/var/wwwext/YAMonDev/'
_wwwURL='/user/YAMonDev/'



Redundant Symlink.png
 Description:
Redundant endless loop back to itself symlink created
 Filesize:  17.68 KB
 Viewed:  2954 Time(s)

Redundant Symlink.png


jtp10181
DD-WRT Novice


Joined: 07 Sep 2009
Posts: 31

PostPosted: Thu Feb 22, 2018 22:39    Post subject: Problem with dev advanced install Reply with quote
DEV 3.4.1 Bug Report:

Problem with dev advanced install. If I try and change some of the settings it wont take it, only seems like the defaults work on some, others I can change.

It is spamming my syslog with firewall information or something, turned logging to lvl 2 but still doing it so going to shut it down and wait for a fix.

Code:
Feb 22 19:18:06 kernel: YAMon:IN=br0 OUT=eth0 SRC=192.168.1.193 DST=216.58.192.174 LEN=52 TOS=0x00 PREC=0x00 TTL=63 ID=0 DF PROTO=TCP SPT=63593 DPT=443 WINDOW=2044 RES=0x00 ACK URGP=0
Feb 22 19:18:06 kernel: YAMon:IN=br0 OUT=eth0 SRC=192.168.1.193 DST=216.58.192.174 LEN=52 TOS=0x00 PREC=0x00 TTL=63 ID=0 DF PROTO=TCP SPT=63593 DPT=443 WINDOW=2044 RES=0x00 ACK URGP=0
Feb 22 19:18:06 kernel: YAMon:IN=br0 OUT=eth0 SRC=192.168.1.193 DST=216.58.192.174 LEN=732 TOS=0x00 PREC=0x00 TTL=63 ID=0 DF PROTO=TCP SPT=63592 DPT=443 WINDOW=2048 RES=0x00 ACK PSH URGP=0
Feb 22 19:18:06 kernel: YAMon:IN=eth0 OUT=br0 SRC=216.58.192.174 DST=192.168.1.193 LEN=617 TOS=0x00 PREC=0x00 TTL=53 ID=55042 PROTO=TCP SPT=443 DPT=63592 WINDOW=225 RES=0x00 ACK PSH URGP=0
Feb 22 19:18:06 kernel: YAMon:IN=eth0 OUT=br0 SRC=172.217.8.206 DST=192.168.1.116 LEN=107 TOS=0x00 PREC=0x00 TTL=54 ID=53497 PROTO=TCP SPT=443 DPT=35086 WINDOW=253 RES=0x00 ACK PSH URGP=0
Feb 22 19:18:06 kernel: YAMon:IN=eth0 OUT=br0 SRC=172.217.8.206 DST=192.168.1.116 LEN=52 TOS=0x00 PREC=0x00 TTL=54 ID=53498 PROTO=TCP SPT=443 DPT=35086 WINDOW=253 RES=0x00 ACK FIN URGP=0
Feb 22 19:18:06 kernel: YAMon:IN=br0 OUT=eth0 SRC=192.168.1.116 DST=172.217.8.206 LEN=52 TOS=0x00 PREC=0x00 TTL=63 ID=64619 DF PROTO=TCP SPT=35086 DPT=443 WINDOW=539 RES=0x00 ACK FIN URGP=0
Feb 22 19:18:06 kernel: YAMon:IN=br0 OUT=eth0 SRC=192.168.1.116 DST=172.217.8.206 LEN=52 TOS=0x00 PREC=0x00 TTL=63 ID=64620 DF PROTO=TCP SPT=35086 DPT=443 WINDOW=539 RES=0x00 ACK URGP=0
Feb 22 19:18:06 kernel: YAMon:IN=eth0 OUT=br0 SRC=172.217.8.206 DST=192.168.1.116 LEN=52 TOS=0x00 PREC=0x00 TTL=54 ID=53513 PROTO=TCP SPT=443 DPT=35086 WINDOW=253 RES=0x00 ACK FIN URGP=0
Feb 22 19:18:06 kernel: YAMon:IN=br0 OUT=eth0 SRC=192.168.1.116 DST=172.217.8.206 LEN=64 TOS=0x00 PREC=0x00 TTL=63 ID=64621 DF PROTO=TCP SPT=35086 DPT=443 WINDOW=539 RES=0x00 ACK URGP=0
Feb 22 19:18:06 kernel: YAMon:IN=br0 OUT=eth0 SRC=192.168.1.193 DST=216.58.192.174 LEN=52 TOS=0x00 PREC=0x00 TTL=63 ID=0 DF PROTO=TCP SPT=63592 DPT=443 WINDOW=2039 RES=0x00 ACK URGP=0
Feb 22 19:18:06 kernel: YAMon:IN=br0 OUT=eth0 SRC=192.168.1.116 DST=172.217.8.206 LEN=52 TOS=0x00 PREC=0x00 TTL=63 ID=64622 DF PROTO=TCP SPT=35086 DPT=443 WINDOW=539 RES=0x00 ACK FIN URGP=0
Feb 22 19:18:07 kernel: YAMon:IN=eth0 OUT=br0 SRC=172.217.8.206 DST=192.168.1.116 LEN=52 TOS=0x00 PREC=0x00 TTL=54 ID=53647 PROTO=TCP SPT=443 DPT=35086 WINDOW=253 RES=0x00 ACK URGP=0


Also I am getting some odd output when it starts and it is also repeating itself like its stuck somewhere.


Code:
   Yet Another Monitor
            Copyright (c) 2013-present Al Caughey
                  All rights reserved.
               http://usage-monitoring.com

    YAMon Version:: 3.4.1

**********************************************************
[: bad number
[: bad number
ln: /www/user/YAMonDev/YAMonDev: File exists
removed '/tmp/var/wwwext/YAMonDev/index.html'
removed '/tmp/var/wwwext/YAMonDev/data3'


   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   ~  Your reports URL: http://192.168.1.1/user/YAMonDev//index.html
   ~  (subject to some firmware variant oddities)
   ~  If your reports do not open properly, see
   ~     http://usage-monitoring.com/help/?t=reports-help
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

**********************************************************
***  `yamon3.4.1.sh` has been started
**********************************************************

To stop the script:
 * run `shutdown.sh` [*RECOMMENDED*]
      e.g., `shutdown.sh`
 * or delete the `/tmp/YAMon3.4-running` directory
      e.g., `rmdir /tmp/YAMon3.4-running`


[: bad number
ln: /www/user/YAMonDev/YAMonDev: File exists
removed '/tmp/var/wwwext/YAMonDev/index.html'
removed '/tmp/var/wwwext/YAMonDev/data3'


   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   ~  Your reports URL: http://192.168.1.1/user/YAMonDev//index.html
   ~  (subject to some firmware variant oddities)
   ~  If your reports do not open properly, see
   ~     http://usage-monitoring.com/help/?t=reports-help
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



2018-02-22 16_38_49-192.168.1.1 - PuTTY.png
 Description:
 Filesize:  18.31 KB
 Viewed:  2951 Time(s)

2018-02-22 16_38_49-192.168.1.1 - PuTTY.png




Last edited by jtp10181 on Fri Feb 23, 2018 1:21; edited 2 times in total
LoHF
DD-WRT Novice


Joined: 20 Feb 2018
Posts: 4

PostPosted: Fri Feb 23, 2018 0:25    Post subject: Re: YAMon suddenly stopped loading data correctly Reply with quote
Bricoleur wrote:
LoHF wrote:


Any help here would be greatly appreciated!


I have know this problem ! I reformated my USB stick (Ext3) ! Probably was corrupted !
Or better, you can try with another USB stick !


Oof! Did you have any luck keeping previous data? Or was that all trashed as well?
Bricoleur
DD-WRT User


Joined: 23 Dec 2015
Posts: 55

PostPosted: Fri Feb 23, 2018 0:32    Post subject: Re: YAMon suddenly stopped loading data correctly Reply with quote
LoHF wrote:
Bricoleur wrote:
LoHF wrote:


Any help here would be greatly appreciated!


I have know this problem ! I reformated my USB stick (Ext3) ! Probably was corrupted !
Or better, you can try with another USB stick !


Oof! Did you have any luck keeping previous data? Or was that all trashed as well?


Many files was corrupted !
al_c
DD-WRT Guru


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

PostPosted: Fri Feb 23, 2018 3:02    Post subject: Re: Looking for guinea pigs to test v3.4.1 Reply with quote
jtp10181 wrote:
cray wrote:
Trying to run old and dev version. Scripts running but cannot get GUI to work, don't know how to configure so you can access either index.html.

Previous dev GUI would still load, after new update it hangs. If I look in /www I see a mix of 3.4 and 3.3.6 files.

root@nsagateway:/tmp/www# ls -l
lrwxrwxrwx 1 root root 19 Feb 21 04:19 css -> /opt/YAMon3/www/css
lrwxrwxrwx 1 root root 19 Feb 21 12:11 data3 -> /opt/YAMon3.4/data/
lrwxrwxrwx 1 root root 22 Feb 21 04:19 images -> /opt/YAMon3/www/images
lrwxrwxrwx 1 root root 31 Feb 21 12:11 index.html -> /opt/YAMon3.4/www/yamon3.4.html
drw-rw-r-- 2 root root 0 Feb 21 10:34 js
lrwxrwxrwx 1 root root 17 Feb 21 04:19 logs -> /opt/YAMon3/logs/

I assume this is not good and can't figure out how to option the config to create two separate trees.

I run the gui at 192.168.1.1/user/index.html. Can't figure out how to make a user2 or what the best way to do this is.


I am just about to set this up, I am going to set these vars on both the current and dev version different (may have to adjust www location for your router). I already set my current version up and it seems to work fine except for an extraneous symlink that keeps getting created.

Current:
_wwwPath='/tmp/var/wwwext/YAMon/'
_wwwURL='/user/YAMon/'

Dev:
_wwwPath='/tmp/var/wwwext/YAMonDev/'
_wwwURL='/user/YAMonDev/'

please send your setup3.4.1.log to questions@usage-monitoring.com (look in /opt/YAMon3/logs/)

In theory, you should only see _wwwPath='/tmp/var/wwwext/YAMonDev/' if your firmware is Asuswrt-Merlin, Tomato or Xwrt-Vortex... does this apply to you?!?
al_c
DD-WRT Guru


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

PostPosted: Fri Feb 23, 2018 3:41    Post subject: Re: Problem with dev advanced install Reply with quote
jtp10181 wrote:
DEV 3.4.1 Bug Report:

Problem with dev advanced install. If I try and change some of the settings it wont take it, only seems like the defaults work on some, others I can change.

It is spamming my syslog with firewall information or something, turned logging to lvl 2 but still doing it so going to shut it down and wait for a fix.

Code:
Feb 22 19:18:06 kernel: YAMon:IN=br0 OUT=eth0 SRC=192.168.1.193 DST=216.58.192.174 LEN=52 TOS=0x00 PREC=0x00 TTL=63 ID=0 DF PROTO=TCP SPT=63593 DPT=443 WINDOW=2044 RES=0x00 ACK URGP=0
Feb 22 19:18:06 kernel: YAMon:IN=br0 OUT=eth0 SRC=192.168.1.193 DST=216.58.192.174 LEN=52 TOS=0x00 PREC=0x00 TTL=63 ID=0 DF PROTO=TCP SPT=63593 DPT=443 WINDOW=2044 RES=0x00 ACK URGP=0
Feb 22 19:18:06 kernel: YAMon:IN=br0 OUT=eth0 SRC=192.168.1.193 DST=216.58.192.174 LEN=732 TOS=0x00 PREC=0x00 TTL=63 ID=0 DF PROTO=TCP SPT=63592 DPT=443 WINDOW=2048 RES=0x00 ACK PSH URGP=0
Feb 22 19:18:06 kernel: YAMon:IN=eth0 OUT=br0 SRC=216.58.192.174 DST=192.168.1.193 LEN=617


Yes to track down the `no matching mac` traffic, I added an iptables entry that sends those calls to the /var/log/messages.

With that logging entry, I've been able to tweak the iptables entries so that my `no matching mac` traffic has dropped from ~5+MB/day to maybe a few KB/day...

Has anyone else noticed this change as well? If no, please zip up your m/var/log/messages and send it to questions@usage-monitoring.com (Spoiler alert, it most cases it is internal traffic going to one of the following addresses: 255.255.255.255, 224.0.0.1, 127.0.0.1). I occasionally see a flurry of entries in the log if/when an IP address changes (which my Ooma device seems to do on a regular basis).

I meant to add a flag that turns the logging on/off but in the excitement of adding the bridge functionality, forgot to do so. You can manually kill the `spamming`
1. by removing the offending entry from the iptables chain YAMON34v4 - e.g.
iptable -D YAMON34v4 ##
(where ## is the line number of the logging rule - iptables -L YAMON34v4 --line-numbers -vnx),

or

2. by commenting out the line `eval $cmd $_tMangleOption -A "$chain" -s "$ip" -j LOG --log-prefix "YAMon: "` (somewhere around line 502 in /includes/util3.4.x.sh)

I hope this helps

Al
al_c
DD-WRT Guru


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

PostPosted: Fri Feb 23, 2018 3:43    Post subject: Re: Problem with dev advanced install Reply with quote
jtp10181 wrote:
DEV 3.4.1 Bug Report:

Also I am getting some odd output when it starts and it is also repeating itself like its stuck somewhere.


Code:
   Yet Another Monitor
            Copyright (c) 2013-present Al Caughey
                  All rights reserved.
               http://usage-monitoring.com

    YAMon Version:: 3.4.1

**********************************************************
[: bad number
[: bad number
ln: /www/user/YAMonDev/YAMonDev: File exists
removed '/tmp/var/wwwext/YAMonDev/index.html'
removed '/tmp/var/wwwext/YAMonDev/data3'


   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   ~  Your reports URL: http://192.168.1.1/user/YAMonDev//index.html
   ~  (subject to some firmware variant oddities)
   ~  If your reports do not open properly, see
   ~     http://usage-monitoring.com/help/?t=reports-help
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

**********************************************************
***  `yamon3.4.1.sh` has been started
**********************************************************

To stop the script:
 * run `shutdown.sh` [*RECOMMENDED*]
      e.g., `shutdown.sh`
 * or delete the `/tmp/YAMon3.4-running` directory
      e.g., `rmdir /tmp/YAMon3.4-running`


[: bad number
ln: /www/user/YAMonDev/YAMonDev: File exists
removed '/tmp/var/wwwext/YAMonDev/index.html'
removed '/tmp/var/wwwext/YAMonDev/data3'


   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   ~  Your reports URL: http://192.168.1.1/user/YAMonDev//index.html
   ~  (subject to some firmware variant oddities)
   ~  If your reports do not open properly, see
   ~     http://usage-monitoring.com/help/?t=reports-help
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


To help track down the `[: bad number` errors, please set
_log2file='2'
_loglevel='0'
_scrlevel='1'

Then run restart.sh again

_log2file='2' will cause the logging messages to go to the screen and the log file

_scrlevel='1' will send only `send2log` messages of level 1 or higher to the screen but all messages of level 0 or higher will go to the log

Then find the `[: bad number` in the output on the screen... time stamps of the calls on the screen will help track down where the offending code occurs in the logs.

Thanks in advance for your assistance.
Al
jtp10181
DD-WRT Novice


Joined: 07 Sep 2009
Posts: 31

PostPosted: Fri Feb 23, 2018 12:06    Post subject: Reply with quote
I am emailing you on the other reports FYI. I have also noticed this new entry in the users.js presumably from my VPN server running on the router.

Code:
ud_a({"mac":"00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00","ip":"10.8.0.1","ip6":"","owner":"Unk","name":"New Device-01","colour":"","added":"2018-02-22 19:05:14","updated":"2018-02-23 05:57:25","last-seen":"2018-02-22 19:05:14"})
jtp10181
DD-WRT Novice


Joined: 07 Sep 2009
Posts: 31

PostPosted: Fri Feb 23, 2018 19:22    Post subject: Reply with quote
One more tip, for Asuswrt-Merlin 380.69_2 (almost current release) I found these to be the correct dnsmasq settings:

Code:
_dnsmasq_conf='/tmp/etc/dnsmasq.conf'
_dnsmasq_leases='/tmp/var/lib/misc/dnsmasq.leases'
al_c
DD-WRT Guru


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

PostPosted: Sat Feb 24, 2018 5:12    Post subject: Reply with quote
ddaniel51 wrote:
Hi Al

Can you add CTF (Cut Through Forwarding) to go along with SFE warnings on the manual install page please?
Effectively same operation with different descriptions depending on firmware being used.

Tnx
Dave


Dave - definitely yes... I've not seen CTF in DD-WRT so far... is this a new addition in the admin GUI? (I can't find it in my GUI... but I haven't updated for a couple of weeks/months now).

There is no nvram entry for CTF either... can you point me in the right direction?

Thx
ddaniel51
DD-WRT Guru


Joined: 19 Feb 2013
Posts: 1464

PostPosted: Sat Feb 24, 2018 10:47    Post subject: Reply with quote
CTF was an earlier version of SFE that didn't last too long but, is still around.

On another note:

/opt/data is my data path and /opt/logs is logs in config.file.

h2m.sh converts that to /opt/YAMon3//opt/data and /opt/YAMon3//opt/logs which doesn't work too well.

3.4.1 isn't writing daily results to the mac_data.js
which prompted the use of h2m and it's quirks.

_________________
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_c
DD-WRT Guru


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

PostPosted: Sat Feb 24, 2018 23:13    Post subject: Reply with quote
ddaniel51 wrote:
CTF was an earlier version of SFE that didn't last too long but, is still around.

On another note:

/opt/data is my data path and /opt/logs is logs in config.file.

h2m.sh converts that to /opt/YAMon3//opt/data and /opt/YAMon3//opt/logs which doesn't work too well.

3.4.1 isn't writing daily results to the mac_data.js
which prompted the use of h2m and it's quirks.


I have to confess to an embarassing `doh!` mistake in 3.4.1...

The script that aggregates the hourly data into the monthly file (/includes/hourly2monthly.sh) does not actually calculate the daily device totals . To speed up things while testing other new features, I commented out that function call and then forgot to uncomment it before uploading the the server.

You can update to v3.4.2 (by running `/opt/install.sh dev` again) or uncomment line ~#449 in /includes/hourly2monthly.sh:

#eval "$tallyHourlyData"

(just delete the # at the start of the line)

To fill-in the gaps in your monthly file, run /opt/YAMon3/h2m.sh and follow the prompts.

Sorry for the confusion!
ddaniel51
DD-WRT Guru


Joined: 19 Feb 2013
Posts: 1464

PostPosted: Sat Feb 24, 2018 23:58    Post subject: Reply with quote
Al, tried the h2m in dev and got this..

_logfilename-->/opt/YAMon3//opt/logs/h2m.log
_configFile-->/opt/YAMon3/config.file
touch: /opt/YAMon3//opt/logs/h2m.log: No such file or directory
./h2m.sh: line 48: can't create /opt/YAMon3//opt/logs/h2m.log: nonexistent directory
16:54:48 1 Log file: `/opt/YAMon3//opt/logs/h2m.log`.
./h2m.sh: line 49: can't create /opt/YAMon3//opt/logs/h2m.log: nonexistent directory
16:54:48 1 Loading baseline settings from `/opt/YAMon3/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
jtp10181
DD-WRT Novice


Joined: 07 Sep 2009
Posts: 31

PostPosted: Tue Feb 27, 2018 20:36    Post subject: Reply with quote
ddaniel51 wrote:
Al, tried the h2m in dev and got this..

_logfilename-->/opt/YAMon3//opt/logs/h2m.log
_configFile-->/opt/YAMon3/config.file
touch: /opt/YAMon3//opt/logs/h2m.log: No such file or directory
./h2m.sh: line 48: can't create /opt/YAMon3//opt/logs/h2m.log: nonexistent directory
16:54:48 1 Log file: `/opt/YAMon3//opt/logs/h2m.log`.
./h2m.sh: line 49: can't create /opt/YAMon3//opt/logs/h2m.log: nonexistent directory
16:54:48 1 Loading baseline settings from `/opt/YAMon3/config.file`.


If you change the h2m.sh around line 41 where it sets the _logfilename to the following code it should work. It currently is not handling absolute paths correctly.

Code:
if [ "${_logDir:0:1}" == "/" ] ; then
   _logfilename="$_logDir"'h2m.log'
else
   _logfilename="${d_baseDir}/$_logDir"'h2m.log'
fi


The glc.sh has this same issue. I am thinking there should be a global in maybe the defaults.sh that sets the absolute path for logs/ and data/ since those both support either absolute or relative paths in the settings. But the above trick will fix it for now.
Goto page Previous  1, 2, 3 ... 137, 138, 139 ... 149, 150, 151  Next Display posts from previous:    Page 138 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