Add slideshow monit monitoring
This commit is contained in:
parent
9dcecfbcf8
commit
79a67fdb32
|
@ -37,4 +37,14 @@
|
|||
"{{ monit_filesystems }}"
|
||||
tags:
|
||||
- monit-config
|
||||
- monit-filesystems
|
||||
- monit-filesystems
|
||||
- name: Setup slideshow monitoring
|
||||
template:
|
||||
src: fim
|
||||
dest: "/etc/monit/conf.d/fim"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
tags:
|
||||
- monit-config
|
||||
- monit-fim
|
||||
|
|
5
roles/monit/templates/fim
Normal file
5
roles/monit/templates/fim
Normal file
|
@ -0,0 +1,5 @@
|
|||
check process fim matching /usr/bin/fim
|
||||
start program = "/usr/bin/systemctl start fim"
|
||||
stop program = "/usr/bin/systemctl stop fim"
|
||||
if does not exist then alert
|
||||
if does not exist for 2 cycles then restart
|
Loading…
Reference in a new issue