![]() |
[Linux] loadsock (retrieve server load from remote server)
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. Code:
Usage: loadsock [OPTION]... PHP Code:
|
I'm gonna try this, thanks :)
|
may Overgrow jump here now and add his HTML :D
thx Paul :) i'll give it a go again, still not working :( |
all done
up and running awesome hack :cool: many thx Paul ;) |
What dose this do again??
|
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 |
All times are GMT. The time now is 01:32 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|