How to check Internet access and/or DNS?

Hugo van der Kooij hvdkooij at vanderkooij.org
Wed Jan 25 00:09:19 CET 2006


On Tue, 24 Jan 2006, Guy B. Purcell wrote:

>
> On Jan 23, 2006, at 23:56, Marc Haber wrote:
>
> > some services, most notably DNS, depend on the Internet to be
> > available. I'd like to express this in Nagios configuration. I'd
> > probably need to have a service "Internet" for that where my DNS
> > service definitions could depend on to avoid DNS being reported down
> > in case of an internet outage.
> >
> > Any idea how to do this elegantly? I don't find the idea of pinging my
> > ISP's router at the national Internet Exchange Point very appealing.
>
> Configure the "parents" field in the host definition for the host
> running the service you're checking across the Internet.  It's parent
> should be your boarder router.  You'll need to make a host def. for
> that router, as well as a service to check on it (use the "dummy"
> service for that).  With such a setup, there'll be no real periodic
> check of the router, but it will be ping'd if your across-the-
> Internet service fails, and you'll get just one notification (either
> router down or remote service unavailable).

There are propably a dozen ways or more to do this.

My internet link is a fake host which has the IP adres of my DSL router.
On it I have defined a check which will see if a tunnel is still active.
(This tunnel is an accurate indication of my connectivity.)

The IPv6 tunnel is similarly defined giving me some indication wether or
not internet is available.

On my to-do list is to write a passive check that will turn snmp traps for
these tunnels into host down and host up events that I can feed to nagios.

Hugo.

-- 
	I hate duplicates. Just reply to the relevant mailinglist.
	hvdkooij at vanderkooij.org		http://hvdkooij.xs4all.nl/
		Don't meddle in the affairs of magicians,
		for they are subtle and quick to anger.


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list