mirror of https://github.com/mikaku/Monitorix.git
added a message in 'libvirt.pm' if the MAC address of a VM is not found
This commit is contained in:
parent
2e0d232016
commit
4866ad410c
|
@ -252,6 +252,11 @@ sub libvirt_update {
|
|||
}
|
||||
close(IN);
|
||||
}
|
||||
if(!$vnet) {
|
||||
logger("$myself: invalid MAC address '$vn' in '$vm'.");
|
||||
next;
|
||||
}
|
||||
|
||||
if(open(IN, "$libvirt->{cmd} domifstat $vm $vnet |")) {
|
||||
my $r = 0;
|
||||
my $w = 0;
|
||||
|
|
Loading…
Reference in New Issue