$entry) { // Call VM discovery discover_virtual_machine($valid, $device, [ 'id' => $entry['vmwVmUUID'], 'name' => $entry['vmwVmDisplayName'], 'cpucount' => $entry['vmwVmCpus'], 'memory' => $entry['vmwVmMemSize'] * 1024 * 1024, 'status' => $entry['vmwVmState'], 'os' => $entry['vmwVmGuestOS'], 'type' => 'vmware', 'source' => 'vmware-snmp' ]); } // Clean up removed VMs (our type - vmware-snmp - only, so we don't clean up other modules' VMs) check_valid_virtual_machines($device, $valid, 'vmware-snmp'); //echo(PHP_EOL); // EOF