How to automate anything with vROPS

The highest level of monitoring in my opinion is automation.  That is when you are leveraging monitoring tools to automate your everyday troubleshooting, capacity, alerting, and monitoring needs.  In theory most people think automation is hands off self-healing.  As in it will just fix itself without any user interaction. To be more realistic, mostly all use cases of monitoring need the final input of the stakeholder to decide what are the next best steps.  Therefore, in most cases, automation when it comes to monitoring is automating the process as much as possible to get you the results as quickly as possible so that the stakeholders can decide what are the best next steps to take. In this guide I will walk you through on how to automate almost any typical engineering and operation task using vROPS alone.  Remember Automation is a timely process to perfect and repeated testing is key.  In the end it will be worth it once successful.

What are the best use cases to Automate?

  1. Troubleshoot any application or VM in minutes! 
  2. Do a complete Health Check or your environment with one click on the button
  3. Manage Capacity in minutes (Growth, inventory, optimization)
  4. Monitor your entire Infrastructure in one pane of glass (vCenter, VMs, Host, Datastores, vSAN, NSX-T, VDI, vIDM, vRNI, Log Insight, vROPS, vRA, etc)

Unrealistic as it sounds, customer that have done PSO engagements with me have already seen that I have proven this can be done with just using vROPS alone.  Feel free to reach out to your TAM to setup a free demo with me to see for yourself. 

Ways you can automate using vROPS

1. Using Automation Central (Easy)

Using the Automation Central feature in vROPS allows you to automate task such as rebooting VMs, reclaiming resources, and rightsizing VMs in a recurring schedule you choose.  Read the guide below on how to use this feature

2. Create an alert and attach an Action to it (Intermediate)

This will answer the question when this problem happens, I want it to automatically fix itself by doing this. There are infinite use cases you can self-automate using this technique. This is a three-step process, however although I show my customers how easy it is to automate anything using this feature, none of my customers end up doing it.  Why?  Because real Engineers rather know the problem happened and get alerted on it and fix the root cause so it doesn’t happen again rather than mask the problem. For example, if vCenter keeps crashing, rather than automate it to automatically reboot each and every time, why not figure out what is causing the crash so it doesn’t happen ever again.

  • Step 2: You will then need to attach a Recommendation with an Action to it.  You can choose from the many predefined Actions available or import more using the vRO management pack which will provide you with endless automated Actions
  • Step 3: Next you will need to edit your default policy and enable the automation of this Action to take place each time the alert happens.  See below screenshot of how to Enable the Automation of the Action

3. Know something is healthy or unhealthy using custom properties (Easy)

Rather than check numerous metrics for a VM for example, management wants just one simple metric for Host, VMs, vCenter, and Datastores on whether it is healthy or unhealthy based on criteria that you can define and control.  This can be done using the guide I already written below.  This automates as many checks as you want and rolls it up to one simple Good or Bad result. You can also use the same technique for tagging purposes and more.

4. Using Super Metrics to create Infinite Metrics (Expert)

If you believe vROPS doesn’t have the metrics you want or the metrics out of the box is not precise enough for you, you can just create a whole new one using a mix of formulas, if-then-else scenarios, and mixture of different metrics and properties comparison to create a brand-new custom metric or property.  For example, you can create a super metric to show you how many Windows 2012 servers you have in a vCenter, how many Host are down in a vCenter, etc. Below are some examples super metrics that I created for customers

You can download more Super Metrics here:

5. Creating a Dashboard to solve a Use case (Intermediate)

Yes, dashboard is automation if created with purpose.  Don’t believe me? Check out the dashboards below that I shared out to solve the scenarios I mentioned earlier.  Anyone can create a dashboard, but it takes a lot of time and testing to create one that will solve an entire use case.  See the below examples to see what I mean.  One of my dashboards could take weeks and months to perfect.


Leave a Comment

Scroll to Top