Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
[Linux] loadsock (retrieve server load from remote server) Details »
[Linux] loadsock (retrieve server load from remote server)
Mod Version: 1.00, by fastforward (Member) fastforward is offline
Developer Last Online: Nov 2011 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (1 vote - 5.00 average) Installs: 3
Released: 14 Mar 2002 Last Update: Never Downloads: 3
Not Supported  

This little daemon will listen on a given IP/port and simply dump the load average and mysql processes to any TCP connection that connects to the listening port. The MySQL process list is also sent if a mysql username and password is specified using the --mysql-user and --mysql-pwd options.

Output is sent as 'as is' with no formatting. The first line is the load average as shown by /proc/loadavg. Everything following, is the is the output of 'mysqladmin processlist'. You will need to parse the output yourself using PHP or whatever client language you happen to use.

To limit output to a specific IP, you should add additional rules to your firewall configuration. By default, this daemon listens on all IP addresses and port 6666.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Below is some example client PHP code that connects and echoes the output:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 14 Mar 2002, 02:40
Bane's Avatar
Bane Bane is offline
 
Join Date: Oct 2001
I'm gonna try this, thanks
__________________
Bane
° talkloud Network - Forums never smelled this good.
° el coolo hacko - vbStats


vBORG Chat - Hang with the price of poop flinging *monkey sound* (irc.devcore.co.uk port 6667 - channel: #vBorg)
Reply With Quote
  #3  
Old 14 Mar 2002, 07:51
nuno's Avatar
nuno nuno is offline
 
Join Date: Oct 2001
may Overgrow jump here now and add his HTML
thx Paul
i'll give it a go again, still not working
__________________
Powered by: vBulletin
Reply With Quote
  #4  
Old 14 Mar 2002, 21:38
nuno's Avatar
nuno nuno is offline
 
Join Date: Oct 2001
all done
up and running
awesome hack
many thx Paul
__________________
Powered by: vBulletin
Reply With Quote
  #5  
Old 18 Mar 2002, 01:12
Psychdrone Psychdrone is offline
 
Join Date: Nov 2001
What dose this do again??
Reply With Quote
  #6  
Old 18 Mar 2002, 10:55
nuno's Avatar
nuno nuno is offline
 
Join Date: Oct 2001
this is intended for dual cpu's
it measures db load and web load and shuts off search function if one of the loads goes too high.
read this thread
http://www.vbulletin.com/forum/showt...threadid=41401
__________________
Powered by: vBulletin
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 14:15.

Layout Options | Width: Wide Color: