21 Top hosts
The following parameters are supported for the Top Hosts widget.
Columns
Columns have common parameters and additional parameters depending on the configuration of the parameter Data.
For all parameters related to columns the number in the property name (e.g. columns.name.0) references a column for which the parameter is configured.
Item value
The following parameters are supported if Data is set to “Item value”.
The first number in the Thresholds property name (e.g. columnsthresholds.color.0.0) references the column for which thresholds are configured, while the second number references threshold place in a list, sorted in ascending order. However, if thresholds are configured in a different order, the values will be sorted in ascending order after updating widget configuration in Zabbix frontend (e.g. "threshold.threshold.0":"5"
→ "threshold.threshold.0":"1"
; "threshold.threshold.1":"1"
→ "threshold.threshold.1": "5"
).
Text
The following parameters are supported if Data is set to “Text”.
Configuring a Top hosts widget
Configure a Top hosts widget that displays top hosts by CPU utilization in host group “4”. In addition, configure the following custom columns: “Host name”, “CPU utilization in %”, “1m avg”, “5m avg”, “15m avg”, “Processes”.
:
Response:
"jsonrpc": "2.0",
"result": {
"dashboardids": [
"3"
},
}