Ad Widget

Collapse

Screens configure

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • neiromc
    Member
    • Sep 2010
    • 58

    #1

    Screens configure

    Hi all,

    I use zabbix 2.0.0
    In Configure/screens I did created a new screen, after that I added item on screen such as:
    as Plain text, with "Show lines = 1" item data and i did see that is added table with date and data.

    Question: How I can add only data of item. I want to see 1 figure with data use big font.


    More thanks for all!
    Last edited by neiromc; 21-06-2012, 16:13.
  • neiromc
    Member
    • Sep 2010
    • 58

    #2
    I use Zabbix v 2.0 API & Javascript (jqzabbix plugin)

    Maybe I'll share this on GitHub, but only after production test.
    For Zabbix devs: please add this feature in zabbix. It's very comfortable for big LCD Monitors and TV's.
    Attached Files

    Comment

    • neiromc
      Member
      • Sep 2010
      • 58

      #3
      Soon!

      Follow for https://github.com/neiromc/screenx

      Black theme:
      Click image for larger version

Name:	screenx_black.PNG
Views:	2
Size:	114.5 KB
ID:	311856
      Last edited by neiromc; 24-07-2012, 16:02.

      Comment

      • dminstrel
        Member
        • Apr 2005
        • 72

        #4
        Impressive! This could allow building those cool "wallboard"-type displays using ZABBIX. We have a nice 42'' LCD at the office just waiting to trying this out!

        Comment

        • neiromc
          Member
          • Sep 2010
          • 58

          #5
          Yep, That's is! Only for this I did it!
          Soon! Be patient
          Last edited by neiromc; 25-07-2012, 20:05.

          Comment

          • neiromc
            Member
            • Sep 2010
            • 58

            #6
            Released! Welcome!

            Comment

            • Colttt
              Senior Member
              Zabbix Certified Specialist
              • Mar 2009
              • 878

              #7
              maybe you can post here as a feature request?
              Debian-User

              Sorry for my bad english

              Comment

              • dminstrel
                Member
                • Apr 2005
                • 72

                #8
                Thank you very much for sharing this.

                I've done a few tests, but can't get anything to display. I get the item boxes but no data and no graphs. Of course, I customized the code to put itemids and graphids that match something I have in my own server.

                No error messages. The user account I'm using has API access and has read access to everything.

                However, I'm still running ZABBIX 1.8.14...maybe this explains that. Still, I've done some tests with the jQuery plugin for Zabbix API demo and can get data out just fine. I'm really looking forward to getting this to work.

                Since I'm a lousy PHP programmer, I don't know where to add code to try to catch the error in my config. Putting my ZABBIX server at loglevel=4 doesn't show the API commands coming in.

                Just a remark: when I do view source on the screen pages, I see all the authentication information in plain text. This could become an issue in a production environment.

                Comment

                • neiromc
                  Member
                  • Sep 2010
                  • 58

                  #9
                  Originally posted by dminstrel
                  Thank you very much for sharing this.

                  I've done a few tests, but can't get anything to display. I get the item boxes but no data and no graphs. Of course, I customized the code to put itemids and graphids that match something I have in my own server.

                  No error messages. The user account I'm using has API access and has read access to everything.

                  However, I'm still running ZABBIX 1.8.14...maybe this explains that. Still, I've done some tests with the jQuery plugin for Zabbix API demo and can get data out just fine. I'm really looking forward to getting this to work.

                  Since I'm a lousy PHP programmer, I don't know where to add code to try to catch the error in my config. Putting my ZABBIX server at loglevel=4 doesn't show the API commands coming in.

                  Just a remark: when I do view source on the screen pages, I see all the authentication information in plain text. This could become an issue in a production environment.
                  Oh yep, you have issue with login to zabbix API, because you have version of zabbix 1.8.x
                  Issue in jqzabbix.js file. Pls try this solution:

                  1. Download js/jqzabbix_1.8.js
                  2. Edit html/includes/head.inc.php
                  change jqzabbix.js to jqzabbix_1.8.js at last string of file.
                  3. Save and try again!

                  Attention! User for "screenX" must get access to frontend and API!!!

                  Q: What do you see in "graph" blocks???

                  Pls install firefox firebug from this site http://getfirebug.com/
                  and see an error.

                  About authentication information in plain text in production: this user in production must have rights only as a guest and API. API login - in future can change and will be maybe. Security at now - it's not interesting for me, because it's beta version. Anyway thanks for feedback
                  Last edited by neiromc; 26-07-2012, 22:13.

                  Comment

                  • dminstrel
                    Member
                    • Apr 2005
                    • 72

                    #10
                    The graph blocks are blank.

                    Firebug reports 3 errors when viewing a screen page:

                    SyntaxError: syntax error : <!DOCTYPE html> : jqzabbix_1.8.js (line 1)

                    TypeError: $.jqzabbix is not a constructor
                    password: _zpasswd, // Zabbix login password
                    3.php (line 47)

                    ReferenceError: server is not defined
                    server.userLogin(null, function(){
                    3.php (line 369)

                    Note that I modified the URL string for the authentication :
                    In 2.0: http://myserver/zabbix/index.php?&na...nter=Sign%20in
                    In 1.8 : http://myserver/zabbix/index.php?&na...=passwd&enter=Enter

                    Thank you for your support on this!
                    Last edited by dminstrel; 31-07-2012, 22:45.

                    Comment

                    • neiromc
                      Member
                      • Sep 2010
                      • 58

                      #11
                      Originally posted by dminstrel
                      The graph blocks are blank.

                      Firebug reports 3 errors when viewing a screen page:

                      SyntaxError: syntax error : <!DOCTYPE html> : jqzabbix_1.8.js (line 1)

                      TypeError: $.jqzabbix is not a constructor
                      password: _zpasswd, // Zabbix login password
                      3.php (line 47)

                      ReferenceError: server is not defined
                      server.userLogin(null, function(){
                      3.php (line 369)

                      Note that I modified the URL string for the authentication :
                      In 2.0: http://myserver/zabbix/index.php?&na...nter=Sign%20in
                      In 1.8 : http://myserver/zabbix/index.php?&na...=passwd&enter=Enter

                      Thank you for your support on this!
                      You did right. Zabbix has changed auth method in API v. 2.0. I haven't Zabbix v.1.8 and can't fully support this version, sorry.

                      If anybody want, you may forked my project, and modify screenX for use with Zabbix API 1.8 or early versions.

                      About errors: what URL you are try to open in browser?
                      Last edited by neiromc; 01-08-2012, 09:05.

                      Comment

                      • lioxa_zab
                        Junior Member
                        • Sep 2010
                        • 14

                        #12
                        ScreeenX configuration

                        Hello.
                        I did copy screenx to www/ root , create user in zabbix and edit zabbix_auth.inc.php , but all I get is blank screens ?
                        When I'm trying to refresh I'm getting "Error!"
                        I don't understand how to add my data ?

                        Ok , I fix all login problems , now it's showing ERROR: no items defined.

                        Zabbix version 2




                        Thanx.
                        Last edited by lioxa_zab; 10-09-2013, 14:13.

                        Comment

                        • neiromc
                          Member
                          • Sep 2010
                          • 58

                          #13
                          Originally posted by lioxa_zab
                          Hello.
                          I did copy screenx to www/ root , create user in zabbix and edit zabbix_auth.inc.php , but all I get is blank screens ?
                          When I'm trying to refresh I'm getting "Error!"
                          I don't understand how to add my data ?

                          Zabbix version 2




                          Thanx.
                          Hi,

                          What username you use for zabbix user? You must use username is "ScreenX"
                          What manual you did use on install, pls see this link https://github.com/neiromc/screenx

                          Did you get to ScreenX user API (& Zabbix Administrators) rights?
                          Last edited by neiromc; 10-09-2013, 14:18.

                          Comment

                          Working...