Use both.  That way, you know which the problem is...  <br />If just the name is down, and the IP is up, you know DNS is an issue.<br />If both are down, you know your site is more likely.<br />Could also be a network thing, but, you can at least distinguish DNS issue from other issues...<br /><br /><br />On Oct 23, 2008 8:55am, Joshua Wells <josh.wells@lionbank.com> wrote:<br />> <br />> <br />> Yes that was my thought. Plus it gives me the added benefit of not<br />> <br />> having to change the host definition if the IP address of the domain<br />> <br />> changes. If I am checking a website to be sure it is up and it becomes<br />> <br />> available only by IP address because of a DNS issue I would want to be<br />> <br />> made aware of that. That wouldn't happen if I defined the host by IP<br />> <br />> address instead of URL.<br />> <br />> <br />> <br />> <br />> <br />> -----Original Message-----<br />> <br />> From: Patrick Morris [mailto:patrick.morris@hp.com]<br />> <br />> Sent: Wednesday, October 22, 2008 3:43 PM<br />> <br />> To: Andy Shellam<br />> <br />> Cc: Josh Wells; nagios<br />> <br />> Subject: Re: [Nagios-users] How do I check if a website is up?<br />> <br />> <br />> <br />> On Tue, 21 Oct 2008, Andy Shellam wrote:<br />> <br />> <br />> <br />> > Hi Josh,<br />> <br />> ><br />> <br />> > You can, I believe, define a host using it's DNS name, however I and<br />> <br />> > I'm sure the rest of the community would discourage that for the<br />> <br />> > simple reason that if the DNS doesn't resolve, that host will be<br />> <br />> deemed down.<br />> <br />> <br />> <br />> FWIW, I almost always define hosts by DNS name rather than IP address<br />> <br />> wherever possible.  It's easier to maintain and you get the added<br />> <br />> benefit of being alerted if DNS breaks.<br />> <br />> <br />> <br />> -------------------------------------------------------------------------<br />> <br />> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br />> <br />> Build the coolest Linux based applications with Moblin SDK & win great prizes<br />> <br />> Grand prize is a trip for two to an Open Source event anywhere in the world<br />> <br />> http://moblin-contest.org/redirect.php?banner_id=100&url=/<br />> <br />> _______________________________________________<br />> <br />> Nagios-users mailing list<br />> <br />> Nagios-users@lists.sourceforge.net<br />> <br />> https://lists.sourceforge.net/lists/listinfo/nagios-users<br />> <br />> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br />> <br />> ::: Messages without supporting info will risk being sent to /dev/null<br />>