gera83
(Gerardo)
June 11, 2020, 1:27am
1
Hi guys.
I’ve tried rrdtool, i’ve tried statehist with livestatus. Is rather complex and i’m tired.
Can you tell me how to get the “average consumed mhz” of a ESXi host in the last 30 days.
And then, the “maximum” in the same period?
Same for RAM of a Linux or Windows VM.
This is for 1.6.0 enterprise edition.
Please and thank you!!
gera83
(Gerardo)
June 17, 2020, 11:14pm
2
Hi guys. Anyone? any tip?
For enterprise edition you should use the feature to retrieve the performance data with a livestatus query.
In the linked post i showed the example of a livestatus query to fetch the raw performance data for a service.
This is possible but not so easy to achieve
and it is only working with the Enterprise Edition.
The part with the metrics is missing inside the Livestatus documentation.
Here a small example
GET services
Filter: host_name = <hostname>
Filter: service_description = <service_description>
Columns: rrddata:m1:<performance data name>.max,1,*:<start time>:<end time>:1
OutputFormat: json
As a one liner it looks like this.
lq "GET services\nFilter: host_name = HOSTNAME\nFilter: serv…
With this json data you can do all the calculations wanted. As you mentioned the maximum value or average.
system
(system)
Closed
July 18, 2020, 4:09pm
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.