In your case I'd do:<br><br>./check_apache2.sh -H localhost -P 8443 -S<br><br>And you must have mod_status enabled.<br><br>I just tested this on a Debian machine. You will also have to install "bc" if you haven't already.<br>
<br><div class="gmail_quote">On Tue, Sep 4, 2012 at 7:58 AM, Aravinth Anto <span dir="ltr"><<a href="mailto:t-aravinth@juspay.in" target="_blank">t-aravinth@juspay.in</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all, <div><br></div><div>I downloaded the plugin from this page : <a href="http://exchange.nagios.org/directory/Plugins/Web-Servers/Apache/check_apache2-2Esh/details" target="_blank">http://exchange.nagios.org/directory/Plugins/Web-Servers/Apache/check_apache2-2Esh/details</a> </div>
<div><br></div><div>I tested in my local machine like this : </div><div><br></div><div>./check_apache2.sh -H <a href="https://localhost" target="_blank">https://localhost</a> -P 8443</div><div><br></div><div>I get an error like this: </div>
<div><br></div><div><div>(standard_in) 2: syntax error</div><div>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'=</div>
</div><div><br></div><div>Why there is an error stating `(standard_in) 2: syntax error`? </div><div><br></div><div>Can anyone say me where I'm making the mistake?</div>
<br>------------------------------------------------------------------------------<br>
Live Security Virtual Conference<br>
Exclusive live event will cover all the ways today's security and<br>
threat landscape has changed and how IT managers can respond. Discussions<br>
will include endpoint security, mobile security and the latest in malware<br>
threats. <a href="http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/" target="_blank">http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/</a><br>_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br>