check_cluster plugin question
Posted: Fri Jan 20, 2012 3:37 pm
I've spent a good hour or so trying to figure it out, maybe you guys know the answer.
The check_cluster plugin is defined like this:
For example, I have a cluster with three nodes (-h), and I want to go critical if only zero or one are 'ok' (i.e. one node is down).
That's all well and good, but for services, you have the same options (assuming three services):
What if I only want to alarm if ONE of those services is down - a SPECIFIC service...the data points (-d) options only provide the total number, doesn't seem to be a way to specify something.
For example, if I am monitoring nodes, I can define -d however I want:
The plugin doesn't care what the datapoint is called. Is there any way to make it care?
The check_cluster plugin is defined like this:
Code: Select all
check_cluster -s/-h -w -c -dCode: Select all
check_cluster -h -c 0:1 -d 0,0,0Code: Select all
check_cluster -s -c 0:1 -d 0,0,0For example, if I am monitoring nodes, I can define -d however I want:
Code: Select all
-d 0,0,0 == -d node1.test.com,node2.test.com,node3.test.com