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 »

Dear Sir,

On Tue, Apr 22, 2003 at 03:34:09PM +0400, martin mcflysr wrote:
> Hello Greg,
>
> Tuesday, April 22, 2003, 3:30:40 PM, you wrote:
>
>
>
> GP> Hmmm, maybe try rebuilding the port?
> I tryed re-make check_ping from tarball source from ftp, but without
> success... :-(
>
>
> And.. i have a 4.8-STABLE, but you - 4.7....
> What version of named are you have? On my machine: named 8.3.4-REL
>
>
> Anybody have a idea?
>

in plugins/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. */

int is_hostname(char *s1)
{

...
if
(strcspn(s1,"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUWVXYZ0123456789-.")!=0)
return FALSE;
/* add a 3 to the string if you really want it to pass */

the is_hostname function returns false if the hostname does _not_ start
with a letter.

You will have to either

. hack this function

. or install a CNAME eg my-beautiful-3Com ... in your DNS


I am rather suprised (being quite thick) that your DNS resolves 3-Com..

>
> thank you.
> --
> Best regards
> from future, HillDale
> martin
>
>

Yours sincerely,


--
------------------------------------------------------------------------
Stanley Hopcroft
------------------------------------------------------------------------

'...No man is an island, entire of itself; every man is a piece of the
continent, a part of the main. If a clod be washed away by the sea,
Europe is the less, as well as if a promontory were, as well as if a
manor of thy friend's or of thine own were. Any man's death diminishes
me, because I am involved in mankind; and therefore never send to know
for whom the bell tolls; it tolls for thee...'

from Meditation 17, J Donne.





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: Stanley.Hopcroft@IPAustralia.Gov.AU
Locked