vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Server Uptime (https://vborg.vbsupport.ru/showthread.php?t=40401)

freakyshiat 07-02-2002 03:55 AM

The uptime info doesnt match the 'top' command

webhost 07-03-2002 12:47 AM

Here is what we use.
http://www.realwebhost.net/netstatus/

Wildthinks 07-04-2002 08:48 AM

Quote:

Originally posted by Etcher
Not really a HACK, but nice little script for information...
...cut.....
The actual uptime is a check of mySQL dB.
Enjoy!

I have enjoid, very nice hack, but waht mean uptime? The uptime from the mysql-Database?

How detected?

My server works over 40 days online and my uptime is 8 days?

I dont understand what uptime mean...please explain :alien: :knockedout:

a43079 09-16-2002 02:51 PM

I tried the hack and this is the error i get...

Warning: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (13) in /home/www/eroweb/admin/uptime.php on line 8

Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (13) in /home/www/eroweb/admin/uptime.php on line 8

Warning: MySQL: A link to the server could not be established in /home/www/eroweb/admin/uptime.php on line 8

Warning: Supplied argument is not a valid MySQL result resource in /home/www/eroweb/admin/uptime.php on line 9

System Uptime: 0 Days 0 Hours 0 Minutes
------------------------------------------------------------------------------
This is from the admin menu

Erwin 09-16-2002 10:49 PM

Quote:

Originally posted by Wildthinks


I have enjoid, very nice hack, but waht mean uptime? The uptime from the mysql-Database?

How detected?

My server works over 40 days online and my uptime is 8 days?

I dont understand what uptime mean...please explain :alien: :knockedout:

Uptime = how long your server has been running before it had downtime ie. went offline because of a reboot, crash etc.

Also, correct me if I'm wrong, but this would an extra query to every page if you place this in your footer, wouldn't it?

pjgoncalves 02-15-2003 04:12 PM

tks :)

Quote:

Originally posted by nuno
*gee* :eek:
paste this into your phpinclude template
PHP Code:

$result mysql_query("show status"); 
while (
$row mysql_fetch_array($result)){ 
if (
$row['Variable_name'] == "Uptime") { $uptime $row['Value']; } 

$days = ((($uptime/60)/60)/24); 
$wholeday = (int) $days
$hours = (($days $wholeday)*24); 
$wholehour = (int) $hours
$minutes = (($hours $wholehour)*60); 
$wholeminute = (int) $minutes

paste this into your footer template, right after $copyrighttext<br>
Code:

<smallfont>System Uptime: $wholeday Days $wholehour Hours $wholeminute Minutes
</smallfont>

All done :)


chr@nox 02-15-2003 07:17 PM

Quote:

Originally posted by Erwin


Uptime = how long your server has been running before it had downtime ie. went offline because of a reboot, crash etc.

Also, correct me if I'm wrong, but this would an extra query to every page if you place this in your footer, wouldn't it?

as far as i can see yea..looks like it adds an extra query for every page :)
but anyhow...very nice hack :)
thanx!

Snapperhaed 03-21-2003 10:02 PM

Worked fine on v2.3.3 (Nunos Method) - Thanks!

Intex 03-31-2003 10:59 AM

Worked great - thx for the hack :).

Dean C 03-31-2003 12:11 PM

Can the original hack author please put the hack in a textfile to prevent unlicensed users from seeing the code :)

Thanks

- miSt


All times are GMT. The time now is 04:57 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01123 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete