Rudi Starcevic | 6 Dec 02:53

Error: apache-monitor.pl

Hi,

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.

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

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.

After I hacked the script a little I got it work but no data.
For example:

RRDupdate(/root/scripts/httpd/me.rrd)=1102232242:::::0:0:0::::::::::::
RRDupdate(/root/scripts/httpd/me.rrd)=1102232547:::::0:0:0::::::::::::
RRDupdate(/root/scripts/httpd/me.rrd)=1102232659:::::0:0:0::::::::::::
RRDupdate(/root/scripts/httpd/me.rrd)=1102232670:::::0:0:0::::::::::::
RRDupdate(/root/scripts/httpd/me.rrd)=1102232672:::::0:0:0::::::::::::

Seems like it's always ::::0:0:0:::::::

(Continue reading)

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:

(Continue reading)


Gmane