[Nagiosplug-devel] [ nagiosplug-Bugs-731467 ] check_udp returns exit code 0 everytime

SourceForge.net noreply at sourceforge.net
Wed Nov 15 19:27:19 CET 2006


Bugs item #731467, was opened at 2003-05-02 10:13
Message generated for change (Comment added) made by harpermann
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=731467&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: CVS
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Kevin O'Brien (irishpadres)
>Assigned to: Harper Mann (harpermann)
Summary: check_udp returns exit code 0 everytime

Initial Comment:
If I use the check_tcp symlinked version of check_udp I 
get and exit code of 0 every time I run the script.  I can 
give it any host and and any port and it will always exit 
0 with 0.0001 second response time.  I've tried this on 
both a Linux and Solaris box with the same result.

----------------------------------------------------------------------

>Comment By: Harper Mann (harpermann)
Date: 2006-11-15 10:27

Message:
Logged In: YES 
user_id=939531
Originator: NO

Greetings, this has been fixed and tested so the bug is closed.  
Please let us know if you still have problems with it.
Regards,
- Harper

----------------------------------------------------------------------

Comment By: Harper Mann (harpermann)
Date: 2006-11-13 12:10

Message:
Logged In: YES 
user_id=939531

Hi,
I just tried this with current main branch.
check_udp(2) is returning proper status codes and message
after running.
Is this still a problem?  
Please let me know.  
If I don't hear anything in a couple of days, I'll close
this bug as old.

[hmann at sirius plugins]$ ls -l check_udp2
lrwxrwxrwx  1 hmann hmann 9 Jul 18 15:34 check_udp2 -> check_tcp

[hmann at sirius plugins]$ ./check_udp -H localhost -p 777 -s
"foo" -e "foo" -v Using service UDP
Port: 777
flags: 0x2
Send string: foo
server_expect_count: 1
        0: foo
No data received from host
[hmann at sirius plugins]$ echo $?
2

Regards,
- Harper


----------------------------------------------------------------------

Comment By: Jeremy T. Bouse (undrgrid)
Date: 2003-06-30 10:45

Message:
Logged In: YES 
user_id=10485

I believe the problem lies in actually how the UDP ports are
being check'd as I'm sure if you ran the same tests you ran
with check_udp2 using check_udp they would all give the same
result... Only difference is that result would be a no data
from host failure...

I'm looking into this to see how it can be handled better
and more accurately...

----------------------------------------------------------------------

Comment By: Kevin O'Brien (irishpadres)
Date: 2003-06-30 10:41

Message:
Logged In: YES 
user_id=753604

yes, I'm talking about check_udp2.  I've tested against many 
different kind of udp ports (ntp, dns, nfs, etc) on localhost 
and remote hosts and always returns the same exit code 
regardless of whether they are up or not (and yes the ports 
are actually open).

----------------------------------------------------------------------

Comment By: Jeremy T. Bouse (undrgrid)
Date: 2003-06-29 11:02

Message:
Logged In: YES 
user_id=10485

I assume you mean check_udp2? Are you checking against UDP
ports you know to be open and closed or are they unknown and
trying to use it to test? I'm the one that added the symlink
but haven't been able to give it a full test for accuracy yet.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=731467&group_id=29880




More information about the Devel mailing list