PDA

View Full Version : UPTIME


alexs
02-19-2001, 07:41 PM
Please enable the "uptime", "ping" and "traceroute" commands in the shell, they are very useful everyday... :-)

geeknik
02-20-2001, 08:32 PM
Just make yourself a little PHP script called uptime.php and put this in it:

<?
system(uptime);
?>

Traceroute is available through your control panel, and ping is too easily abused, so I doubt they will turn it on.


-Brian

Originally posted by alexs
Please enable the "uptime", "ping" and "traceroute" commands in the shell, they are very useful everyday... :-)

alexs
02-21-2001, 04:36 AM
Thanks for the 10X reply!
Bye,
Alex

alexs
02-21-2001, 06:01 AM
I tried with the php script but it doesn't work for me :-(

I simply insert the following lines into an htlm document but nothing is showed by the server:

<?
system(uptime);
?>

Bye, Alex

alexs
02-21-2001, 06:29 AM
Problem solved with an excellent php script from:

http://phpsysinfo.sourceforge.net/

Take a look!

Bye, Alex

alexs
02-21-2001, 07:06 AM
It would be a good idea to include this nice php script into the control-panel.

Bye!

Brendan
02-21-2001, 10:04 AM
Hi,

This PHP script is not any less server intensive than the other ones we have disabled - we just cant disable its use.

-Brendan

alexs
02-21-2001, 10:29 AM
If i understand well you (support) wrote that it's better not to put this PHP script into the control-panel because it loads the server too much, right?
I'm a new customer and i don't know the scripts you disabled some time ago.
Anyway, don't worry, i just tried it :-)

Bye!

P.S.: Congratulations! Host4 is working well now!

4serendipity
02-21-2001, 11:39 AM
Couldn't it be possible to run the script periodically on each server (every hour or so) and post the results to a "serever status" url.

This would minimize the server load and would still allow access to the server info.

petesmc
02-21-2001, 04:15 PM
I think hey banned the uptime, top commands because of me.

I used to use them allot, and figured out howmuch the top command used. Then i reduced it.

I used it as this was the time, when the server was seriously slow due to some cgi scripts (Ikonboard) ...

Sorry Guys,

Might now have been me....but know what yo can do. IF you do use server intensive scripts...edit the .bash_histroy file loacted in root (hidden)....and delete the contents....then they never know what you've done....

But, pity you can't do any more server intensive commands....LOL

Pete

Brendan
02-25-2001, 01:59 AM
Thats not the only place this gets logged my dear ;)

-Brendan

petesmc
02-25-2001, 06:35 AM
Lol....

Doesn't matter..

It may save space in your account if you use telnet allot..

Peter