perl scripts (check_squid.pl)

Jorge Gil georgyboy at gmail.com
Tue Mar 23 12:56:52 CET 2010


Hi everyone again:

I think I was wrong in my question, in case it helps anyone having the same
troubles, it s better to use the check_http command to test proxies also:

>From the command line you can check if it works with this:
./check_http -H [proxy_server_IP_address] -p [proxy_server_port] -u
http://www.google.es

And then you can use simple commands like
define command {
   command_name  check_bluecoat
   command_line  $USER1$/check_http -H $HOSTADDRESS$ -p 8080 -u
http://www.google.es
 }

(my proxy listens on port 8080)

In recent emails (from where I got this idea, thank you!), it looks like the
https connections can't be tested like this...

Kind regards,
Jorge

On 3/3/10, Jorge Gil <georgyboy at gmail.com> wrote:
>
> Hi everyone!
>
> First of all, thank you for your help to everyone, since I am learning a
> lot from the "cases" that get solved in this mailing list.
>
> I am quite new to Nagios, but it s already watching my network and showing
> it greenly beautiful.. the thing that makes me write you is that I
> downloaded check_squid.pl and it looks fine from the command line. I read
> from some of you that this is not the way to test it, but the first
> check_squid.pl that I got didnt even work from the command line. Anyway, I
> tried to call the command like that, like sudo, like the perl interpreter,
> googled quite a bit, and still nagios gets "null" as output (very
> differently from the OK command line)
>
> Is any of you using check_squid.pl? How did you make it work from the
> nagios.cfg, please?
>
> Thank you so much!
>
> Warm regards,
> Jorge
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100323/a1ac1b0f/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at 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


More information about the Users mailing list