The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi peeps
Anyone know why this aint showing the serverloads please? Its also not showing the uptime as well.... It used to on my last server but im on a freeBSD now.... Evrything else works fine... ? Os: FreeBSD ? PHP: 4.4.2 ? MySQL: 4.1.20 ? Sql Size: 38MB ? Time: 18:08:21 ? Date: 20 Jul 2006 ? GMT: -0500 PHP Code:
|
#2
|
|||
|
|||
![]()
Do you have root access to the server or are you on a shared/reseller hosting account?
|
#3
|
|||
|
|||
![]()
I am on a dedicated server but not root access cause its managed
What ya thinking? |
#4
|
|||
|
|||
![]()
I know that some hosting companies limit what can be pulled and what information can be seen/executed with PHP/Perl, though if you're on a dedicated server those limitations probably were not implemented.
|
#5
|
|||
|
|||
![]()
Ah right i know what ya saying.....
Perhaps for my server i need some slightly different code.... This is the microstats hack pulls the serverload no probs... Code:
if ($loadavg = @file_get_contents("/proc/loadavg")) { $regs = explode(" ",$loadavg); $serverload = ' [Server Loads: <b>' . $regs[0] .'</b> ' . $regs[1] . ' : ' . $regs[2] . ']'; }elseif ($stats=@exec('uptime')) { preg_match('/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/',$stats,$regs); $serverload = ' [Server Loads: <b>' . $regs[1] .'</b> ' . $regs[2] . ' : ' . $regs[3] . ']'; }elseif ($loadavg = @`sysctl vm.loadavg|cut -d" " -f3-5`) { $regs = explode(" ",$loadavg); $serverload = ' [Server Loads: <b>' . $regs[0] .'</b> ' . $regs[1] . ' : ' . $regs[2] . ']'; } $debughtml .= iif($_TEMPLATEQUERIES, ' (<b>' . sizeof($_TEMPLATEQUERIES) . '</b> queries for uncached templates)', '') . "$serverload"; Tis works fine...but mine a few posts back just wont have it.. I have tried to incorperate some of the microstats code but i dont know what im doing lol |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|