PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: [NL]trucker on 26 April, 2004, 09:59:50

Title: other kind of hubinfo script a challence
Post by: [NL]trucker on 26 April, 2004, 09:59:50
hello all is this possiblle?

i wanted a script that checks the hubstats of several hubs and saves the outcome to a file
and this on a timed base.

so basicly this info is what i need

hubstats
online
user count
share count

can this be done by a lua-script or has this to be clientside scripting?

either way can someone help?
Title:
Post by: Skrollster on 26 April, 2004, 10:40:49
QuoteOriginally posted by [NL]trucker
so basicly this info is what i need

hubstats
online
user count
share count

can this be done by a lua-script or has this to be clientside scripting?

Hubstats - ???
Online - can be done by client/serverscripting in lua..
user count i would do it the client scripting way
share count same as with user count
Title:
Post by: [NL]trucker on 26 April, 2004, 13:07:17
originally posted by skrollster

Hubstats - ???
Online - can be done by client/serverscripting in lua..
user count i would do it the client scripting way
share count same as with user count


take in consideration that this has to be done over several hubs about 80-100

and if possiblle in one sollution
and yes it is pre if this could be done with clientside so that one person can do this and it is not needed for hubowners to ad another script.
 
so i agree with skrollster it is best to be done clientway
is there someone who feels up to this?
Title:
Post by: Skrollster on 26 April, 2004, 13:23:34
i didn't understand what you wanted with Hubstats that doesn't say me anything, can mean a lot of diffrent things...
Title:
Post by: [NL]trucker on 26 April, 2004, 15:09:27
lol

i,ll guess something like this is meant

15:06:35] ------------------------------------------------------------
[15:06:35] Current stats:
[15:06:35] ------------------------------------------------------------
[15:06:35] Version: PtokaX DC Hub 0.3.3.0 build 15.25 [debug] built on Dec 15 2003 18:48:35
[15:06:35] Uptime: 4 days, 1 hours, 2 minutes
[15:06:35] Users (Max/Peak/Logged) : 200 / 144 / 62
[15:06:35] CPU usage (60 seconds average): 5.5%
[15:06:35] MEM usage: 1855 kB

but could be wrong will let you know asap.
Title:
Post by: [NL]trucker on 27 April, 2004, 09:41:56
oke i have the complete request for the script now here it comes

==========
online
user count min/max/logged
share count  
uptime /if not availlablle then in log xxxxx
Slots min/Slots max/Hubs: 2 / 0 / 0
if possiblle redir addy from hub
hubname cq addy

this needs to be logged  and if possiblle compared against prevous log then make a file with what is diffrent from what hub

so normal logwould be something like :

 \hublogs\04-27-2004\- 2am.log

and diffrence:
 hublogs\diffrent\04-27-2004\funnyhub or ip

can it be done will somebody try to do this?
Title:
Post by: _-Jile-_ on 29 April, 2004, 04:02:54
This would be really nice to have, since I need to monitor about 200 hubs' online status / share totals and where their redirects are pointing.
Title:
Post by: [NL]trucker on 29 April, 2004, 08:38:37
Is there someone looking into this request??

please let us know
Title:
Post by: nErBoS on 01 May, 2004, 02:11:34
Hi,

If i understand you want a script to check out the Hub Stat of some Hubs, well don?t now if is possible, never played with sockets, but even if is possible that would lag each Hub every times the command is requested.

Best regards, nErBoS
Title:
Post by: [NL]trucker on 01 May, 2004, 12:48:33
Nerbos

it should be possiblle if i have read it right with clientside scripting.

furthermore if you would do this with a client instead of a normal lua script the lag wouldnt be that big, if i,m correct.
Title:
Post by: nErBoS on 01 May, 2004, 23:36:16
Hi,

Ohhh with a client is other bussniss :) yes that is possible i think, but i have never done a script to work with a client, if i am not mistake it works with Lua 5.0. I would mind to check that out but i am out of time to learn new things :( may some one could do this.

Best regards, nErBoS
Title:
Post by: [NL]trucker on 04 May, 2004, 11:06:21
Nerbos

thnx for trying to help here m8.

i hope somene else with the knowlede of programming clientside scripting will look into this request.
Title:
Post by: plop on 04 May, 2004, 16:57:39
QuoteOriginally posted by [NL]trucker
Nerbos

thnx for trying to help here m8.

i hope somene else with the knowlede of programming clientside scripting will look into this request.
the idea is nice but i'm lacking the time 2 make it.

plop
Title:
Post by: [NL]trucker on 05 May, 2004, 15:15:25
Plop

Np here m8 i,m sure you have better things to do :-))

better luck next time maybey.
Title:
Post by: ((UKSN))shad_dow on 06 May, 2004, 15:37:24
this may sound stupid but here goes , well its the way ive done to mointer a couple of hubs .

1) need webspace ( hint = ptokax got built in webserver)

2) html knowlage

3) if all hus running ptokax , asks hub owners to ativeate ptokax hub webserver.

4 create a webpage with abutton ,that when click will take u to that hubs stats page ,

pretty easy ... , best is if u run a ptokax hub too u all ready got a webserver and stats for ur hub too :)

:) semms everubody forgot ptokax webserver LOL

PPS. before anybody says out i know this a lua forum PMFSL  ;)
Title:
Post by: Corayzon on 07 May, 2004, 03:37:49
yea...i use it for my boss's web :P
Title:
Post by: [NL]trucker on 07 May, 2004, 17:44:10
hmmm it is an idear but not the sullotion we were hoping for.

as far as i know not all the hubs are running ptotax.

but thnx for the input m8,s