mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
fix eventlog for libvirt vm addition
git-svn-id: http://www.observium.org/svn/observer/trunk@2093 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -77,7 +77,7 @@ if ($config['enable_libvirt'] == '1' && $device['os'] == "linux" )
|
||||
mysql_query("INSERT INTO vminfo (device_id, vm_type, vmwVmVMID, vmwVmDisplayName, vmwVmGuestOS, vmwVmMemSize, vmwVmCpus, vmwVmState) VALUES (" . $device["device_id"] . ", 'libvirt',
|
||||
'" . $dom_id . "', '" . mres($vmwVmDisplayName) . "', '" . mres($vmwVmGuestOS) . "', '" . $vmwVmMemSize . "', '" . $vmwVmCpus . "', '" . mres($vmwVmState) . "')");
|
||||
echo("+");
|
||||
log_event("Virtual Machine added: $vmwVmDisplayName ($vmwVMMemSize MB)", $device, 'vm', mysql_insert_id());
|
||||
log_event("Virtual Machine added: $vmwVmDisplayName ($vmwVmMemSize MB)", $device, 'vm', mysql_insert_id());
|
||||
} else {
|
||||
$row = mysql_fetch_assoc($result);
|
||||
if ($row['vmwVmState'] != $vmwVmState
|
||||
|
||||
Reference in New Issue
Block a user