jaymc Posted November 21, 2007 Share Posted November 21, 2007 I am using apaches server-status module to monitor apache I want to develop my own layout of statistics feeding of the generated output of server-status Its going to be a real dirty tasks using tons of php regex to extract the data out of the html However, i know there is XML output available, rumours have it that it will be available in the next apache release... But, Im pretty sure there is a way of adding it in now with the current version Does anyone know anything about this? Quote Link to comment https://forums.phpfreaks.com/topic/78239-solved-server-status/ Share on other sites More sharing options...
apacheguy Posted November 21, 2007 Share Posted November 21, 2007 I'm not really sure, but you could check the page for mod_status in the documentation for the next version of apache: http://httpd.apache.org/docs/trunk/mod/mod_status.html Quote Link to comment https://forums.phpfreaks.com/topic/78239-solved-server-status/#findComment-396276 Share on other sites More sharing options...
steviewdr Posted November 25, 2007 Share Posted November 25, 2007 I use munin (a monitoring app) which parses out apache information from server-status. It provides me with everything I want to know about apache's usage. -steve Quote Link to comment https://forums.phpfreaks.com/topic/78239-solved-server-status/#findComment-398959 Share on other sites More sharing options...
jaymc Posted November 26, 2007 Author Share Posted November 26, 2007 I need it in XML preferably Im going to make my own output, with options to kill processes etc However, I need the output in some kind of logical format, rather than using a heap of regex to exclude irrelivent html to parse out the true data If it was in XML that would be great, or seperated by line as raw DOS like text To summaryise, I need a middle layer that can retreive info from apache server and allow me to pull it out so I can have number of processes = 83 Start up time = 5 hours 5 mins current connections = 5.7 Basically, everthing that server-status shows, but, before its cluttered with HTML. I need to do away wit HTML so just left with source data compliments of apache Quote Link to comment https://forums.phpfreaks.com/topic/78239-solved-server-status/#findComment-399379 Share on other sites More sharing options...
steviewdr Posted November 26, 2007 Share Posted November 26, 2007 See: http://www.unix.org.ua/orelly/linux/apache/ch11_03.htm Im sure there are other output formats which can be set for server-status. -steve Quote Link to comment https://forums.phpfreaks.com/topic/78239-solved-server-status/#findComment-399549 Share on other sites More sharing options...
todding01 Posted November 26, 2007 Share Posted November 26, 2007 You can run http://yourdomain/server-status?auto to get an easily parsed file... Quote Link to comment https://forums.phpfreaks.com/topic/78239-solved-server-status/#findComment-399831 Share on other sites More sharing options...
jaymc Posted November 27, 2007 Author Share Posted November 27, 2007 I need to have process info aswell.. Quote Link to comment https://forums.phpfreaks.com/topic/78239-solved-server-status/#findComment-400161 Share on other sites More sharing options...
todding01 Posted November 27, 2007 Share Posted November 27, 2007 Is ExtendedStatus On ? Quote Link to comment https://forums.phpfreaks.com/topic/78239-solved-server-status/#findComment-400220 Share on other sites More sharing options...
jaymc Posted November 27, 2007 Author Share Posted November 27, 2007 Yes Quote Link to comment https://forums.phpfreaks.com/topic/78239-solved-server-status/#findComment-400274 Share on other sites More sharing options...
todding01 Posted November 27, 2007 Share Posted November 27, 2007 Take a look at the file log_server_status.in in the support folder. You should be able to write whatever output you want from server-status Quote Link to comment https://forums.phpfreaks.com/topic/78239-solved-server-status/#findComment-400304 Share on other sites More sharing options...
jaymc Posted November 27, 2007 Author Share Posted November 27, 2007 I have had a search and cant find that file? /etc/httpd/.........? Cheers! Quote Link to comment https://forums.phpfreaks.com/topic/78239-solved-server-status/#findComment-400367 Share on other sites More sharing options...
todding01 Posted November 27, 2007 Share Posted November 27, 2007 You can find it in the source code download. Quote Link to comment https://forums.phpfreaks.com/topic/78239-solved-server-status/#findComment-400409 Share on other sites More sharing options...
steviewdr Posted November 29, 2007 Share Posted November 29, 2007 How about: server-status?notable as was mentioned on the link I posted above. -steve Quote Link to comment https://forums.phpfreaks.com/topic/78239-solved-server-status/#findComment-402009 Share on other sites More sharing options...
jaymc Posted November 30, 2007 Author Share Posted November 30, 2007 That notable will seriosly help! Thanks!! Quote Link to comment https://forums.phpfreaks.com/topic/78239-solved-server-status/#findComment-402593 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.