cancel
Showing results for 
Search instead for 
Did you mean: 
Create Post
Level 10

How to monitor number of VMs in a folder?

We have an automated system that creates VMs in a particular folder.  I would like to be able to monitor the number of VMs in that folder every few hours or so.  In VMAN, I can see the total number of VMs across my environment, but I haven't figured out how to filter on a particular vCenter and folder.  Any help would be appreciated.

Thanks,

Jon

0 Kudos
2 Replies
Level 12

Jon,

you can search for VMs by a vm.folder.name attribute (and/or by cluster.name, host.name if there's the same folder name in other vCenters). How to do that? By Trends or Alerts.

A) Trends (VMs per Folder)

- perform a search query: vm.folder.name:* (or vm.folder.name:Folder_name to get VMs from a particular Folder_name folder only) and press "Trend Results" button

pastedImage_8.png

- if you specified the folder name then just save the newly created trend. Otherwise set Segmentation to /virtualMachine/folder/name.

pastedImage_12.png

And here's result:
pastedImage_13.png

Note: Trends are evaluated every four hours. If you want to change the interval then it's necessary to change the Hourly Interval for Trend Execution property in Setup - Advanced Setup - System Properties menu.

Similarly you can create a new alert. Feel free to ask for further help.

Level 10

Perfect!  Thank you for the help!

0 Kudos