Skip to content
Snippets Groups Projects
Commit da133a43 authored by Steve Ryan's avatar Steve Ryan
Browse files

added autostart metric to Vms.pm

parent 291bf240
No related branches found
No related tags found
No related merge requests found
......@@ -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,
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment