Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
Your review has been submitted and is pending approval.
Runs "virsh list" and returns the available vms.
Current Version
1.0
Last Release Date
2010-12-17
Owner
Karl J Rink
Download URL
https://exchange.nagios.org/wp-content/uploads/project-files/2010/12/check_kvm
License
GPL
Compatible With
Qemu/Kvm Nagios Integration
Install: Put script in nagios client directory libexec/check_kvm As a nagios nrpe plugin, add the following line to your client nrpe.cfg command[virt_check_kvm]=/opt/nagios/libexec/check_kvm No sudo is necessary if you simply add nagios user to the libvirt group libvirtd:x:118:nagios
You do not tell us how to install the plugin, YOu don't tell us if we install on the Nagios Server, the client or both. Are we suppose to edit the commands.cfg file. What is the command when we do get it working define command { command_name check_kvm or check_nrpe command_line $USER1$/check_nrpe!virt_check_kvm -H $HOSTADDRESS$ -c $ARG1$ } So what is it? Please explain this is a very very important plugin for me. Thanks,
I tried this on Fedora and Power servers. both works well. number of running guests shows OK number of Paused guests shows Warning number of shutdown guests shows Critical Disadvantage : user has no right to define the criticality.
The script works well, the only issues are with libvirt permissions, not with the script. I noticed that it truncated the "shut down" status to just "shut", so I tweaked the awk command from {print $2":"$3} to {print $2":"$3" "$4} This prints an extra space for one word commands, but I couldn't see a concise way to insert an conditional.
You must be logged in to submit a review.
To:
From: