[Nagiosplug-devel] check_udp

Andreas Ericsson ae at op5.se
Thu Mar 23 06:22:02 CET 2006


Ton Voon wrote:
>   ln -s check_tcp check_udp
>   ./check_udp -H localhost -p 3333     # will always return OK. Is  this 
> right?

No.

>   ./check_udp -H 10.10.10.10 -p 3333   # will always return OK. Is  this 
> right if the host does not exist?
> 

No, it will not. If there's no route to the target host connect() will 
return -1 and set errno to ENOROUTE, which I expect will be detected.

-- 
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