Purpose
In some cases, it may not make sense to have a health check run on all nodes in a cluster, such as:
- Nodes with heterogeneous hardware
- Nodes with different disk partitions
Since BCM 8.x, we can limit which nodes receive specific health checks using nodeexecutionfilters.
In this example, we will modify the megaraid
health check to run only on a specific set of nodes rather than all cluster nodes.
Steps
1. First, go into the nodeexecutionfilters submode of the megaraid check:
# cmsh
% monitoring setup use megaraid
% nodeexecutionfilters
2. Next, remove the existing filter: % remove mega\ raid
3. Create a new filter for your specific set of nodes.
- For example, let’s say you only want the check to run on
node001
throughnode003
- We can add those nodes to a filter, in this example
onlythesenodes
, and set the nodes in that filter:% add node onlythesenodes
% set nodes node00[1-3]
% commit
4. Afterward, you can verify which nodes the check will run on using the nodes
command while in the health check’s definition:
% monitoring setup use megaraid
% nodes