Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    Add Backend to z-push-top.php

    General usage of Z-Push
    3
    9
    2075
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • liverpoolfcfan
      liverpoolfcfan last edited by liverpoolfcfan

      Manfred,

      A suggestion for an improvement in z-push-top.php

      I think it would provide a useful visual check for people to make sure that they are loading the correct Backend. The simple changes below are using the zpush function GetBackend() to identify the loaded backend - just as z-push will when it starts…

      Add a call to get the class name of the loaded backend to the z-top-php.php constructor…

              // Identify the backend that will be loaded by z-push
              $this->ourBackendName = get_class(ZPush::GetBackend());
              
              // get a TopCollector
              $this->topCollector = new TopCollector();
      

      and in funtion srcOverview() add code to display it. Replace

              $this->scrPrintAt($lc,0, sprintf("                                                Hosts:\t %d", count($this->activeHosts))); $lc++;
      
      

      with

              $this->scrPrintAt($lc,0, sprintf("                                                Hosts:\t %d\tBackend:  %s", count($this->activeHosts),$this->ourBackendName)); $lc++;
      
      

      Here is an example of what it looks like

      Open connections: 6                             Users:   5      Z-Push:   2.6.2.beta1+0
      Push connections: 6                             Devices: 6      PHP-MAPI:
      Action: q                                       Hosts:   4      Backend:  BackendZimbra
      
      PID   IP              USER    COMMAND TIME  AGENT               DEVID       Additional Information         
      

      and of course, if you had forgotten to set your BACKEND_PROVIDER and had no auto-loadable Backend Modules installed

      [root@apps8 ~]# /usr/share/z-push/z-push-top.php
      FatalMisconfigurationException: No Backend provider can be found. Check your installation and/or configuration!
      
      1 Reply Last reply Reply Quote 1
      • liverpoolfcfan
        liverpoolfcfan last edited by

        Realised it is now possible to edit code/etc. in the browser (how long has that been there :-)) so I created a ticket for it myself - ZP-1627

        Manfred 1 Reply Last reply Reply Quote 0
        • Manfred
          Manfred Kopano @liverpoolfcfan last edited by

          Hi @liverpoolfcfan,

          just a heads-up that I saw that you’ve created the issue and the pull request and will add notes there in case Sebastian or I have anything.

          Manfred

          liverpoolfcfan 2 Replies Last reply Reply Quote 0
          • liverpoolfcfan
            liverpoolfcfan @Manfred last edited by

            @manfred It looks like tickets were lost in the move from z-hub.io to kopano.io

            The ticket number I had created for this issue (ZP-1627) is now associated with an RPM issue???

            1 Reply Last reply Reply Quote 0
            • liverpoolfcfan
              liverpoolfcfan last edited by

              I added a new ticket - https://jira.kopano.io/browse/ZP-1630 - however, my logon does not have access to Bitbucket/Stash so I cannot recreate the committ/pull request

              robing 1 Reply Last reply Reply Quote 0
              • robing
                robing Kopano (Inactive) @liverpoolfcfan last edited by

                @liverpoolfcfan

                I gave your account acces to stash.kopano.io so you should be able to create pr’s again

                Regards Robin,

                Need support?
                Have a look at https://kopano.com/support/ for options.

                Helpful resources:
                https://kopano.com/blog/how-to-get-kopano/
                https://documentation.kopano.io/
                https://kb.kopano.io/

                liverpoolfcfan 2 Replies Last reply Reply Quote 0
                • liverpoolfcfan
                  liverpoolfcfan @robing last edited by

                  @robing said in Add Backend to z-push-top.php:

                  @liverpoolfcfan

                  I gave your account acces to stash.kopano.io so you should be able to create pr’s again

                  I still get a message that I have no write access. - I need write access on z-push

                  No write access

                  You don’t have write access to any repository. Contact your administrator for help.

                  1 Reply Last reply Reply Quote 0
                  • liverpoolfcfan
                    liverpoolfcfan @robing last edited by

                    @robing
                    All good now. Thanks.

                    Changes committed and pull requests done.

                    1 Reply Last reply Reply Quote 0
                    • liverpoolfcfan
                      liverpoolfcfan @Manfred last edited by

                      @manfred @Sebastian

                      Is there a reason that submitted pull requests are just auto-declining?

                      I have submitted 2 pull requests each for the two recent tickets, and all 4 have auto-declined after some “timeout” period.

                      Vincent

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post