inovex / zax

Zabbix frontend for Android
http://inovex.github.io/zax/
GNU General Public License v3.0
66 stars 32 forks source link

support for multiple zabbix servers #6

Open jjoe64 opened 12 years ago

seregasoft commented 12 years ago

+1 !

Pimmetje commented 10 years ago

+1

jschamburger commented 10 years ago

This would certainly be a great feature, but the effort is rather high. So unfortunately I can't promise to implement this any time soon.

Pimmetje commented 10 years ago

How hard would it be to implement this? Else i could have a look at it. I haven't looked at the code yet so i have no clue how much work it would be. As a workaround i could install the app a second time on my phone. (But i have to change a bit for that so android accepts it as a new app). (I only need a second one for now).

jschamburger commented 10 years ago

I'm taking a look at it right now. A simple implementation should not take too long. This would mean that the Zabbix data cache is cleared whenever the server is changed and only the server selected in the app would be used in the widgets. Of course this solution is far from optimal, but it would suffice for a first iteration.

Thanks for the offer! I have some spare time right now, so I'll start working and I'll let you know if I need help.

Pimmetje commented 10 years ago

Any update on this?

Would it be possible to install the app twice. I know it needs another name but besides from that would it be possible? I need a second server as i have zabbix at home and one at office.

jjoe64 commented 10 years ago

We are currently working on this. Should be released soon

Pimmetje commented 10 years ago

Thanks for the replay, If i can be of any assistance please let me know.

jimsmith commented 10 years ago

+1

I now have a requirement for multiple zabbix servers.

For different purposes and use cases.

Pimmetje commented 10 years ago

The basic is implemented i guess. But there are some small things that still needs tweaking but i guess this project does not get enough time to implement & bug fix at the moment.

jimsmith commented 9 years ago

Is the feature ready now as not sure why it is closed?

Pimmetje commented 9 years ago

Current i would say that multi server is so far broken that it is not useful (at least not for me)

chrjsorg commented 9 years ago

Please define broken.

jimsmith commented 9 years ago

Yeah very true in my case it just ends up not responding and crashes the app.

It should be noted to have it on road map ☺ as I have multiple different zabbix setup for different outfits and environments.

Pimmetje commented 9 years ago

If i switch servers it won't load any graph. The triggers have names from other servers. This all makes kind a mess. As i have always some triggers on both of the server i am using. (some users are lazy fixing there issues). Please not that most of the issues start happening when u use widgets.

Edit: To reproduce try the following: (i can't test this right now so ill write this down from memory) Add 2 servers For both server add a widget on the home screen. Wait for some time (30 minutes or so, my best guess it happens after a background refresh of data) Look at your names a data there all messed up. If that does not make it happen switch from one server to the other. Click on a trigger in the widget screen to open Zax. Play some around with it. At the end u will see the problem. I u have it wrong u can't get it right without resetting the cache.

I think the problem with this is also related to #34

jschamburger commented 9 years ago

I wasn't aware of these issues. I just reopened the ticket as the feature is apparently not usable yet.

jacentemu commented 8 years ago

I have the same problem as @Pimmetje: when multiple zabbix servers are configured, the application takes hostnames from the first configured or last modyfied zabbix server. Problem occurs both in application and in widget.When one zabbix servers has more hosts than other, application sometimes show "null" as hostname, because this host ID doesn't exists on one zabbix server. Currently, when multiple servers are used, application is usable only because most warning messages contain also hostnames (eg. "Some {proces} is not working on {HOSTNAME}").

Other problem: when widget (configured to one zabbix server) is autoupdated sometimes it has warnings (and hostnames) from last modyfied or las used server (not configured in this widget).

Pimmetje commented 8 years ago

I even seen the problem about the null when i only have one server configured. So there is a reference failing somewhere. Ill still did not had the time to look at it myself.

insanity54 commented 7 years ago

I've started a bounty for this feature. Bountysource

alainseys commented 3 years ago

Install zabbix proxy and you are good to go let the home network be monitored to the proxy and the proxy reports to the master