Skip to main content
Ask Question
Cluster Monitoring
Asked a question 3 months ago

How do I trigger a script when a node comes up

Where am I?

In Bright Computing, Inc. you can ask and answer questions and share your experience with others!

How do I trigger a script when a node comes up?

Is it possible to setup a trigger event (run a script) upon node becoming UP and available?

Yes, this is possible.

You can define a custom action which will run the custom-script and assign it to the pass action of the "DeviceIsUP" health check:

# cmsh
% monitoring actions
% add custom-action
% set command /path/to/custom/script
% set runon node
% commit
% setup healthconf default # assuming you're using the default category
% use deviceisup
% set passactions custom-action
% commit