Manage monit states
monit_enable_service_monitoring: monit.monitor: - name: service monit_disable_service_monitoring: monit.unmonitor: - name: service
Note
Use of these states require that the monit
execution module is available.
Get the summary from module monit and try to see if service is being monitored. If not then monitor the service.
Get the summary from module monit and try to see if service is being monitored. If it is then stop monitoring the service.
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/states/all/salt.states.monit.html