VMware Aria

 View Only
  • 1.  CPU and/or RAM Increase

    Posted Feb 05, 2025 02:22 PM

    I have a request from my boss's boss, that if it's possible, we want an alert to trigger, if the total CPU count or total RAM count on any VM is increased by more than 20%, it triggers an alert. Having a tough time trying to figure this one out as I can't find a condition for increased total RAM or CPU. This doesn't have to be in Aria, if I can do it in vCenter that would be fine too.



  • 2.  RE: CPU and/or RAM Increase

    Posted Feb 07, 2025 11:00 AM

    Hi by default you can create symtpoms that would trigger when the vcpu number is above X but this is not in percentage.
    You could try to use supermetrics but you will need 
    1) have a constant defined in the supermetric which will actually be the number of vcpus for vm X
    2) compare the constant with the metric Number of CPUs(vcpus) and convert it to %

    the downside of this is that you will probably need multiple similar supermetrics 

    Another option would be to use a powershell script,aria ops rest api and custom properties in aria ops:

    1) will get all the virtualmachines objects from aria ops
    2)will check the Number of CPUs(vcpus) for the last 2 collections cycles  of each vm object
    3)will compare the numbers between the first and the 2nd collection cycles and see if it increased or not
    4)have a custom property something like VcpuIncreased if step 3 detects that vcpu number was increased script will update this property to 1 if is not increase will leave it to 0
    5)You will create an alert that will triger if the value of the custom property is 1