Xymon Mailing List Archive search

DNS lookup occurs even with noconn

5 messages in this thread

list Ford Alan · Fri, 11 May 2012 00:21:14 +0000 ·
Hi all,

I have databases and webpages in my hosts.cfg like this..


0.0.0.0        Oracle_Enterprise_Manager # prefer noping noconn https://ictoem01.stanwell.com:7801/em/console  # Obviously a web page

0.0.0.0           soapro # prefer noconn  #  This is an oracle database which I have tests sent to.


What I find is that even with noconn, it still attempts to resolve the server name ie Oracle_Enterprise_Manager


I have managed to fix this by modifying xymonnet.c on line 839

From this...


if (!h->testip && (dnsmethod != IP_ONLY)) add_host_to_dns_queue(h->hostname);


to this


if (!h->testip && !h->noconn && (dnsmethod != IP_ONLY)) add_host_to_dns_queue(h->hostname);

Any comments or possible breaking of Xymon??

If my interpretaion is what is expected for the noconn test maybe Henrik could put this in as a bug fix  :)

Thanks

Alan Ford
Senior Database Administrator
Com Serv - Information Communications and Technology
Stanwell Corporation Limited

www.stanwell.com<http://www.stanwell.com>;


This email is to be read subject to the email disclaimer located at http://www.stanwell.com/email-disclaimer.aspx
list Jeremy Laidman · Fri, 11 May 2012 15:49:22 +1000 ·
What if you add "testip"?
quoted from Ford Alan

On Fri, May 11, 2012 at 10:21 AM, FORD Alan <user-eb925835b8b9@xymon.invalid> wrote:
 Hi all,****

** **

I have databases and webpages in my hosts.cfg like this..****

** **

**0.0.0.0     **   Oracle_Enterprise_Manager # prefer noping noconn
https://ictoem01.stanwell.com:7801/em/console  # Obviously a web page****

**0.0.0.0           **soapro # prefer noconn  #  This is an oracle
database which I have tests sent to.****

** **

** **

What I find is that even with noconn, it still attempts to resolve the
server name ie Oracle_Enterprise_Manager****

** **

I have managed to fix this by modifying xymonnet.c on line 839****

From this…****

** **

if (!h->testip && (dnsmethod != IP_ONLY))
add_host_to_dns_queue(h->hostname);****

** **

to this****

** **

if (!h->testip && !h->noconn && (dnsmethod != IP_ONLY))
add_host_to_dns_queue(h->hostname);****

** **

Any comments or possible breaking of Xymon??****

** **

If my interpretaion is what is expected for the noconn test maybe Henrik

could put this in as a bug fix  J****
quoted from Ford Alan

** **

Thanks****

* *

*Alan Ford*

*Senior Database Administrator*

*Com Serv - Information Communications and Technology*

*Stanwell Corporation Limited*

** **

www.stanwell.com****
quoted from Ford Alan

** **

This email is to be read subject to the email disclaimer located at
http://www.stanwell.com/email-disclaimer.aspx

list Ford Alan · Fri, 11 May 2012 05:57:43 +0000 ·
Hmm... Maybe. Will have to try it :)

It would have to be something like this then

0.0.0.0    soapro  #   testip noconn

Seems a bit counter intuitive... lol
quoted from Jeremy Laidman


From: Jeremy Laidman [mailto:user-71895fb2e44c@xymon.invalid]
Sent: Friday, 11 May 2012 3:49 PM
To: FORD Alan
Cc: xymon at xymon.com
Subject: Re: [Xymon] DNS lookup occurs even with noconn

What if you add "testip"?
On Fri, May 11, 2012 at 10:21 AM, FORD Alan <user-eb925835b8b9@xymon.invalid<mailto:user-eb925835b8b9@xymon.invalid>> wrote:
Hi all,

I have databases and webpages in my hosts.cfg like this..


0.0.0.0        Oracle_Enterprise_Manager # prefer noping noconn https://ictoem01.stanwell.com:7801/em/console  # Obviously a web page

0.0.0.0           soapro # prefer noconn  #  This is an oracle database which I have tests sent to.


What I find is that even with noconn, it still attempts to resolve the server name ie Oracle_Enterprise_Manager


I have managed to fix this by modifying xymonnet.c on line 839

From this...


if (!h->testip && (dnsmethod != IP_ONLY)) add_host_to_dns_queue(h->hostname);


to this


if (!h->testip && !h->noconn && (dnsmethod != IP_ONLY)) add_host_to_dns_queue(h->hostname);

Any comments or possible breaking of Xymon??

If my interpretaion is what is expected for the noconn test maybe Henrik could put this in as a bug fix  :)

Thanks

Alan Ford
Senior Database Administrator
Com Serv - Information Communications and Technology
Stanwell Corporation Limited

www.stanwell.com<http://www.stanwell.com>;


This email is to be read subject to the email disclaimer located at http://www.stanwell.com/email-disclaimer.aspx
list Japheth Cleaver · Fri, 11 May 2012 02:00:22 -0700 (PDT) ·
quoted from Ford Alan
Hmm... Maybe. Will have to try it :)

It would have to be something like this then

0.0.0.0    soapro  #   testip noconn

Seems a bit counter intuitive... lol

Don't forget that xymon does more than just ping test (which is all
'noconn' modifies). There are a lot of scenarios where ICMP traffic is
blocked but you'll still be able to hit --thus, test-- port 80 or some
other service.

For those hosts, xymon still needs to be able to look up the IP address if
all it has is a name, so if you want to prevent lookup attempts on the
fake name you're going to need both tags.

Think of "testip" as "doesnotresolve"


HTH,

-jc
list Ford Alan · Thu, 17 May 2012 01:16:56 +0000 ·
Ok I finally got round to testing it.

To stop DNS lookup on a made up client name you need...

0.0.0.0    soapro  #   testip noconn

Sweet!!

Thanks all!!
quoted from Ford Alan

From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of FORD Alan
Sent: Friday, 11 May 2012 3:58 PM
To: 'Jeremy Laidman'
Cc: xymon at xymon.com
Subject: Re: [Xymon] DNS lookup occurs even with noconn

Hmm... Maybe. Will have to try it :)

It would have to be something like this then

0.0.0.0    soapro  #   testip noconn

Seems a bit counter intuitive... lol


From: Jeremy Laidman [mailto:user-71895fb2e44c@xymon.invalid]
Sent: Friday, 11 May 2012 3:49 PM
To: FORD Alan
Cc: xymon at xymon.com<mailto:xymon at xymon.com>
Subject: Re: [Xymon] DNS lookup occurs even with noconn

What if you add "testip"?
On Fri, May 11, 2012 at 10:21 AM, FORD Alan <user-eb925835b8b9@xymon.invalid<mailto:user-eb925835b8b9@xymon.invalid>> wrote:
Hi all,

I have databases and webpages in my hosts.cfg like this..


0.0.0.0        Oracle_Enterprise_Manager # prefer noping noconn https://ictoem01.stanwell.com:7801/em/console  # Obviously a web page

0.0.0.0           soapro # prefer noconn  #  This is an oracle database which I have tests sent to.


What I find is that even with noconn, it still attempts to resolve the server name ie Oracle_Enterprise_Manager


I have managed to fix this by modifying xymonnet.c on line 839

From this...


if (!h->testip && (dnsmethod != IP_ONLY)) add_host_to_dns_queue(h->hostname);


to this


if (!h->testip && !h->noconn && (dnsmethod != IP_ONLY)) add_host_to_dns_queue(h->hostname);

Any comments or possible breaking of Xymon??

If my interpretaion is what is expected for the noconn test maybe Henrik could put this in as a bug fix  :)

Thanks

Alan Ford
Senior Database Administrator
Com Serv - Information Communications and Technology
Stanwell Corporation Limited

www.stanwell.com<http://www.stanwell.com>;


This email is to be read subject to the email disclaimer located at http://www.stanwell.com/email-disclaimer.aspx