[Nagiosplug-devel] [ nagiosplug-Bugs-822662 ] check_tcp does not return "TCP CRITICAL"
SourceForge.net
noreply at sourceforge.net
Mon Oct 13 06:29:02 CEST 2003
Bugs item #822662, was opened at 2003-10-13 04:00
Message generated for change (Comment added) made by undrgrid
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=822662&group_id=29880
Category: Parsing problem
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Hugo Monteiro (hvm_pt)
>Assigned to: Jeremy T. Bouse (undrgrid)
Summary: check_tcp does not return "TCP CRITICAL"
Initial Comment:
check_tcp plugin should return a "TCP CRITICAL:
Connection refused by host" when the tcp service port
checked is down.
example: "check_tcp server1 -p 3128" (SQUID Port)
If the squid service is down we get a "Connection
refused by host" but we should get a "TCP CRITICAL:
etc.." since this service is down.
Because of this, Nagios puts this service in the
critical services group, but we can't get any
availability report because services checked by this
plugin (using check_tcp xxx -p xxxx) are not returning
valid exit codes/echoes: "TCP OK", "TCP WARNING" or
"TCP CRITICAL".
This service check not even appear has unknown!?!!
----------------------------------------------------------------------
>Comment By: Jeremy T. Bouse (undrgrid)
Date: 2003-10-13 06:28
Message:
Logged In: YES
user_id=10485
As I've done quite a few changes in the current CVS HEAD
version of the check_tcp code I believe I know where this
problem lies. It seems to be in the actual connection code
and not in the processing of the reply as it never gets the
connection socket to open. I'll look into it and see if this
is possible to preface with "TCP CRITICAL" however the code
to my knowledge DOES return the proper exit code it is just
the human readable details that is failing to display.
----------------------------------------------------------------------
Comment By: Hugo Monteiro (hvm_pt)
Date: 2003-10-13 04:46
Message:
Logged In: YES
user_id=12156
The problem seems to be in "netutils.c" file between line
308 and 320.
Even if this errors are not known, a plugin should always
return a known error (OK, WARNING, CRITICAL or UNKNOWN) if
it sends anything besides this, it will break Nagios service
information (reports, stats, etc.)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=822662&group_id=29880
More information about the Devel
mailing list