I'm doing some HTTP agent analysis on my web server and I'm trying to produce a widget with a pie chart that shows the number of hits per HTTP agent in a given time period.
The log processing script produces the following JSON:
and, via item prototypes, I can create 1 item per HTTP agent. Note that the HTTP agent list is dynamic, as HTTP agent names can be added / removed on each new run.
I want to display the count for all the agents in a pie chart but I don't know how with graph prototypes (with plain items this is easy to achieve, but you have to "hardcode" the list of HTTP agents, that is dynamical). I see that in Graph prototypes I can add several times the Item protoype and define the Graph type as Pie, but then the graph is broken in the Dashboard.
The general question is whether it is supported to dynamically put several item prototypes on the same graph prototype?
Using Zabbix server: 6.4.10
The log processing script produces the following JSON:
Code:
{"user_agent":
{
"agent1": 10,
"agent2": 20,
....
}
}
I want to display the count for all the agents in a pie chart but I don't know how with graph prototypes (with plain items this is easy to achieve, but you have to "hardcode" the list of HTTP agents, that is dynamical). I see that in Graph prototypes I can add several times the Item protoype and define the Graph type as Pie, but then the graph is broken in the Dashboard.
The general question is whether it is supported to dynamically put several item prototypes on the same graph prototype?
Using Zabbix server: 6.4.10
it creates graph per discovered item..
Comment