check_squid not working!

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
redhat1981
Posts: 4
Joined: Thu Nov 03, 2011 12:05 am

check_squid not working!

Post 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
redhat1981
Posts: 4
Joined: Thu Nov 03, 2011 12:05 am

check_squid not working!

Post 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
redhat1981
Posts: 4
Joined: Thu Nov 03, 2011 12:05 am

Re: check_squid not working!

Post 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
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: check_squid not working!

Post 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 ;)
Locked