[Nagiosplug-devel] check_udp

Andreas Ericsson ae at op5.se
Thu Mar 23 04:11:04 CET 2006


Ton Voon wrote:
> Since udp is connectionless, a check_udp -H hostname -p port is  useless 
> - it will always return OK. Will need the send and receive to  work in 
> order to prove that data is being sent and responded to.  However, it 
> looks like the send and receive functions do not  currently work. It 
> seems that you cannot use the send function, so  you have to use the 
> sendto function. However, I'm having trouble  setting up the hostname 
> and socket and how it should interact with  np_net_connect.
> 

send(2) should work if the socket has been associated with a remote 
address using connect(2). If it doesn't it's a kernel bug and should be 
reported. Please verify that indeed it *doesn't* work before you report 
it though.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231




More information about the Devel mailing list