Good afternoon. The task is to collect data on the utilization of HDD, CPU, RAM of virtual servers. Servers are divided into groups, common servers such as mail servers, domain controllers are combined by tags.
Collect usage space virtual HDD
type Calculated
Formula - sum(last_foreach(/*/vm.avg.space.total?[tag="Role:Exchange"])) - data is come
But collect usage CPU and Memory virtual servers
type Calculated
Formula - sum(last_foreach(/*/system.cpu.util?[tag="Role: DC"])) - data is come
but with others tags
type Calculated
sum(last_foreach(/*/system.cpu.util?[tag="Role:Exchange"])) - get error Cannot evaluate expression: no input data for function at "sum(last_foreach(/*/system.cpu.util?[tag="Role:Exchange"]))"
With memory same errors. Somewhere data collect, somewhere get errors
type Calculated
sum(last_foreach(/*/vm.memory.size[total]?[tag="Role:VideoSurveillance"])) - data is come
sum(last_foreach(/*/vm.memory.size[total]?[tag="Role:SAP"])) - get error Cannot evaluate expression: no input data for function at "sum(last_foreach(/*/vm.memory.size[total]?[tag="Role:SAP"]))"
Collect usage space virtual HDD
type Calculated
Formula - sum(last_foreach(/*/vm.avg.space.total?[tag="Role:Exchange"])) - data is come
But collect usage CPU and Memory virtual servers
type Calculated
Formula - sum(last_foreach(/*/system.cpu.util?[tag="Role: DC"])) - data is come
but with others tags
type Calculated
sum(last_foreach(/*/system.cpu.util?[tag="Role:Exchange"])) - get error Cannot evaluate expression: no input data for function at "sum(last_foreach(/*/system.cpu.util?[tag="Role:Exchange"]))"
With memory same errors. Somewhere data collect, somewhere get errors
type Calculated
sum(last_foreach(/*/vm.memory.size[total]?[tag="Role:VideoSurveillance"])) - data is come
sum(last_foreach(/*/vm.memory.size[total]?[tag="Role:SAP"])) - get error Cannot evaluate expression: no input data for function at "sum(last_foreach(/*/vm.memory.size[total]?[tag="Role:SAP"]))"