Monitoring two IP recommendation?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Monitoring two IP recommendation?

Post by emartine »

Does anyone have a recommendation for monitoring two or more IP addresses where when both are down it is critical but so long as one of them is up the service is ok?
I have clusters of servers that I have been asked to monitor (some are groups of two IP Addresses while some have 3 IP addresses and some have 4 IP addresses clustered). These clusters will not have dns names.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Monitoring two IP recommendation?

Post by jolson »

You'll be interested in reading through this document: https://assets.nagios.com/downloads/nag ... sters.html

Let me know if you have any questions!
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Monitoring two IP recommendation?

Post by emartine »

In that document it is necessary to define each host individually but I have host with multiple intefaces which are not always on. So the document wouldn't work. Let me know if I am misunderstanding the doc.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Monitoring two IP recommendation?

Post by Box293 »

They don't have to be host objects, they could be multiple service objects assigned to the one host.

So the key to the check_clusters plugin is that you define how many of these services are allowed to be in a non-ok state (exit code is not 0) before the check_clusters plugin reports a critical status.

Code: Select all

./check_cluster -s -l "My Test Cluster" -w 3 -c 5 -d 0,0,0,1,2,0,2,0,0,0
CLUSTER OK: My Test Cluster: 7 ok, 1 warning, 0 unknown, 2 critical

./check_cluster -s -l "My Test Cluster" -w 3 -c 5 -d 1,1,1,1,2,2,2,0,0,0
CLUSTER CRITICAL: My Test Cluster: 3 ok, 4 warning, 0 unknown, 3 critical
The comma separated list will be the on-demand macros which reference the existing services that make up the "cluster".
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked