LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Server Monitoring - Debian Sarge (https://www.linuxquestions.org/questions/linux-server-73/server-monitoring-debian-sarge-532361/)

ballistic509 02-25-2007 06:12 PM

Server Monitoring - Debian Sarge
 
Is there a good PHP script i can use to get detailed information on my server?

i have a hosting company and i want customers to be able to see uptime, load, and other valuble information

PatrickNew 02-25-2007 08:10 PM

Well, there's no reason you couldn't write this script. The first issue to tackle is, what do you mean by other valuable information?

ballistic509 02-25-2007 10:11 PM

i would love to write it..unfortunately i dont kno much PHP or anything..

and other valuble info would be anything i would wanna add later..not exactly sure..just uptime, and load mainly maybe..

PatrickNew 02-25-2007 10:19 PM

Well, My suggestion is to Google "php tutorial". It's a relatively simple language - for what you are looking for, you could probably learn enough to write it within 30 minutes. The trick will be to just grab values for things like uptime from the appropriate CLI apps. System() should let you do this.

I promise, I taught myself a smattering of php in a half-hour. If you have any other programming experience, this should be a breeze, and if you wrote it yourself, it'll be more maintainable to you.

If you'd just rather not, google "php uptime" for a wide variety, and here's a script for load:
http://www.neowin.net/forum/index.ph...entry584581090


All times are GMT -5. The time now is 10:30 AM.