About

It is surprisingly easy to check virsh qemu-kvm processes using monit. It suffices to supply the PID file and to stop and restart the virtual machine using virsh.

Code

File: http://svn.grimore.org/configuration-templates/monit/debian/templates/libvirt-domain -

###########################################################################
##  Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3      ##
###########################################################################
 
# It is surprisingly easy to check virsh qemu-kvm processes using monit.
# It suffices to supply the PID file and to stop and restart the virtual
# machine using virsh.
 
check process libvirt-example.domain with pidfile /var/run/libvirt/qemu/example.domain.pid
    start program  "/usr/bin/virsh start example.domain"
    stop program  "/usr/bin/virsh stop example.domain"
 
check host libvirt-net-example.domain with address example.domain
    start program  "/usr/bin/virsh start example.domain"
    stop program  "/usr/bin/virsh stop example.domain"
    if failed icmp type echo count 5 with timeout 15 seconds then restart

unix/monit/debian/templates/libvirt-domain.txt ยท Last modified: 2022/04/19 08:28 by 127.0.0.1

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.