check_dns plugin failures

Marc Powell marc at ena.com
Tue Aug 16 23:45:15 CEST 2005


It depends on nslookup. Can you run nslookup as the nagios user?

--
Marc

> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Dave Augustus
> Sent: Tuesday, August 16, 2005 1:34 PM
> To: nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] check_dns plugin failures
> 
> Hello Marc,
> 
> OK, I mistakenly entered the wrong command in the email. The correct
one
> is as follows:
> 
> ./check_dns -H mail.kcm.org -s 67.18.139.41 -a 67.18.139.104
> 
> 
> When I run this from the CLI, it fails ALWAYS. However, if I run it
like
> this:
> 
> strace -f ./check_dns -H mail.kcm.org -s 67.18.139.41 -a 67.18.139.104
> 
> I get valid responses embedded in the strace output like this:
> 
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0xb7df7000
> write(1, "DNS OK: 0.257 seconds response t"..., 92DNS OK: 0.257
seconds
> response time kcm.org returns 67.18.139.103|time=0.256953s;;;0.000000
> 
> It appears that check_dns needs something in its environment that it
is
> not getting.( That is just a guess on my part )
> 
> Any ideas?
> 
> Dave
> 
> 
> On Mon, 2005-08-08 at 09:49 -0500, Marc Powell wrote:
> > > Sent: Friday, August 05, 2005 5:59 PM
> > > To: nagios-users at lists.sourceforge.net
> > > Subject: [Nagios-users] check_dns plugin failures
> > >
> > > Hello fellow listers!
> > >
> > > I am having difficulty getting valid responses from the check_dns
> > > plugin. Using both the 1.3 and the new 1.4 series plugins, I get a
> > valid
> > > response one out of every 10 times, making the whole reason for
> > > monitoring useless.
> > >
> > > Any ideas?
> > >
> > > Specs:
> > > nagios-plugins-1.4-1 on CentOS 4 (RHEL 4)
> > > checking a BIND 9 server on CentOS 4 (RHEL 4)
> > >
> > >
> > > --check command is :
> > > ./check_dns -H mail.kcm.org -s 67.18.139.41 -s 67.18.139.104
> >
> > If I missed a response to this already I apologize. I think you mean
to
> > be using --
> >
> > ./check_dns -H mail.kcm.org -s 67.18.139.41 -a 67.18.139.104
> >
> > Only 1 -s parameter is honored.
> >
> > --
> > Marc
> 
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle
> Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing
& QA
> Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at 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


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list