monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problems monitoring dnsmasq


From: Martin Pala
Subject: Re: problems monitoring dnsmasq
Date: Sun, 14 May 2006 22:19:44 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060205 Debian/1.7.12-1.1

Can you send the tcp dump of the test?

Thanks,
Martin

Stephane Billiart wrote:
Hello all,

I'm trying to monitor a dnsmasq server, a very simply DNS forwarder
        http://www.thekelleys.org.uk/dnsmasq/doc.html
with monit 2.8 and I only get errors:

May 14 18:06:38 soekris monit[31057]: DNS: invalid reply code -- error occured May 14 18:06:38 soekris monit[31057]: 'ipcopdns' failed protocol test [DNS] at INET[10.0.0.1:53] via UDP May 14 18:06:38 soekris monit[31057]: DNS: invalid reply code -- error occured May 14 18:06:38 soekris monit[31057]: 'ipcopdns' failed protocol test [DNS] at INET[10.0.0.1:53] via TCP
My monitrc contains:
check host ipcopdns address 10.0.0.1
  if failed port 53 type tcp proto dns then alert
  if failed port 53 type udp proto dns then alert

My ISP DNS server passes the test (I guess it runs ISC BIND).

I am no DNS expert but I poked a bit in protocols/dns.c to see the
'invalid reply code' (response[3] on in the test on line 144) and
got 0x83.
I also tried disabling the test completely, then I get a 'no answer
records' error.

I see two possibilities: either the request in protocols/dns.c is a valid,
altough unusual request that only some servers handle correctly or the
verifications on the response are too specific.

Before I investigate any further, I thought somebody on the list might
have a fix.

Thanks,





reply via email to

[Prev in Thread] Current Thread [Next in Thread]