Re: [Nagios-users] use of check_udp

2009-03-26 Thread Andreas Ericsson
Hijacking a message thread to start a new one is a poor way of getting
helpful answers. Please don't do that again.

Philip Brown wrote:
 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.
 

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

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

--
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] use of check_udp

2009-03-25 Thread Philip Brown
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.


--
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null