PDA

View Full Version : How about another interface in python?


amcorreia
18-11-2010, 11:57
Hi,

Don't intend to replace current interface, just another option, using some system templating wich facility customization of interface.

Has another interface available?

I can help developing in python, if somebody can help...


(excuse me my poor english)

zabbix_zen
18-11-2010, 18:55
Oi correia. E aí, tudo bom?

You can find a python fork from the Zabbix API in,
https://github.com/gescheit/scripts/tree/master/zabbix/

you can read more about it's history in this thread,
http://www.zabbix.com/forum/showthread.php?t=15218&page=3

You should contact gescheit about helping him catching up with the API changes.
I should also start using it, it's in my todo list, just haven't had the time yet..

Abraço !

nelsonab
27-11-2010, 03:40
Zabbix_zen I think he might be talking about a UI interface in Zabbix.

amcorreia, there was an attempt by someone to fork the UI using Rails, however nothing more has been heard with regards to it. Building your own UI to Zabbix is not going to be easy. There are things done in the PHP code which may be not easy to understand or translate, and in places php centric. I wish you well if this is what you wish to do, but know it's not going to be an easy thing to do. :-)

zabbix_zen
29-11-2010, 11:35
My bad.
Should have read it more carefully.

Python does have it's strengths..
Which templating system would you use to port it correia?
Django? Pylons?

amcorreia
06-12-2010, 20:06
Zabbix_zen I think he might be talking about a UI interface in Zabbix.

Yes! this is what I want to say, sorry for mispelling.



amcorreia, there was an attempt by someone to fork the UI using Rails, however nothing more has been heard with regards to it. Building your own UI to Zabbix is not going to be easy. There are things done in the PHP code which may be not easy to understand or translate, and in places php centric. I wish you well if this is what you wish to do, but know it's not going to be an easy thing to do. :-)

well, I han't time free, but...
I know a little bit o PHP... what can be so difficult to translate?
My real intention is a UI that can be interchanged between PHP and python with (minor) or without changes in templates.
With template, wich anyone can customize the UI without touch the code.

So...now I see a problem with it, current UI of ZBX don't use a system templating, this really can be a pain to do...



Python does have it's strengths..
Which templating system would you use to port it correia?
Django? Pylons?

Tranquilo amigo...

I will try do it in Django...



Sorry my bad English.

nelsonab
06-12-2010, 22:00
I know a little bit o PHP... what can be so difficult to translate?
My real intention is a UI that can be interchanged between PHP and python with (minor) or without changes in templates.
With template, wich anyone can customize the UI without touch the code.


I think one of the best ways you can write this is to start from scratch in your templating engine/language of choice. You will run into some troubles trying to understand how triggers are processed, and how the permissions model works. Distributed monitoring can also throw a unique spin on things, as n000000 (or is it 00000) get's added to each host id or item id, or any other id n being the node number.

Lastly you might wish to consider the age of the Zabbix php and database code. It's going on 10 years without a major ground up rewrite. There is a lot of legacy and cruft in places.

On the flipside, if you do manage to make it happen you will be pretty much an expert on Zabbix. :-)

Let me know if you need help.

amcorreia
07-12-2010, 12:03
Lastly you might wish to consider the age of the Zabbix php and database code. It's going on 10 years without a major ground up rewrite. There is a lot of legacy and cruft in places.

ok, now I understand about what you mean.


Let me know if you need help.

Surely I will need help, principally in design of HTML which I haven't any aptness.

If anyone can contribute with basic HTML(for template) of zabbix this will help...

nelsonab
07-12-2010, 13:43
LOL... My HTML skills are not so good... If you were to compare it to a Geocities page, you'd say the Geocities page was better... ;-)

nelsonab
07-12-2010, 15:48
I was thinking... ( ya I'm sure Richlv was scared... :p ), if you are going to go down the Python path why not try to use Genshi and also integrate it with Trac. To me the biggest feature missing is trouble ticket integration, there is no easy way to do this right now, and if you did a rerwite you could keep that and a few other things in mind. Another might be a REST interface to Zabbix data, with an emphasis on simplicity and optimized for bandwidth efficiency.

Just some ideas. :-)

amcorreia
07-12-2010, 19:40
sorry, now I don't understand what are you trying to say.

I don't understand which is relationship between genshi and trac?
for use genshi, i will need use pylons and not django (I can be wrong), trac I don't know anyone hosting of trac in internet, for this have lauchpad but don't use SVN.

About REST, well, maybe, but this ins't in my priority list. but is a good point, for UI I see a long time of coding... (I have little time free)

Jun.Liu
17-12-2010, 10:51
Python is really fit for web UI! but you don't need to rewrite entire UI at first phase. take the easy parts firstly. such as dashboard, configuration, administration..