Go to file
2022-01-28 12:16:58 +03:00
defaults add monit service role 2022-01-28 12:16:58 +03:00
handlers add monit service role 2022-01-28 12:16:58 +03:00
meta add monit service role 2022-01-28 12:16:58 +03:00
tasks add monit service role 2022-01-28 12:16:58 +03:00
README.md add monit service role 2022-01-28 12:16:58 +03:00

Setup monit service

monit:            
  configs:
    - name: bird
      data: |
        check process radosgw
            matching "radosgw"
            if does not exist for 1 cycles then exec "/usr/bin/systemctl stop bird"
        
        check process nginx
            matching "nginx"
            if does not exist for 1 cycles then exec "/usr/bin/systemctl stop bird"
        check_interval: "1"