Kitz Forum

Broadband Related => Router Monitoring Software => Topic started by: dansmitherson on September 22, 2016, 03:05:27 AM

Title: Multiple instances
Post by: dansmitherson on September 22, 2016, 03:05:27 AM
Is there a way to run 2 instances of DSLstats (to monitor 2 different VDSL lines) on Windows 2012 server or any Windows 7/8/10 desktop?
Title: Re: Multiple instances
Post by: skyeci on September 22, 2016, 05:50:21 AM
You could run one version of dsl stats and one version of hg612 stats on one machine to monitor 2 lines..
Title: Re: Multiple instances
Post by: roseway on September 22, 2016, 07:23:16 AM
That's the simplest option. It's not possible to run two instances of DSLstats on the same machine because they would be sharing the same configuration files.
Title: Re: Multiple instances
Post by: Dray on September 22, 2016, 09:57:24 AM
Yes, just copy the folder and rename one on the dslstats.exe files to dslstats1.exe. The only problem is that MDWS doesn't know which line is which.
Title: Re: Multiple instances
Post by: Ronski on September 22, 2016, 10:09:10 AM
The only problem is that MDWS doesn't know which line is which.

I thought it worked fine, you just need two accounts, one for each line.
Title: Re: Multiple instances
Post by: roseway on September 22, 2016, 10:31:28 AM
That's not intended in the design of DSLstats, but I guess it's OK so long as both instances are configured to keep their configuration files in the same directory as the executable.
Title: Re: Multiple instances
Post by: Dray on September 22, 2016, 10:37:32 AM
The WAN IP address detection gets confused
Title: Re: Multiple instances
Post by: Ronski on September 22, 2016, 01:26:49 PM
The WAN IP address detection gets confused

Wasn't aware of that issue, perhaps Tony will fix it one day.
Title: Re: Multiple instances
Post by: Dray on September 22, 2016, 01:32:34 PM
To be honest, I can't see why it needs to spy on the IP address. If it was simply a user-entered field that would just work.
Title: Re: Multiple instances
Post by: Ronski on September 22, 2016, 03:41:15 PM
It does seem rather absurd, if you've got seperate account details then it should work for multiple connections if  the ip's are not on the banned list.
Title: Re: Multiple instances
Post by: tbailey2 on September 22, 2016, 04:17:43 PM
Wasn't aware of that issue, perhaps Tony will fix it one day.
What on earth are you on  about  ???
Title: Re: Multiple instances
Post by: j0hn on September 22, 2016, 07:01:32 PM
Yes, just copy the folder and rename one on the dslstats.exe files to dslstats1.exe. The only problem is that MDWS doesn't know which line is which.
create 2 mdws accounts. use username1 with dslstats.exe  and username2 with dslstats1.exe
The WAN IP address detection gets confused
Wasn't aware of that issue, perhaps Tony will fix it one day.
I think he meant WAN IP address detection in DslStats, not MDWS.

I can't see anything stopping you running 2 instances of DslStats, for 2 separate lines, with both uploading to MDWS.  Just make sure DslStats is installed twice, to 2 separate locations, and 1 of the DslStats.exe files is renamed. You need to check "Location of config files - with other DslStats files" under Configuration > Misc, in both instances of DslStats
Title: Re: Multiple instances
Post by: roseway on September 22, 2016, 07:28:02 PM
What does DSLstats report as the IP address when running in this dual instance mode?
Title: Re: Multiple instances
Post by: Dray on September 22, 2016, 07:36:00 PM
Because I use per-packet load balancing, DSLStats and MDWS report one IP address then the other. This may not be the ideal setup.
Title: Re: Multiple instances
Post by: Ronski on September 22, 2016, 08:43:27 PM
What on earth are you on  about  ???

Whatever Dray was implying - see below, he was clearly on about MDWS, I thought it was odd as surely the username would identify which line was which.

The only problem is that MDWS doesn't know which line is which.

The WAN IP address detection gets confused

To be honest, I can't see why it needs to spy on the IP address. If it was simply a user-entered field that would just work.
Title: Re: Multiple instances
Post by: tbailey2 on September 22, 2016, 08:52:47 PM
Whatever Dray was implying - see below, he was clearly on about MDWS, I thought it was odd as surely the username would identify which line was which.
Correct, MDWS has no interest per se in the IP address although I don't know what the OS and Apache etc would make of file uploads via this method.
Title: Re: Multiple instances
Post by: Dray on September 22, 2016, 09:24:43 PM
Well, the IP address detection is built into dslstats and it passes it on to MDWS because I get alerts from MDWS that I'm uploading from multiple IP addresses.
Title: Re: Multiple instances
Post by: j0hn on September 22, 2016, 09:28:02 PM
When using the 2 lines with load balancing can you not set each modem its own lan ip, so each instance of DslStats had its own mdws username, its own modem to connect to, and that way both would have their own separate wan ip. mdws shouldn't even be able to tell it's 2 lines from the same property.

edit: just noticed the flaw in that theory. The machine uploading would indeed alternate between the 2 ip's
Title: Re: Multiple instances
Post by: tbailey2 on September 22, 2016, 09:40:04 PM
Well, the IP address detection is built into dslstats and it passes it on to MDWS because I get alerts from MDWS that I'm uploading from multiple IP addresses.

Well I didn't write that facility in and no one else has written any of the code...

Nor does MDWS get any info on IP addresses from DSLStats that I'm aware of, nor does it need to.

You may well get notifications of duplicate uploads but that has no association with any IP address.

At the moment, all you are doing is confusing everyone...
Title: Re: Multiple instances
Post by: Dray on September 22, 2016, 09:42:30 PM
Oh ok, sorry.
Title: Re: Multiple instances
Post by: tbailey2 on September 22, 2016, 10:01:46 PM
That's ok. And, I just realised that as you are already uploading, the rapidly changing IP addresses obviously don't worry the system at all  :)
Title: Re: Multiple instances
Post by: roseway on September 22, 2016, 10:57:08 PM
I can confirm that DSLstats doesn't pass on the IP address to MDWS. The information is noted in the event log just for the user's own information.
Title: Re: Multiple instances
Post by: Dray on September 23, 2016, 08:28:18 AM
You may well get notifications of duplicate uploads but that has no association with any IP address.

At the moment, all you are doing is confusing everyone...
Thanks, that clears up my thinking. Looking into this a bit deeper, I get the duplicate uploads warning when my W7 VM is receiving big updates from Microsoft and it runs out of resources. The only problem with my rapidly changing WAN IP address is that the ISP displayed by MDWS also changes rapidly :)

I plan to fix all this by setting up another VM and having 1 per modem.