configuration-templates – Diff between revs 27 and 42
?pathlinks?
Rev 27 | Rev 42 | |||
---|---|---|---|---|
1 | ########################################################################### |
1 | ########################################################################### |
|
2 | ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## |
2 | ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## |
|
3 | ########################################################################### |
3 | ########################################################################### |
|
4 | |
4 | |
|
5 | # It is surprisingly easy to check virsh qemu-kvm processes using monit. |
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 |
6 | # It suffices to supply the PID file and to stop and restart the virtual |
|
7 | # machine using virsh. |
7 | # machine using virsh. |
|
8 | |
8 | |
|
9 | check process example.domain with pidfile /var/run/libvirt/qemu/example.domain.pid |
9 | check process example.domain with pidfile /var/run/libvirt/qemu/example.domain.pid |
|
10 | start program "/usr/bin/virsh start example.domain" |
10 | start program "/usr/bin/virsh start example.domain" |
|
11 | stop program "/usr/bin/virsh stop example.domain" |
11 | stop program "/usr/bin/virsh stop example.domain" |
|
12 | |
12 | |
|
13 | check host example.domain with address example.domain |
13 | check host example.domain-net with address example.domain |
|
14 | start program "/usr/bin/virsh start example.domain" |
14 | start program "/usr/bin/virsh start example.domain" |
|
15 | stop program "/usr/bin/virsh stop 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 |
16 | if failed icmp type echo count 5 with timeout 15 seconds then restart |
|
17 | |
17 | |
|
18 |
|
18 |
|
|
19 | |
19 | |
|
20 | |
20 | |
|
21 | |
21 | |