Re: [Nagios-devel] nagios bug report

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] nagios bug report

Post by Guest »

On Tue, 2003-04-22 at 06:53, Greg Panula wrote:
> martin mcflysr wrote:
> >
> > Hello Greg,
> >
> > Tuesday, April 22, 2003, 2:16:36 PM, you wrote:
> >
> > >> what wrong?
> > GP> hmmm, not sure... but it works for me. Maybe you need search domains
> > GP> listed in your /etc/resolv.conf?
> > /etc/resolv.conf have a line about search domain:
> >
> > # grep search /etc/resolv.conf
> > search mynet.lan mynet.wan
> >
> > GP> [net-mgmt]:[/usr/local/libexec/nagios]:>./check_ping -H proxy -w
> > GP> 3000.0,80% -c 5000.0,100% -p 1
> > GP> PING OK - Packet loss = 0%, RTA = 0.63 ms
> >
> > GP> [net-mgmt]:[/usr/local/libexec/nagios]:>cat /etc/resolv.conf
> > GP> domain dolaninformation.com
> > GP> search dolaninformation.com dolanmedia.com banko.com
> > GP> nameserver 10.1.1.28
> > GP> nameserver 10.1.1.15
> >
> > GP> net-mgmt is running FreeBSD 4.7-Stable and Nagios 1.0.
> >
> > You tested name like "LETTERS"...and my name of host, (that not
> > pinged) was like "LETTERS-DASH-DIGITS" ("3Com-4050").
> >
> > May be, Nagios cant resolve name with DASH?
> >
>
> Ah, good point. But a name with letters&dashes&numbers stills works for
> me.
>
> [net-mgmt]:[/usr/local/libexec/nagios]:>./check_ping -H bko-adm-001 -w
> 3000.0,80% -c 5000.0,100% -p 1
> PING OK - Packet loss = 0%, RTA = 0.28 ms
>
>
> Does ./check_ping -H 3Com-4050.mynet.lan -w 3000.0,80% -c 5000.0,100% -p
> 1 work correctly?
>
> Which version of check_ping are you using? I'm using....
> [net-mgmt]:[/tmp/goober/nagiosplug-1.3-beta1/plugins]:>/usr/local/libexec/nagios/check_ping
> -V
> check_ping (nagios-plugins 1.3.0-alpha1) 1.3

IIRC, legal hostnames used to require a letter as their first character.
Not sure that's true any more, but the plugins are act as if it is.

Here's the comment in utils.c:

/* from RFC-1035
*
* The labels must follow the rules for ARPANET host names. They must
* start with a letter, end with a letter or digit, and have as interior
* characters only letters, digits, and hyphen. There are also some
* restrictions on the length. Labels must be 63 characters or less. */

Now I'll have to go and find what RFC has superceded 1035, and read
that.

--
Karl






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: karl@debisschop.net
Locked