Hello,
Due to performance problems with Perl SDK & inter-OS Problems transferring Powershell Output onto a Linux Machine I've decided to query the VCenter DB directly.
Some Background-Information:
I want to monitor the "Active Mem Usage" of a virtual machine with Nagios/Check_MK, so I tried to use Perl SDK, but retrieving the Realtime-Performance Data of nearly 400 VMs takes too much time.
When using PowerCLI on the VCenter Management Server it only takes 20 seconds to retrieve all the data. But then I dont know how to transfer the powershell output from a windows machine to the linux nagios server.
I think the best way would be a SQL-Query to get all the "Active Mem Usage" Data directly from the VCenter Database. But I dont know how to build it. I figured out the CounterID for active mem usage (25). But in which Table the realtime performance data is stored?
Is it dbo.VPXV_HIST_STAT_DAILY or dbo.VPX_HIST_STAT1 or any else? When quering VPX_HIST_STAT1 I dont get the right value. It differs from the output of the Perl SDK & Powershell Scripts.
So which is the right Table for realtime performance data?
Hopefully, you can help me