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 |
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?
|
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.. |
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. |