zabbixj icon indicating copy to clipboard operation
zabbixj copied to clipboard

zabbix agent: set panic on not existed provider optionally

Open ipslot opened this issue 6 years ago • 3 comments

Add use case support: On same host (zabbix node) running more than one agent applications and sending different data to zabbix (I mean different metric providers).

ipslot avatar Jan 22 '19 10:01 ipslot

Thanks for the contribution.

I'm not sure I understand the intent behind it. The Zabbix protocol is designed to either return a metric value or return ZBX_NOTSUPPORTED. What is the reason for throwing an exception here?

michaelquigley avatar Jan 22 '19 14:01 michaelquigley

In reality, I ran into a problem. On one zabbix node there are two applications with built-in agents. The first application sends the key "application.A.uptime" the second sends the values of key "application.В.uptime". Before the fixes, both applications send both keys, although in each of them only one metric provider is implemented. This fix allows the agent not to send a ZBX_NOTSUPPORTED error if a profiler is not specified for this metric. This behavior is optional and the default behavior is as before.

ipslot avatar Jan 23 '19 02:01 ipslot

So rather than trying to change the behavior of the agent, is there a way that we can alter your usage scenario so that the change is not required?

It concerns me to make the agent work in a way that isn't "correct", even if that functionality is made optional.

I'd like to better understand your scenario, so that maybe we can find a solution that will work for everyone?

michaelquigley avatar Feb 05 '19 20:02 michaelquigley