On 6/7/06, Bogdan Taru <bogdan.taru@xxxxxx> wrote:
Hello, I would like to query the Apache Status informations (the ones provided by mod_status, for example) from an external program. Is there a way to do this without using the rather un-elegant way of accessing an URL/calling 'apachectl status' and parsing the output? For example, is there a certain API that I could use in order to query the status parameters?
No need to use apachectl. You can directly access http://yourserver.example.com/server-status?auto. The "auto" part asks for a more-easily-parsable output format. Other than that, if you want a "real API", you'd need to use the standard apache module API. Joshua. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx