diff --git a/lib/Site/Vms.pm b/lib/Site/Vms.pm index 8175d8333f5fdf767d579af2fd197ee0d3cc321a..b35f6744a9adfafec941fa15dd2596f36c62fd2a 100644 --- a/lib/Site/Vms.pm +++ b/lib/Site/Vms.pm @@ -43,6 +43,8 @@ Optional path to the virsh executable. =item active +=item autostart + =item inactive =back @@ -54,9 +56,11 @@ sub handler { my $config = $self->{'config'}; my $virsh_path = $config->{'virsh_path'} || 'virsh'; my $output_active = run_command("$virsh_path list --name"); + my $output_autostart = run_command("$virsh_path list --autostart --name"); my $output_inactive = run_command("$virsh_path list --name --inactive"); my %metrics = ( "active" => $output_active, + "autostart" => $output_autostart, "inactive" => $output_inactive, );