Skip to content

csehvendel/check_libvirt.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

	Usage:
	
	install virsh on icinga/nagios host
	
	check the nagios user can connect to remote libvirt machine
	 ex. sudo nagios virsh -c qemu+ssh://[email protected]/system --readonly list
	
	If all looks good put the command into your icinga/nagios
	
	check_libvirt -H libvirt-host -m mode -u user <-t type -w warning -c critical>
	
	-H (libvirt host)
		The remote libvirt host
		!!! mandatory argument !!!
	
	-u (username)
		Username to connect to hypervisor
		!!! mandatory argument !!!
	
	-t (connection type)
		currently only qemu+ssh supported, this is default 	
	-m (mode):
		vm_status
			check virtual machines status (running,paused etc...)
			returns WARNING when one ore more VM powerwed off or paused
			returns CRITICAL when one or more VM crashed
	
		pool_status
			check definied storage pools
			returns warning when inactive pool founded
	
		pool_usage
			check all active pool usage
	-w (warning)
		Warning threshonld in percentage
		Default: 80%
	
	-c (critital)
		Critical threshold in percentage
		Default: 95%
	
	You can donate the plugin via PayPal ([email protected])

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages