Ivan Ristic | 6 Dec 16:47
Gravatar

Re: Error: apache-monitor.pl


> This email is with regard to the apache-monitor.pl found at 
> http://www.apachesecurity.net.
> 
> I found the link via modsecurity.org and I believe the author is the same.

   Yep, that's me.

> Sorry if this is off-topic and/or not apporpriate but I didn't know 
> where else to ask.

   You are right, the subject is slightly off-topic. Let's move to
   private communication after this.

> I've installed the require perl modules and got the script to execute OK 
> but there is no data.
> 
> First I kept getting this error:
> 
> ./apache-monitor.pl /root/scripts/httpd/me 
> http://xxx.xxxxxxx.xxx/server-status
> Illegal division by zero at ./apache-monitor.pl line 170.

   The script has very little error handling at the moment. After I add
   error handling (soon) I will make an official release.

   In my experiments the message above appears if you omit to append
   "?auto" to the URL. It should work properly if you execute it like
   this:

   ./apache-monitor.pl prefix http://www.apache.org/server-status/?auto

   Let me know if it doesn't work after this and I'll chase the problem
   for you. Otherwise use the current version until the official version
   is released (which will be accompanied by the proper documentation).

Bye,
Ivan

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

Gmane