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.
Monitoring two IP recommendation?
Re: Monitoring two IP recommendation?
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!
Let me know if you have any questions!
Re: Monitoring two IP recommendation?
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.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Monitoring two IP recommendation?
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.
The comma separated list will be the on-demand macros which reference the existing services that make up the "cluster".
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 criticalAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.