You are on page 1of 5

using check_udp

Postby julian924s 18 Jan 2011 14:17


Hi - has anyone successfully got check_udp working? I'm trying to use check_UDP
(nagios-plugins 1.4.5) 1.80 but it keeps asking for a send/expect string and I'v
e no idea what this is meant to be?
The target server is running syslog and the check so far has just been failing w
ith this:
/opt/tools/libexec/check_udp -H 192.168.75.131 -p 514
With UDP checks, a send/expect string must be specified.
So I guess my question is simply what should the following be set to:
--send=STRING
--expect=STRING
Thanks - Julian.
julian924s
_
_
Posts: 5
Joined: 14 Dec 2010 10:20
Top
Re: using check_udp
Postby luca 18 Jan 2011 17:00
try this: http://www.mail-archive.com/nagios-user ... 25450.html
Have you tried switching it off and on again?
--The IT crowd
If this forum helps, consider donating (top right of every page), if you prefer
you may pay me beer :P
Have you at least TRIED reading the docs before posting?
User avatar
luca
*****
*****
Posts: 2320
Joined: 02 Feb 2005 11:48
Location: Italy
Top
Re: using check_udp
Postby julian924s 19 Jan 2011 13:11
Hi - yes, I should have said I've had a look around for this same problem and no
t found a great deal out. If I just pass some random string of text the check th
en times out.
/opt/tools/libexec/check_udp -H 192.168.75.131 -p 514 -s 'xyz' -e ''
CRITICAL - Socket timeout after 10 seconds

Julian.
julian924s
_
_
Posts: 5
Joined: 14 Dec 2010 10:20
Top
Re: using check_udp
Postby luca 19 Jan 2011 13:45
no idea, just tried it quickly and it doesn't work.. i only use check_tcp at thi
s time...
Have you tried switching it off and on again?
--The IT crowd
If this forum helps, consider donating (top right of every page), if you prefer
you may pay me beer :P
Have you at least TRIED reading the docs before posting?
User avatar
luca
*****
*****
Posts: 2320
Joined: 02 Feb 2005 11:48
Location: Italy
Top
Re: using check_udp
Postby julian924s 19 Jan 2011 17:23
right ....
well from what I can tell the general consensus is that check_udp is completely
pointless as it doesn't work.
Maybe I can figure it out.
julian924s
_
_
Posts: 5
Joined: 14 Dec 2010 10:20
Top
Re: using check_udp
Postby luca 20 Jan 2011 20:18
sounds somehow strange.. if it wouldn't work it wouldn't be in the plugins packa
ge.. (at least i wouldn't publish it :-D )
Should you find out anything please let us know :D
Have you tried switching it off and on again?
--The IT crowd
If this forum helps, consider donating (top right of every page), if you prefer
you may pay me beer :P

Have you at least TRIED reading the docs before posting?


User avatar
luca
*****
*****
Posts: 2320
Joined: 02 Feb 2005 11:48
Location: Italy
Top
Re: using check_udp
Postby Ammar 01 Dec 2011 09:09
rather than using check_UDP
you can use the UDP information in check snmp command and their OID
./check_snmp -H 10.0.0.254 -C public -o udpInDatagrams.0 -w 100000 -c 105000 -r
1 -m RFC1213-MIB
Cheers
Ammar Pakistan

[Nagios-users] use of check_udp


Philip Brown Wed, 25 Mar 2009 13:52:38 -0700
Hmm..
another snag I hit upgrading from plugins version 1.3.1, to 1.4.13.
previously, it was perfectly valid to use
check_udp -H hostname -p ####
and it worked.
but now, you have to specify BOTH a 'send' string, and an 'expect' string.
The help/error message is not entirely clear:
With UDP checks, a send/expect string must be specified.
It would be nicer if it more accurately said,
With UDP checks, both a send AND an expect string must be specified.
I was wondering why it was not sufficient to call it with -s. I did not
realize it required -e as well.
Also: i didnt really know what to 'expect"... but it turns out that
check_udp -H host -p 2342 -s 'xyz' -e ''
works ok.

Too bad that trick does not seem to work for checking if a kerb5 kdc port is
up and valid.
I know there is a "check_kdc" perl script, but it requires a couple of
external modules. I prefer things that are self-contained, or compiled.
------------------------------------------------------------------------------

check_udp-packet-loss.sh
Bookmark and Share
Submit reviewRecommendPrintContact OwnerVisit
Rating
0 votes
Favoured:
1
Current Version
1.1
Compatible With
Nagios 2.x
Nagios 3.x
Owner
Mike Adolphs
E-mail
mike@fooforge.com
Website
fooforge.com/
Hits
68037
Files:
File
Description
check_udp-packet-loss.sh
The script (Version 1.1)
LICENSE GNU GPLv2 License
check_udp-packet-loss.sh
sh-compliant script to check for UDP packet loss and receive errors.
Description
check_udp-packet-loss.sh is a Nagios plugin to monitor the UDP packet loss via n
etstat. It writes a temporary file to a configurable directory and compares it's
values against the ones from the check before. That means the actual result sho
ws the amount of overall packets, received, receive errors and/or packets reciev
ed to unknown port for the last check interval you've chosen.
Version
-h/--help Output
Version 1.1, 2009, Mike Adolphs (http://fooforge.com/)
-h/--help Output
./check_udp-packet-loss.sh [-w/--warning] [-c/--critical] [-t/--path-tmp]
Options:
--warning|-w)
Sets a warning level for packet receive errors.
Default is: off
--critical|-c)

Sets a critical level for packet receive errors.


Default is: off
--path-tmp|-t)
Sets the path for the temporary file. Default is:
/tmp
Changelog
* 2009-05-14
o Small bugfix of an exit code
* 2009-05-10
o Data now represents UDP statistics for the last
check interval
Reviews (0)
Be the first to review this listing!

You might also like