On Sun, Mar 13, 2005 at 01:21:13PM +0100, Tore Anderson wrote:
> * Finn-Arne Johansen
> > Yes, It seems like that , but It happens over and over again, so It
> > looks like each plugin is doing this. And I did a check while it was
> > running, I think I tcpdump, but I dont remember excatly, and it looked
> > for tjener.intern.intern. and tjener.intern.intern.intern.
> > We tried to change the hostname, so that it didn't give a domain, and
> > saw if that helped, but it didn't. But I'm actually working on this
> > now, I found out that if I set up the configuration for bind before
> > it's installed, things seems to improve. So it looks like we are able
> > to work around the bug, but since it looks up "tjener.intern.intern."
> > and "tjener.intern.intern.intern." I think it _is_ a bug somewhere.
>
> Munin-run calls get_fq_hostname for each invocation, this seems to be
> the problem. Most plugins do not check anything in DNS, and as far as
> I remember "tjener.intern" is the default hostname of Skulelinux
> server..?
>
> get_fq_hostname {
> my $hostname;
> eval {
> require Net::Domain;
> $hostname = Net::Domain::hostfqdn();
> };
> return $hostname if $hostname;
>
> $hostname = `hostname`; # Fall$
> chomp($hostname);
> $hostname =~ s/\s//g;
> return $hostname;
> }
>
> ...this is the function in question. Perhaps Net::Domain is hosed?
> Could you try the Net::Domain::hostfqdn() function when the problem is
> present, and see if that also hangs? Seems strange that this should
> fail if "hostname --fqdn" doesn't, but it's the best suggestion I have
> right now.
I tried it , before bind is installed, and before munin is installed,
and it worked with almost no delay.
After bind is installed and started, during the initialization of the
munin-plugins it takes almost 16 seconds.
If I stop bind, it only takes 0.165 seconds.
After the installation completed the function takes 0.216sec
But so yes, there is a problem with bind if we have not set up our
envrionment before bind is installed. BUt that still doesn't explain
why there is some traces of looking up "tjener.intern.intern." and
"tjener.intern.intern.intern." during initialization of munin-plugins
--
Finn-Arne Johansen
[EMAIL PROTECTED]
http://bzz.no/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]