Hi all,
I'm trying to rewrite some of our monitoring checks so I can monitor our vCloud customers without needing any network connectivity for fe. snmp. I've tried writing something in Perl, but am now stuck at the following point:
I can get to the view of ProcessManager, but I can't get the listProcessesInGuest() method to work. If I execute the following bit of code, I just get the response: Undefined subroutine &GuestOperationsManager::listProcessesInGuest
The relevant piece of code is as follows:
my $serviceContent = Vim::get_service_content(
filter => {'name' => $vmNameInVcenter }
);
my $operationsManager = Vim::get_view(mo_ref => $serviceContent->guestOperationsManager);
my $processManager = Vim::get_view(mo_ref => $operationsManager->processManager);
my $processlist = $processManager->listProcessesInGuest();
Regards,
MrBoogiee