Posts: 527
Threads: 6
Joined: Jul 2010
Reputation:
0
Hello
I'm creating admin panel for my server with PHP, and I'd like to echo current RAM and CPU usage of server.
Server is running on linux Debian 5 VPS, any help is appreciated.
Posts: 527
Threads: 6
Joined: Jul 2010
Reputation:
0
Sorry on double post, but I'm trying to retrieve samp03svr process RAM/CPU usage, not usage of whole VPS.
Posts: 3,351
Threads: 780
Joined: Jan 2010
Quote:
Originally Posted by Ironboy500[TW]
Sorry on double post, but I'm trying to retrieve samp03svr process RAM/CPU usage, not usage of whole VPS.
|
You want echo your gamemode CPU/RAM usage?
If yes,i'm with you,i wanna know how to echo too...
Posts: 2,929
Threads: 160
Joined: Feb 2009
Reputation:
0
You can retrieve data from a single process with that library I guess. Didn't really check it though so I may be wrong.
Posts: 1,047
Threads: 23
Joined: Jun 2009
simple ****** for some linux commands, eg "retrieve linux process memory usage",
http://www.cyberciti.biz/tips/howto-...y-program.html
then use the php send command equillivant and echo it. Simple.