I have scoured the internet for a way to query an ESXi hosts used RAM, and I found one which even included the Used Mhz to boot, in a nice output. My real end goal is to get an XYMon script to monitor the output. I can make the XYMon script, but I have no idea how to get the
IF THEN statement to work.
Here is the output of my query :
[Host] Name : esxi.domain.com [Host] CPU Detail : Processor Sockets: 1, Cores per Socket 4 [Host] CPU Type : Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz [Host] CPU Usage : Used: 836 Mhz, Total: 16028 Mhz [Host] Memory Usage : Used: 59 GB, Total: 64 GB
I need an
IF THAN statement that basically says IF (Used # of RAM) is greater than (Y), THEN.
If it's possible to make the script portable, I would like there to be an IF (Used # of RAM) > (%Total of RAM) THEN. This way I can publish the script and people can use it without modifying the