sprintlife Posted October 7, 2008 Share Posted October 7, 2008 I found this very interesting... //GET SERVER LOADS $loadresult = @exec('uptime'); preg_match("/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/",$loadresult,$avgs); Now what I wanna do is not only display server status. But put like a color code system like RED YELLOW GREEN status on it as well. But this is new to me that you can get server status with PHP. If you guys can help that will be very helpful. Link to comment https://forums.phpfreaks.com/topic/127441-display-server-loads/ Share on other sites More sharing options...
revraz Posted October 7, 2008 Share Posted October 7, 2008 First determine what you want RED, YELLOW and GREEN to be measured by. Link to comment https://forums.phpfreaks.com/topic/127441-display-server-loads/#findComment-659295 Share on other sites More sharing options...
sprintlife Posted October 7, 2008 Author Share Posted October 7, 2008 Well I want to basically be like RED means server load is really high yellow at like 70% and 69.9% and down is green. Link to comment https://forums.phpfreaks.com/topic/127441-display-server-loads/#findComment-659304 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.