monit-general
[Top][All Lists]
Advanced

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

problems monitoring dnsmasq


From: Stephane Billiart
Subject: problems monitoring dnsmasq
Date: Sun, 14 May 2006 18:51:07 +0200
User-agent: Mutt/1.5.11+cvs20060403

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,

-- 
St├ęphane Billiart                      http://perso.wanadoo.fr/billiart/




reply via email to

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