VMware Cloud Community
cdhunter
Enthusiast
Enthusiast

Creating Datastore capacity reports

I've had a look through the forum but can't find information on how to creating automatic reports (to be emailed) based on Datastores that are near capacity.

I could set this within vCenter but would rather create a report in vCOPs.  The version I am using is 5.8.1.

Any ideas?

Thanks.

7 Replies
MrJohnson
Enthusiast
Enthusiast

Hello,

Did you ever figure this out?  I'm looking for the same thing.

0 Kudos
mark_j
Virtuoso
Virtuoso

vR Ops v6 is a game changer for this. You could not potentially make this report in the GUI instead of manually forwarding and editing XMLs on the UI VM.

If you find this or any other answer useful please mark the answer as correct or helpful.
0 Kudos
malhi_o
Enthusiast
Enthusiast

If I understood your question. you can create your alert from Alert definitions then add role in the notification section. select the scope that will be monitored then from notification trigger select the alert that you crated (storage capaticy less than x%) that will trigger automatically on the object. Notifaction will send to you or to other users

0 Kudos
iiToby
Enthusiast
Enthusiast

Grab the PowerCLI script from here Script Get DataStore Usage Report on email.

Follow the instructions:

Contents of path

DataStoreUsageReport.ps1 - Main script file which need to execute from path.

email_id.txt – Creat .txt file at script location and add recipients email ID in this file.

vc_list.txt – Creat .txt file at script location and add correct VC name from which have to collect datastore details.

\Report - Where output will be save.

Script Description: This script will connect to multiple VCs > colleact Datastore Usage Report > Save OutPut as HTML format > Send email.

Output will show in RED if any datasotre's Free Space % is less then 20

You will get emailed a HTML file like the example attached to this post.

You can tweak it if you like

Remember to thank the author who is not me - Amol S Patil's Profile

Cheers

MrJohnson
Enthusiast
Enthusiast

This is awesome... I'll have to check it out.

Do you know if one is available for CPU and Memory on the ESXi Host?

0 Kudos
MrJohnson
Enthusiast
Enthusiast

I just ran a test with the script and it is AWESOME!

I'm still looking for one that will do Memory and CPU.  Can you know of one?

0 Kudos
iiToby
Enthusiast
Enthusiast

Its difficult to get 'Capacity' out of CPU and Memory without many data points and analytics, where Datastore Capacity reports are easy because its just "how full is my DS?"

vCOPs and Veeam One are great products for this type of Analytics but its does take a while to get some useful data out of them as they need to get lots of datapoints (about 2 months)

I suggest you look further into a great script called vCheck - http://www.virtu-al.net/vcheck-pluginsheaders/vcheck/

Its a bit extensive and you would probably want to read the doco a few times but this can give a really good daily snapshot of your environment.

Configure it to send a daily report via email, collect those reports and you can use excel to do some trending and capacity from that data.

Highly suggest you invest in vCenter Operations Manager (Or vRealize Operations) there is a free edition but that is concerned with what is happening right now and not capacity and trending (what is happening tomorrow) there is a eval edition for 90 days or 60 days which should allow it to prove its usefulness.

@iIToby

0 Kudos