configuration-templates – Blame information for rev 43
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
27 | office | 1 | ########################################################################### |
2 | ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## |
||
3 | ########################################################################### |
||
4 | |||
5 | # It is surprisingly easy to check virsh qemu-kvm processes using monit. |
||
6 | # It suffices to supply the PID file and to stop and restart the virtual |
||
7 | # machine using virsh. |
||
8 | |||
43 | office | 9 | check process libvirt-example.domain with pidfile /var/run/libvirt/qemu/example.domain.pid |
27 | office | 10 | start program "/usr/bin/virsh start example.domain" |
11 | stop program "/usr/bin/virsh stop example.domain" |
||
12 | |||
43 | office | 13 | check host libvirt-net-example.domain with address example.domain |
27 | office | 14 | start program "/usr/bin/virsh start example.domain" |
15 | stop program "/usr/bin/virsh stop example.domain" |
||
16 | if failed icmp type echo count 5 with timeout 15 seconds then restart |