Re: [Nagios-users] Problem with apache2.sh plugin

2012-09-04 Thread Aravinth Anto
On Tue, Sep 4, 2012 at 11:38 AM, Claudio Kuenzler wrote: > In your case I'd do: > > ./check_apache2.sh -H localhost -P 8443 -S > > And you must have mod_status enabled. > > I just tested this on a Debian machine. You will also have to install "bc" > if you haven't already. > Thanks finally I fig

Re: [Nagios-users] Problem with apache2.sh plugin

2012-09-04 Thread Claudio Kuenzler
There seems to be something wrong with your redirect then. You need to debug that first. Disable the redirect and check again. In general you should have a correct and working configuration before monitoring services. On Tue, Sep 4, 2012 at 9:56 AM, Aravinth Anto wrote: > > > On Tue, Sep 4, 2012

Re: [Nagios-users] Problem with apache2.sh plugin

2012-09-04 Thread Aravinth Anto
On Tue, Sep 4, 2012 at 12:55 PM, Claudio Kuenzler wrote: > You should write to Apache mailing list, not to Nagios ;-) > Read http://httpd.apache.org/docs/2.2/mod/mod_status.html > > The status.conf seems correct. > You should be able to access the server-status page from the same host. > Try

Re: [Nagios-users] Problem with apache2.sh plugin

2012-09-04 Thread Claudio Kuenzler
You should write to Apache mailing list, not to Nagios ;-) Read http://httpd.apache.org/docs/2.2/mod/mod_status.html The status.conf seems correct. You should be able to access the server-status page from the same host. Try to access it with and without SSL (are you forcing a SSL redirect?).

Re: [Nagios-users] Problem with apache2.sh plugin

2012-09-04 Thread Aravinth Anto
I'm very new to apache. I tried to enable the server status page of apache. I added the `status.conf` and `status.load` to `mods-enabled` directory. I changed the config of `apache2.conf` to include all `mods-enabled` directory. This is the config of `staus.conf`: # # Allow server

Re: [Nagios-users] Problem with apache2.sh plugin

2012-09-04 Thread Claudio Kuenzler
Note that now you're accessing port 80, instead of 8443... Also before you use the plugin, you should make sure that you have correctly enabled mod_status and the server-status URL is accessible. You can test this with curl or lynx. e.g.: lynx localhost/server-status If this page is not shown, th

Re: [Nagios-users] Problem with apache2.sh plugin

2012-09-03 Thread Aravinth Anto
On Tue, Sep 4, 2012 at 11:47 AM, Claudio Kuenzler wrote: > Read the documentation. It says: > > -S|--secure) > Enables HTTPS (no certificate check though). Default is: off > > Thanks for the reply. But Doing so: $ ./check_apache2.sh -H localhost -S Gives me the same sort of error: (standard_in)

Re: [Nagios-users] Problem with apache2.sh plugin

2012-09-03 Thread Claudio Kuenzler
Read the documentation. It says: -S|--secure) Enables HTTPS (no certificate check though). Default is: off So the certificate is not checked. And if you manually check with curl, you should check the correct URL: curl https://localhost/server-status On Tue, Sep 4, 2012 at 8:13 AM, Aravinth Anto

Re: [Nagios-users] Problem with apache2.sh plugin

2012-09-03 Thread Aravinth Anto
It seems that certificate verification is getting failed. I can do something like this : curl https://localhost --insecure Which is returning the page. But in my case how do I specify the plugin to not to use ssl certificate? Thanks in advance. Kindly help me out. On Tue, Sep 4, 2012 at 11:28 A

Re: [Nagios-users] Problem with apache2.sh plugin

2012-09-03 Thread Claudio Kuenzler
In your case I'd do: ./check_apache2.sh -H localhost -P 8443 -S And you must have mod_status enabled. I just tested this on a Debian machine. You will also have to install "bc" if you haven't already. On Tue, Sep 4, 2012 at 7:58 AM, Aravinth Anto wrote: > Hi all, > > I downloaded the plugin f

[Nagios-users] Problem with apache2.sh plugin

2012-09-03 Thread Aravinth Anto
Hi all, I downloaded the plugin from this page : http://exchange.nagios.org/directory/Plugins/Web-Servers/Apache/check_apache2-2Esh/details I tested in my local machine like this : ./check_apache2.sh -H https://localhost -P 8443 I get an error like this: (standard_in) 2: syntax error OK - Apa