Ad Widget

Collapse

How about another interface in python?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • amcorreia
    Member
    • Mar 2006
    • 73

    #1

    How about another interface in python?

    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
    Senior Member
    • Jul 2009
    • 426

    #2
    Oi correia. E aí, tudo bom?

    You can find a python fork from the Zabbix API in,
    Various scripts. Contribute to gescheit/scripts development by creating an account on GitHub.


    you can read more about it's history in this thread,


    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 !

    Comment

    • nelsonab
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2006
      • 1233

      #3
      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. :-)
      RHCE, author of zbxapi
      Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
      Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

      Comment

      • zabbix_zen
        Senior Member
        • Jul 2009
        • 426

        #4
        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?

        Comment

        • amcorreia
          Member
          • Mar 2006
          • 73

          #5
          Originally posted by nelsonab
          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.


          Originally posted by nelsonab
          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...


          Originally posted by zabbix_zen
          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.

          Comment

          • nelsonab
            Senior Member
            Zabbix Certified SpecialistZabbix Certified Professional
            • Sep 2006
            • 1233

            #6
            Originally posted by amcorreia
            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.
            RHCE, author of zbxapi
            Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
            Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

            Comment

            • amcorreia
              Member
              • Mar 2006
              • 73

              #7
              Originally posted by nelsonab
              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.


              Originally posted by nelsonab
              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...

              Comment

              • nelsonab
                Senior Member
                Zabbix Certified SpecialistZabbix Certified Professional
                • Sep 2006
                • 1233

                #8
                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... ;-)
                RHCE, author of zbxapi
                Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
                Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

                Comment

                • nelsonab
                  Senior Member
                  Zabbix Certified SpecialistZabbix Certified Professional
                  • Sep 2006
                  • 1233

                  #9
                  I was thinking... ( ya I'm sure Richlv was scared... ), 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. :-)
                  RHCE, author of zbxapi
                  Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
                  Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

                  Comment

                  • amcorreia
                    Member
                    • Mar 2006
                    • 73

                    #10
                    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)

                    Comment

                    • Jun.Liu
                      Member
                      • Apr 2007
                      • 91

                      #11
                      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..

                      Comment

                      Working...