Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
I'm looking for a simple solution to check the availability of my network connection.
What I am trying to do is something like check_http google.com
if google.com is reachable => network connection ok
if google.com is not reachable => network connection down
The Problem is that sometimes google.com itself is down
My solution would be to check
if google.com and yahoo.com (two websites) are not reachable => network connection down
Hm, but parents are relationships between physical hosts??
Within hosts.cfg I can only define hosts with a required address Field.
How can I define "My Network" as a host with the Parents Google and Yahoo %-/ (confused)?
You would create hosts for google and yahoo, then assign them as parents to your current hosts with the "parent" configuration directive mentioned in tmcdonald's post.
But, I want Nagios to tell me that the Internet is down (because google and yahoo are unreachable)
I do not want Nagios to tells me that Host XY ist down because the Internet is down.
Hence I still think, that parent/child solution is not what I am searching for
Better would be a service on the Nagios Host that probes via something like check_http