Hello everybody!
My task is to get monthly average values for such items as CPU and RAM Utilization.
Seems to be a simple quest using history.get method, but...
Here is what i got:
Zabbix 3.4.9
Considering i can get itemids.
JSON body:
{
"jsonrpc": "2.0",
"method": "history.get",
"params": {
"output": "extend",
"history": 0,
"itemids": "45172",
"sortfield": "clock",
"sortorder": "DESC",
"limit": 1
},
"auth": "xxxx147459452d03c3c57cbc3218xxxx",
"id": 1,
}
I probably should use a trigger expression like that(monthly average):
"server": "system.cpu.load.avg(1m)",
Could you please advice me how to implement it?
Newbie in ZabbixAPI, regards.
My task is to get monthly average values for such items as CPU and RAM Utilization.
Seems to be a simple quest using history.get method, but...
Here is what i got:
Zabbix 3.4.9
Considering i can get itemids.
JSON body:
{
"jsonrpc": "2.0",
"method": "history.get",
"params": {
"output": "extend",
"history": 0,
"itemids": "45172",
"sortfield": "clock",
"sortorder": "DESC",
"limit": 1
},
"auth": "xxxx147459452d03c3c57cbc3218xxxx",
"id": 1,
}
I probably should use a trigger expression like that(monthly average):
"server": "system.cpu.load.avg(1m)",
Could you please advice me how to implement it?
Newbie in ZabbixAPI, regards.
Comment