check_udp return CRITICAL -Socket timeout
Posted: Thu Mar 08, 2018 5:33 pm
I need some assistance with the check_udp plugin. I am trying to send a HEX string "02 33 34 41 38 20 20 31 32 33 34 35 20 73 30 37 30 30 30 33 30 20 0D" and get a "02 31 32 33 34 35 06 0D" back. I get CRITICAL - Socket timeout every time. See below. I used a packet sender tool and it works. See blow.
I tried it with the Packet Sender tool and it does get a response.
Any assistance greatly appreciated.
Thank you.
Code: Select all
/usr/local/nagios/libexec/check_udp -v -H 10.200.6.195 -p 2001 -w 60 -s "02 33 34 41 38 20 20 31 32 33 34 35 20 73 30 37 30 30 30 33 30 20 0D" -e "02 31 32 33 34 35 06 0D"
Using service UDP
Port: 2001
flags: 0x6
Send string: 02 33 34 41 38 20 20 31 32 33 34 35 20 73 30 37 30 30 30 33 30 20 0D
server_expect_count: 1
0: 02 31 32 33 34 35 06 0D
CRITICAL - Socket timeout
I tried it with the Packet Sender tool and it does get a response.
Code: Select all
TIME From IP From Port To IP To Port Method Error ASCII Hex
13:00:35.264 You 59902 10.200.6.195 2001 UDP \0234A8 12345 s0700030 \r 02 33 34 41 38 20 20 31 32 33 34 35 20 73 30 37 30 30 30 33 30 20 0d
13:00:35.300 10.200.6.195 2001 You 59902 UDP \0212345\06\r 02 31 32 33 34 35 06 0D
Thank you.