Training, Open Source computer languages
PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 
Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
 
For 2023 (and 2024 ...) - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))
apache and java

Posted by shilpa_naini (shilpa_naini), 13 September 2005
1. Can  apache server-status page be globalized
2. Is there a way to read server-status page of apache programatically using java.

Posted by admin (Graham Ellis), 13 September 2005
Are you asking about Apache httpd, or Apache Tomcat?  In both cases, the status pages can be viewed from just any browser if the configuration is set correctly and I'm happy to provide you with some pointers.   But I do need to know which Apache server  

As regards picking up a status page within a Java program - yes. If you create a java.net.URL object for the URL you want to read from, use the openConnecion method in that object to obtain a URLConnection object, on which to can run getContent or getInputStream if that suits you better.

Posted by shilpa_naini (shilpa_naini), 13 September 2005
I have to parse through the server-status page of apache httpd .
Can that page be in german/french

Posted by admin (Graham Ellis), 13 September 2005
If you're processing the page through a program, surely it doesn't matter whether it's in English, French or German does it?   After all, your program can wrap up the data it gets in any language of your choice.  I THINK the answer, by the way, is no - it's always in English, but Apache is open source and so you could alter mod_status if you want ...

You may like to note that there is an alternative form of the report from mod_status that's designed to make it easy to interpret through an automatic program.  Have a look at http://httpd.apache.org/docs/2.0/mod/mod_status.html for more details.

Posted by shilpa_naini (shilpa_naini), 14 September 2005
I need to find some parameters from the page like uptime, Total Requests, Cpu load etc. Is there a posibility that these words might change based on language as I am paring this page for specific words.
And my problem is if the language of the page changes can these words change.

One more thing what is the difference between so and dso. while configuring apache we load the module as mod_status.so . Can this be made dso?


Posted by admin (Graham Ellis), 14 September 2005
There's an excellent article about dso at http://www.idevelopment.info/data/Programming/web/apache/Understanding_DSO_Support.shtml - it lists all the advantages and disadvantages, and that's probably a good place to look .... knows much more about it than I do.   I understand you comment about the text turning up in French / German - I don't think it will, but do also have a look at that interface that's specially designed for automata as I think that can alleviate that worry once and for all.



This page is a thread posted to the opentalk forum at www.opentalk.org.uk and archived here for reference. To jump to the archive index please follow this link.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2024: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho