uptime

marafa - November 30, 2006 - 14:39
Project:System Info
Version:5.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

hi
would it also be possible to add the following?

1. server uptime (*nix only)
2. httpd uptime
3. mysql uptime

i discovered from my hosting provider that they regularly restart the mysqld process to enhance performance. i would like to know when they do this.

thanks

#1

marafa - March 29, 2007 - 22:24

show status like 'uptime';

#2

Ralf Stamm - April 2, 2007 - 14:30

I want to integrate phpSysInfo, http://phpsysinfo.sourceforge.net, in version 2. It displays uptime and other server information.

#3

marafa - April 2, 2007 - 22:02

i found that script some time back but it doesnt have mysql status as that is per database per user

#4

Ralf Stamm - April 17, 2007 - 10:40
Version:4.7.x-1.x-dev» 5.x-2.x-dev

phpsysinfo displays the server uptime.

web server uptime can only displayed by the Apache module mod_status, http://httpd.apache.org/docs/2.0/mod/mod_status.html

mysql uptime is displayed on the database info page in version 2.

#5

marafa - April 20, 2007 - 08:59

hi
on this demo page: http://phpsysinfo.sourceforge.net/phpsysinfo-dev/index.php i cant find page 2.
pls give me a link?
thanks

#6

marafa - October 15, 2007 - 08:45

hi again
after much time and searching i finally know how to get uptime status shown in days, hours, minutes, etc.:

   $status = explode (' ', mysql_stat($dbconnect));
   print (sprintf("Mysql Uptime: %d days %02d hours of %02d minutes of %02d seconds", $status[1]/60/60/24, ($status[1]/60/60)%24, ($status[1]/60)%60, $status[1]%60));

 
 

Drupal is a registered trademark of Dries Buytaert.