Re: [Nagios-users] check_udp error message

2013-09-06 Thread Roger Bell_West
On Fri, Sep 06, 2013 at 01:44:06PM +0200, Marco Borsani wrote:
>I already have read that wiki...

OK, I'll try to explain in a different way.

With a TCP-based service there's a standard handshake. You send a SYN,
you get a SYN+ACK, you send an ACK; if that happens, the TCP port is
open. (It may not be responding in a useful way, but it is at least
accepting connections.) So check_tcp doesn't need anything more than
an address and port number to be a useful generic monitor.

With UDP there is no handshaking except what's defined in the
application layer. If you send something that's not what the listening
server expects, the response you get could be an error or could be
nothing at all; it's entirely up to the listening server. The concept
of an "open UDP port" is not really very meaningful in itself. You can
check that you don't get an ICMP Port Unreachable when you send random
junk to the port (I assume that's what the old check_udp is doing;
I've never used it), but there are lots of reasons you might not get
that packet back, including firewall policies; it's no sort of
reliable test.

So your UDP service, of which you still refuse to give any detail, is
expecting something and will return something else. You need to send
it that something, and look for the something else in the response --
just as you send a URL and look for body text when you're using
check_http.

Roger

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
___
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


Re: [Nagios-users] check_udp error message

2013-09-03 Thread Andreas Ericsson
On 2013-09-03 12:33, Marco Borsani wrote:
> Hi all
>
> I need to control many UDP ports.
>
>
>
> I run the command:
>
> ./check_udp –H  –p 88
>
>
>
> I receive following error message (with state UNKNOWN) :
>
> With UDP checks, a send/expect string must be specified
>
>
>
> Can anyone help me to solve it?
>
> Those parameters should be optional..
>

UDP is a connection-less protocol. The "expect" string could indeed
be optional, and we could just expect to get something at all back
when we send something, but without sending anything we won't even
touch the network, so the remote host has no idea that we're trying
to talk to it and we won't know if the port is up.

That's why "send", at least, is not optional.

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

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
___
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] check_udp error message

2013-09-03 Thread Marco Borsani
Hi all

I need to control many UDP ports.

 

I run the command:

./check_udp –H  –p 88

 

I receive following error message (with state UNKNOWN) :

With UDP checks, a send/expect string must be specified

 

Can anyone help me to solve it?

Those parameters should be optional..

 

regards

 

Marco Borsani

Unix and Monitoring Sysadmin

Business Unit Internet Solutions - Operations

tel: +39 010 4310115

fax: +39 02 30130311

cell: +39 329 5953944

ITnet S.r.l.

Società con socio unico

Soggetta a direzione e coordinamento di Italiaonline S.r.l.

 

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk___
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