Page 1 of 1

check_squid not working!

Posted: Thu Nov 03, 2011 12:16 am
by redhat1981
Hi,

I have configured Nagios Nagios® Core™ Version 3.2.2, All the services are working fine, But squid service is not working at all, Attaching my squid host.cfg file
************************************************************************
define host{
host_name proxya.mycompany.com
alias Proxy Access server
address 192.168.0.207
check_command check-host-alive
max_check_attempts 1
check_period 24x7
process_perf_data 0
retain_nonstatus_information 0
contact_groups Linux
notification_interval 2280
notification_period 24x7
notification_options d,u,r
}
*********************************************************************

service.cfg file

*********************************************************************
define service{
host_name proxya.mycompany.com
service_description Squid
check_command check_squid
max_check_attempts 1
normal_check_interval 5
retry_check_interval 3
check_period 24x7
notification_interval 2280
notification_period 24x7
notification_options w,c,r
contact_groups Linux
}
*********************************************************************

Thank you

check_squid not working!

Posted: Thu Nov 03, 2011 12:21 am
by redhat1981
Hi,

I have configured Nagios® Core™ Version 3.2.2, All services like HTTP, SSH and FTP Working fine, Squid not working at all, Attaching my squid.cfg

define service{
host_name proxya.vertexsoft.com
service_description Squid
check_command check_squid
max_check_attempts 1
normal_check_interval 5
retry_check_interval 3
check_period 24x7
notification_interval 2280
notification_period 24x7
notification_options w,c,r
contact_groups Linux
}


Thank you

Re: check_squid not working!

Posted: Thu Nov 03, 2011 9:30 am
by redhat1981
Hello,

From the command line on nagios server it is working when I type
/usr/local/nagios/libexec/check_squid -u http://google.com -p 192.168.0.207 -l 3128 -e 200
I get the result OK - Status: 200 OK

But when I put the command in squid.cfg

check_command check_nrpe!check_squid -u http://www.google.com -p 192.168.0.207 -l 3128 -200

I am getting output in the Nagios url

Status UNKNOWN (No output returned from plugin)

Help required!

Thank you

Re: check_squid not working!

Posted: Thu Nov 03, 2011 5:42 pm
by jsmurphy
This line is not quite right:
check_command check_nrpe!check_squid -u http://www.google.com -p 192.168.0.207 -l 3128 -200

This line should be more right:
check_command check_squid!-u http://www.google.com -p 192.168.0.207 -l 3128 -200

You don't need to run check_nrpe ;)