[Nagiosplug-help] Problem with check_dns plugin in chroot
Eric Vollmer
ericv at veranet.net
Wed Sep 25 13:11:05 CEST 2002
Thank you very much for the suggestion. Since nslookup was not in the
chroot it was causing the plugin to fail. Thanks for making me realize what
was missing.
Eric Vollmer
ericv at thebiz.net
At 03:44 PM 9/25/2002 -0400, Subhendu Ghosh wrote:
>On Wed, 25 Sep 2002, Eric Vollmer wrote:
>
> > Hello, I am currently in the process of migrating from NetSaint to Nagios.
> > On the FreeBSD 4.6.2 machine I keep getting:
> > '/kernel: pid PID#, uid 1002: exited on signal 11 (core dumped).
> >
> > I am running Nagios within a chroot which worked fine with the old NetSaint
> > on FreeBSD 4.3. If I run the check_dns command from the prompt outside
> > the chroot everything works fine.
> >
> > # ./check_dns -v -H www.yahoo.com -s 216.238.0.10
> > /usr/sbin/nslookup www.yahoo.com 216.238.0.10
> > Server: nscache1.thebiz.net
> >
> > Address: 216.238.0.10
> >
> >
> >
> > Non-authoritative answer:
> >
> > Name: www.yahoo.akadns.net
> >
> > Addresses: 66.218.71.86, 66.218.71.81, 66.218.71.87, 66.218.71.83
> >
> > DNS ok - 1 seconds response time, Address(es) is/are 66.218.71.86,
> > 66.218.71.81, 66.218.71.87, 66.218.71.83
> >
> >
> >
> > Inside the chroot it fails. This is what that looks like.
> >
> > # ./check_dns -v -H www.yahoo.com -s 216.238.0.10
> > /usr/sbin/nslookup www.yahoo.com 216.238.0.10
> > Segmentation fault (core dumped)
> >
> > This is what is in my /etc directory of the chroot
> > group
> > login.conf
> > master.passwd
> > passwd
> > pwd.db
> > rc.d
> > services
> > localtime
> > mail
> > pam.conf
> > protocols
> > rc
> > resolv.conf
> > spwd.db
> >
> >
> > Has anyone else seen the same issues in a similar environment? Any
> help would
> > be greatly appreciated.
> >
> > Eric Vollmer
> > ericv at thebiz.net
> >
>
>Can you run "/usr/sbin/nslookup www.yahoo.com 216.238.0.10" within the
>chroot env?
>
>
>--
>-sg
>
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>_______________________________________________
>Nagiosplug-help mailing list
>Nagiosplug-help at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
More information about the Help
mailing list