In Datacenter > Summary we have a Resources tab that give us combined percentages in % of all nodes in CPU, RAM and Storage usage.
I want to get these values with pvesh in order to create some nagios checks.
Running the following commands I can get the values somehow
CPU
pvesh get /cluster/resources
looking at cpu value. 1 is 100%
I can gather all nodes values and then calculate the general percentage.
RAM
pvesh get /cluster/resources
looking at maxmem and mem values I can calculate the % per node. Then per cluster.
Storage
This is a "bad" value. You cant give with one number the usage of all storages mounted. It simply adds all storage available in the node and sums up their usage. We will create individually checks for this matter.
So can anyone confirm that we cant get with pvesh, in one value, the combined CPU and combined RAM usage of the cluster?
I want to get these values with pvesh in order to create some nagios checks.
Running the following commands I can get the values somehow
CPU
pvesh get /cluster/resources
looking at cpu value. 1 is 100%
I can gather all nodes values and then calculate the general percentage.
RAM
pvesh get /cluster/resources
looking at maxmem and mem values I can calculate the % per node. Then per cluster.
Storage
This is a "bad" value. You cant give with one number the usage of all storages mounted. It simply adds all storage available in the node and sums up their usage. We will create individually checks for this matter.
So can anyone confirm that we cant get with pvesh, in one value, the combined CPU and combined RAM usage of the cluster?