View Full Version : server monitor using threads
inkedmn
06-23-2002, 08:48 PM
ok, this sounded like a good idea :)
here's what i'd like to do (this will be in at least two parts):
There will be one machine that will display current resource usage (memory, pagefile, proc, network, etc) for a group of machines.
the machines being monitored will have a server-type script running on them to listen on a certain port, and return the usage information to the requesting host.
each machine queried will return this info to the querying machine, which will format the data and print it out nicely (maybe in html, not sure yet).
anyway, you get the idea...
so, who wants in? (beside Strike) :)
Strike
06-24-2002, 08:22 AM
I'm in!
oh, wait..
Strike
06-24-2002, 01:02 PM
Actually, I just registered for a SourceForge project for this. I figured it'd give us a bit more incentive to develop it (it definitely helped for moobot). I should hear back in a day or two about whether or not the project gets accepted (I don't see why it wouldn't).
inkedmn
06-24-2002, 01:03 PM
sweet :)
wait...
you're going to add me as a developer, right?
;)
Strike
06-24-2002, 01:43 PM
heh, yeah, of course
and it will be a chance for anyone interested to learn how to use SourceForge (and for me to re-learn certain things, like importing CVS trees)
stuka
06-24-2002, 02:23 PM
Sounds like fun to me - but what language here? Y'all gonna do this in Python, I'd guess....in which case I'd be watchin', not workin'!
aw come on stuka! You'll love python if ya play with it a bit. I promise!
stuka
06-24-2002, 02:42 PM
Maybe so, but dang it, ANOTHER language? OK, OK, so gimme a straightforward part - I think I've got ActivePython on this box here @ work, and maybe on the Slack partition too (I don't get to use that much yet :().
inkedmn
06-24-2002, 03:53 PM
the biggest hurdle in this (IMHO) will be figuring out a way to grab the current resource utilization info on windows boxen...
i've looked around, and there isn't (that i can see) a utility that will return the data in a nice, clean text format.
It seems windows performance information is stored in the registry in a "dynamic" part of it, which I didn't previously know existed.
In win95 it seems to use HKEY_DYN_DATA and in NT it seems to use HKEY_PERFORMANCE_DATA... doing a search for these in the msdn documentation should return a number of results. You also may want to look for PERFLIB and PERFMON (perfmon is a tool I think that comes with windows, and apparently the source to it is available in the SDK)...
oh, and I have no idea about win2k or XP..
Strike
06-24-2002, 05:02 PM
SourceForge project approved!
http://sourceforge.net/projects/pynetmontool/
I'm not gonna do any of the setup stuff because I imagine someone who hasn't done this sort of thing before might want to try it - so if you have a SF profile and want to be added, post your Unix SF name here.
inkedmn
06-24-2002, 05:08 PM
i want to do it... :)
GnuVince
06-24-2002, 05:12 PM
I say we write the server in Intercal and the client in Brainfuck. How about it?
Strike
06-24-2002, 05:28 PM
GnuVince:
|
|
.|..
\ | |
\| |
`--'
;) just kidding
Strike
06-24-2002, 05:28 PM
argh, damn you vBulletin for putting spaces between everything
Strike
06-24-2002, 05:30 PM
oh, btw, I'm going to start a #pynetmontool channel on OPN for devel discussions
inkedmn
07-04-2002, 08:26 PM
so when are we going to start coding this bad boy?
(i have to do a VERY similar program in java for work)
looks like i better learn java :)
Danger Fan
07-04-2002, 10:45 PM
ugh, I was gonna join and help out, but you're using python, and I don't have time to learn python. oh well, maybe next time.
ps. it's too frickin' hot
Bradmont
07-05-2002, 12:30 AM
heh, you don't need time to learn python. It takes like half of an afternoon. :)
It's really a wonderful language, I find I use it for almost everything now.
Strike
07-05-2002, 12:53 AM
inkedmn: you can go ahead and set up all the sourceforge stuff, unless you want me to. I can do it if you don't feel like it though.
Strike
07-06-2002, 11:46 PM
Okay, I'm posting some stuff in the developers forum on that site and (sorta) moving the project discussion there. :)
inkedmn
07-07-2002, 07:17 PM
(this is speaking only for myself, not for any of the other guys working on this)...
i think we should make this project open to anybody who only knows a bit of python (or none at all) and wants to learn more about the language itself. this will be a great opportunity to see what a powerful and beautiful language python really is. :D
pending approval from Strike, kmj, and vince, i'd say just get a login a sourceforge and we'll sign you up :)
Benny
07-08-2002, 04:07 AM
I'd definately be interested in helping out.
My python skills aren't anything special, but would be happy to have some sort of hand (no matter how small) in this.
inkedmn
07-08-2002, 12:43 PM
Originally posted by Benny
I'd definately be interested in helping out.
My python skills aren't anything special, but would be happy to have some sort of hand (no matter how small) in this.
do you have a login at sourceforge?
Benny
07-08-2002, 09:30 PM
Originally posted by inkedmn
do you have a login at sourceforge?
Yep - username is Bomber
inkedmn
07-08-2002, 09:52 PM
cool, i'll add you tonight if i can
Benny
07-08-2002, 09:59 PM
Sweet.
Thanks.
inkedmn
07-09-2002, 11:59 AM
ok, you're on there
Strike
07-14-2002, 06:21 PM
Yeah, anyone who wants to join up is welcome to. Check the discussion forums (I won't be able to do much until later this week probably, but you don't need me ;))
inkedmn
11-18-2002, 08:03 PM
*THREAD RESURRECTION*
alright, i've been thinking alot about this project of late, and i thing we should move ahead with it. partially because it's a killer concept and would be fun to do, but also because we've got some new faces around here that might be looking for a project to work on.
what better way to strengthen community, i ask you!?
anyway, the sf page is still up and we still have the list of developers who showed interest in the beginning.(not sure if all of them are still interested).
so, if anybody's (still) interested, please let me know...
inkedmn@inkedmn.net
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.