Ad Widget

Collapse

MoZBX - A Mobile Zabbix Client

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mojah
    Member
    • Apr 2010
    • 60

    #1

    MoZBX - A Mobile Zabbix Client

    Hi,

    I've developed a Mobile Zabbix client that uses the Zabbix API. It allows you to connect to your own Zabbix from any mobile device, and see the current status of your hosts/hostgroups, triggers, graphs, ...

    I've placed it here: http://www.mozbx.net/

    It's available as a hosted solution (you fill in your Zabbix URL, (read-only) username & password), or as a downloadable source code from GitHub to place on your own servers.

    Screenshots, demo & FAQ are on the site.

    I appreciate any feedback!
  • Rob
    Junior Member
    • Sep 2010
    • 18

    #2
    I've tried it out and it's exactly what I've been looking for. One question though, and I think this is more a Zabbix/API issue than MoZBX.
    The Active Triggers screen shows that I have 30 active triggers. This seems to include recently active triggers - i.e ones that are now flashing OK in the Triggers page in the main UI. Is there a way to exclude these and only show triggers which are still in the problem state? The same might go for hosts in maintenance.

    Fantastic work though!

    Comment

    • Mojah
      Member
      • Apr 2010
      • 60

      #3
      Hi Rob,

      No, it's something I've been trying to debug as well. The only way I could retrieve the list of "active" triggers, was if I included those recently activated as well.

      I'll pick this up later in some bugreport, to see if it's intended behavior or not.

      I'm meaning to add favorite graphs/screens as soon as the API supports it as well.

      Comment

      • danrog
        Senior Member
        • Sep 2009
        • 164

        #4
        Try adding this:

        Code:
         "filter" => array("value" => 1),
         "sortorder" => "DESC",
         "sortfield" => "lastchange"
        Seems to work for me AND it sorts the table just like the web interface (newest to oldest)

        Comment

        • Scheffie
          Junior Member
          • Apr 2005
          • 15

          #5
          Thanx Mojah! Your demo really looks great!

          But... when use our own API url I should be able to see our triggers and hosts, but while the login succeeds I can't see any host "Sorry, you don't have access to any groups."

          Greetings
          Scheffie

          Comment

          • Rob
            Junior Member
            • Sep 2010
            • 18

            #6
            Originally posted by danrog
            Try adding this:

            Code:
             "filter" => array("value" => 1),
             "sortorder" => "DESC",
             "sortfield" => "lastchange"
            Seems to work for me AND it sorts the table just like the web interface (newest to oldest)
            Thanks, I'll have to try that.

            Comment

            • Mojah
              Member
              • Apr 2010
              • 60

              #7
              Originally posted by Scheffie
              Thanx Mojah! Your demo really looks great!

              But... when use our own API url I should be able to see our triggers and hosts, but while the login succeeds I can't see any host "Sorry, you don't have access to any groups."

              Greetings
              Scheffie
              Does the zabbix user with which you login, have API Access enabled?
              See more requirements here; http://www.mozbx.net/faq-system-requirements.html

              Comment

              • Mojah
                Member
                • Apr 2010
                • 60

                #8
                @Danrog: I've implemented it like you mentioned, will be testing it over the next few days.

                Comment

                • untergeek
                  Senior Member
                  Zabbix Certified Specialist
                  • Jun 2009
                  • 512

                  #9
                  I love it!

                  My first request for update is the ability to acknowledge events. This is the one thing which would make MoZBX into our ideal mobile Zabbix platform.

                  Does the API even support that yet?

                  Comment

                  • Zaniwoop
                    Senior Member
                    • Jan 2010
                    • 232

                    #10
                    On my test server, it works like a dream.

                    On my production server something goes very wrong. It seems like it is not processing the PHP correctly. (see below)

                    The only difference between the two that I can see is my test server is running php ver 3.1 and the production is 3.3.

                    any suggestions?
                    Attached Files

                    Comment

                    • untergeek
                      Senior Member
                      Zabbix Certified Specialist
                      • Jun 2009
                      • 512

                      #11
                      Another good way would be to make a phpinfo.php file in your document root and compare the output

                      Code:
                      <?php
                      phpinfo();
                      ?>
                      Make sure its readable by the web server and then point your browser to that file:



                      See what's different and you'll be off to a good start. The fact that your test and production environments differ is not encouraging. How do you know what you're testing will work if the environments aren't as identical as possible?

                      Comment

                      • Axilla
                        Senior Member
                        • Aug 2010
                        • 130

                        #12
                        i'm trying to get this working, even though the user I login with has API access i'm still not seeing any hosts.

                        Edit: NM, forgot to give API Access to the hosts.

                        Right off the bat i'm having issues. This doesn't support distributed monitoring So I can only see hosts for one node. not all nodes. Also when I click on a host there is nothing there.. just a blank page. Great start though.
                        Last edited by Axilla; 08-10-2010, 19:16.

                        Comment

                        • Mojah
                          Member
                          • Apr 2010
                          • 60

                          #13
                          Originally posted by Zaniwoop
                          On my test server, it works like a dream.

                          On my production server something goes very wrong. It seems like it is not processing the PHP correctly. (see below)

                          The only difference between the two that I can see is my test server is running php ver 3.1 and the production is 3.3.

                          any suggestions?
                          Seems like PHP isn't being parsed, you sure your setup is OK?

                          Comment

                          • Axilla
                            Senior Member
                            • Aug 2010
                            • 130

                            #14
                            Any plans to add support for distributed monitoring?

                            Comment

                            • rla
                              Junior Member
                              • Oct 2010
                              • 2

                              #15
                              I had this exact same problem. Try adding:

                              php_value short_open_tag 1

                              to your web server config or .htaccess in this dir. Short tags have been deprecated in later php version.

                              Originally posted by Zaniwoop
                              On my test server, it works like a dream.

                              On my production server something goes very wrong. It seems like it is not processing the PHP correctly. (see below)

                              The only difference between the two that I can see is my test server is running php ver 3.1 and the production is 3.3.

                              any suggestions?

                              Comment

                              Working...