From: Todd B. <tb...@gm...> - 2017-10-02 11:39:54
|
I unfortunately don't have the code anymore... But at my previous employer I had a similar issue. The answer was that I created a small php script that if sent a Zabbix hostname, would return a Zabbix proxy IP. So if a host needs to zabbix_sender something, it calls http://zabbixweb/whichproxy.php?host=somehost and the whichproxy.php script does the lookup on the back-end which returns an IP that zabbix_sender can use. It's an extra step and if there's a large number of individual senders happening it could pile up and cause a slowdown, but it was the best solution I could come up with. I suppose if a volume problem started happening, cacheing on the client lookups might help... Hope this helps. On Sun, Oct 1, 2017 at 6:42 PM, Beuserie Frédéric < Fre...@ns...> wrote: > Hi guys, > > > > On top of the normal monitoring use, we are also using zabbix as a > communication channel to inject the history about some customer related > values (like current backup storage used for a virtual machine) into the > database. > > Then, we consume those values from REST to generate billing and other > reports for a given Zabbix host. > > > > We inject those values on dedicated items for a given host (those values > must be processed by some scripting/db/… before being send to the Zabbix > item. > > In some case, the script which run and compute the values is not running > in the same environment, (not even the same datacenter) that the target > host. > > > > Zabbix_sender fails and doesn’t accept the new value since it’s coming > from another Zabbix proxy that the one attached to the target Zabbix host. > > That seems normal since the proxy doesn’t have the items for this host, he > cannot handle it. > > > > So now, I was thinking about injecting those values directly from the > Zabbix server (since it has everything it needs to compute this value). But > > zabbix_sender also fails if I try to send directly to Zabbix server and > not to the proxy attached to the host. > > > > Is there any workaround about that ? or planned change around this ? > > > > Thanks for your help !. > > > > Frédéric Beuserie. > > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Zabbix-users mailing list > Zab...@li... > https://lists.sourceforge.net/lists/listinfo/zabbix-users > > |