Use both. That way, you know which the problem is...
If just the name is down, and the IP is up, you know DNS is an issue.
If both are down, you know your site is more likely.
Could also be a network thing, but, you can at least distinguish DNS issue from other issues...


On Oct 23, 2008 8:55am, Joshua Wells <[EMAIL PROTECTED]> wrote:


Yes that was my thought. Plus it gives me the added benefit of not

having to change the host definition if the IP address of the domain

changes. If I am checking a website to be sure it is up and it becomes

available only by IP address because of a DNS issue I would want to be

made aware of that. That wouldn't happen if I defined the host by IP

address instead of URL.





-----Original Message-----

From: Patrick Morris [mailto:[EMAIL PROTECTED]

Sent: Wednesday, October 22, 2008 3:43 PM

To: Andy Shellam

Cc: Josh Wells; nagios

Subject: Re: [Nagios-users] How do I check if a website is up?



On Tue, 21 Oct 2008, Andy Shellam wrote:



> Hi Josh,

>

> You can, I believe, define a host using it's DNS name, however I and

> I'm sure the rest of the community would discourage that for the

> simple reason that if the DNS doesn't resolve, that host will be

deemed down.



FWIW, I almost always define hosts by DNS name rather than IP address

wherever possible. It's easier to maintain and you get the added

benefit of being alerted if DNS breaks.



-------------------------------------------------------------------------

This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge

Build the coolest Linux based applications with Moblin SDK & win great
prizes

Grand prize is a trip for two to an Open Source event anywhere in the
world

http://moblin-contest.org/redirect.php?banner_id=100&url=/

_______________________________________________

Nagios-users mailing list

Nagios-users@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

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nagios-users mailing list
Nagios-users@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

Reply via email to