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 <t-aravi...@juspay.in> wrote:
> 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 - Apache serves Requests per second with an average CPU utilization of
> 0.5%. Busy workers: , idle: | 'cpu_load'=0.5 'req_psec'= 'bytes_psec'=
> 'bytes_preq'= 'workers_busy'= 'workers_idle'=
>
> Why there is an error stating `(standard_in) 2: syntax error`?
>
> Can anyone say me where I'm making the mistake?
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue.
::: Messages without supporting info will risk being sent to /dev/null