Build precise queries to find exactly what you need
Press ESC to close
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
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:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!