configuration-templates – Blame information for rev 42

Subversion Repositories:
Rev:
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  
9 check process example.domain with pidfile /var/run/libvirt/qemu/example.domain.pid
10 start program "/usr/bin/virsh start example.domain"
11 stop program "/usr/bin/virsh stop example.domain"
12  
42 office 13 check host example.domain-net 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