If we want to take an action of lifting a service or stopping it after receiving a data from a module, we have the post-conditions. The data module format would be:
module_begin module_name Name module_type type module_exec execution module_condition < "PATH/script" module_end
We can either generate a script manually to start/stop the service, or in case of startup, simply put the service .exe to start again. If you want more information about this, visit our wiki:
https://pandorafms.com/manual/en/documentation/03_monitoring/02_operations#conditional_monitoring
In the case that we want to raise a service/process at the time that it is down, we need to create a watchdog module in the following way:
module_begin module_name Name module_type Type module_proc process module_description desc module_async yes module_watchdog yes module_user_session yes module_start_command "START COMMAND ROUTE" module_startdelay 3000 module_retrydelay 2000 module_retries 5 module_end
Siendo para los servicios:
module_begin module_name nombre module_type tipo module_service Servicio module_description desc module_async yes module_watchdog yes module_end
If you want more information about it visit our wiki: