Ad Widget

Collapse

New HTML5 implementation to IT Services plotting on a tree graph

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dixm
    Junior Member
    • Jul 2013
    • 5

    #16
    no root nodes found

    Exportando arvore para /tmp/arquivo.txt ...
    2013-07-31 10:30:06 Exporting tree.
    ERROR: No root nodes were found.

    however root nodes do exist, and the /var/www/html/zabbix/conf/zabbix.conf.php is correctly setup and referenced in the __conf.php

    thoughts?

    the web tool logs in fine- but has no data to view.

    Comment

    • klemens
      Junior Member
      • Apr 2013
      • 7

      #17
      same error

      Comment

      • MassimoG
        Junior Member
        • Jul 2013
        • 3

        #18
        Originally posted by r-br
        Um... should it be the case that your PHP parser requires a blank line at the end of the file?
        It should not, but anyway, try to add one, and see if it parses correctly.
        Just hit ENTER at the end of the file to add a blank line.
        Hi,
        I have the same error.
        In the Apache log I see:

        [Wed Jul 31 12:29:20 2013] [error] [client 10.253.42.73] The 5 additional tables will be created in Zabbix database.
        [Wed Jul 31 12:29:20 2013] [error] [client 10.253.42.73] PHP Parse error: syntax error, unexpected $end in /usr/share/zabbix—service—tree—master/ajaxLoginMenu.php on line 15, referer: http://10.253.42.57/tm/
        [Wed Jul 31 12:29:20 2013] [error] [client 10.253.42.73] PHP Fatal error: Call
        to undefined function json_encode() in /usr/share/zabbix—service—tree—master/ajaxServiceTree.php on line 12, referer: http://10.253.42.57/tm
        [Wed Jul 31 12:29:40 2013] [error] [client 10.253.42.73] PHP Parse error: syntax error, unexpected $end in /usr/share/zabbix—service—tree—master/ajaxLoginMenu.php on line 15
        What have I done wrong?

        Comment

        • r-br
          Junior Member
          • Feb 2011
          • 27

          #19
          Originally posted by klemens
          same error
          It seems that this error isn't related to the application itself, but rather to your PHP parser, because there are no syntax errors on that file. So I'm sending you a private message, and we can try to find the root of your problem.

          Comment

          • r-br
            Junior Member
            • Feb 2011
            • 27

            #20
            Originally posted by dixm
            Exportando arvore para /tmp/arquivo.txt ...
            2013-07-31 10:30:06 Exporting tree.
            ERROR: No root nodes were found.

            however root nodes do exist, and the /var/www/html/zabbix/conf/zabbix.conf.php is correctly setup and referenced in the __conf.php
            This is the query which is bringing this message:
            Code:
            SELECT DISTINCT(serviceid), name, status
            FROM services AS s
            INNER JOIN services_links AS l ON s.serviceid = l.serviceupid
            WHERE NOT EXISTS (
            	SELECT *
            	FROM services_links
            	WHERE servicedownid = s.serviceid
            )
            Does it return empty when you run it directly on the database console?

            Also, please update the repositories, I've been doing some commits lately, including the internationalization. I'm currently working on the setup stuff, to make it easier to run for the first time.

            Comment

            • dixm
              Junior Member
              • Jul 2013
              • 5

              #21
              working now

              I now get a nice display - but how do I edit the weight/threshold?

              Comment

              • dixm
                Junior Member
                • Jul 2013
                • 5

                #22
                fantastic work by hte way

                Are you planning on migrating the hyper view and server tree bar to the new version? as per the old version.

                Comment

                • MassimoG
                  Junior Member
                  • Jul 2013
                  • 3

                  #23
                  Originally posted by dixm
                  I now get a nice display - but how do I edit the weight/threshold?
                  Hi,
                  can you explain me how have you sorted it out?

                  I just installed zabbix appliance, and I still cannot use this..

                  I am n00b to zabbix, so it is probably me that forgot some steps.

                  So, you downloaded the two zip files, unzipped them on the zabbix server (in a directory seen by apache2), edited the 2 config files (by the way, which is the value for the api url?) and then?

                  Do those zip need to be unzipped in the document root of Apache, or inside the zabbix directory?

                  Why is PHP still complaining that it lacks $END ?

                  Which is the URL to launch this application?

                  Thanks

                  Comment

                  • r-br
                    Junior Member
                    • Feb 2011
                    • 27

                    #24
                    Originally posted by dixm
                    I now get a nice display - but how do I edit the weight/threshold?
                    I'm glad it worked for you. Use Ctrl+click on a node to edit it.

                    Originally posted by dixm
                    Are you planning on migrating the hyper view and server tree bar to the new version? as per the old version.
                    It's possible, but not right now. There are a lot of improvements yet to be made. The thing is fully functional, but there's a lot of things to be improved.

                    Comment

                    • r-br
                      Junior Member
                      • Feb 2011
                      • 27

                      #25
                      Originally posted by MassimoG
                      So, you downloaded the two zip files, unzipped them on the zabbix server (in a directory seen by apache2), edited the 2 config files (by the way, which is the value for the api url?) and then?
                      Yeah, that's it. The daemon, however, doesn't need to be under an Apache directory, since it's intended to run on PHP command line. The API URL usually is the same Zabbix frontend URL, something like "http://10.200.110.10/zabbix".

                      Originally posted by MassimoG
                      Why is PHP still complaining that it lacks $END ?
                      I have no idea, but maybe this?

                      Originally posted by MassimoG
                      Which is the URL to launch this application?
                      You choose it. When you unzip the tree package, it will be wherever you put the tree files.

                      Comment

                      • MassimoG
                        Junior Member
                        • Jul 2013
                        • 3

                        #26
                        Originally posted by r-br
                        Yeah, that's it. The daemon, however, doesn't need to be under an Apache directory, since it's intended to run on PHP command line. The API URL usually is the same Zabbix frontend URL, something like "http://10.200.110.10/zabbix".


                        I have no idea, but maybe this?


                        You choose it. When you unzip the tree package, it will be wherever you put the tree files.
                        Thanks for your help

                        Actually I changed API URL following your suggestion, and changed also PHP.INI (in because of short_open_tag - it was exactly that that was throwing the missing $END error message) in /etc/php5/apache2 and then restarted apache2.

                        Now there are some progresses: no more blank page but this message "Erro ao trazer a lista de servicos. 500: Internal Server Error".

                        Note that I put English as my language in __conf.php

                        I can try a Login, but again I get an error "Oops... login attempt has failed. 500: Internal Server Error".

                        In Apache's log file now I see this:

                        Fatal error: Call to undefined function json_encode() in /usr/share/zabbix-service-tree-master/ajaxServiceTree.php on line 16

                        Thanks again for your help!

                        Comment

                        • r-br
                          Junior Member
                          • Feb 2011
                          • 27

                          #27
                          Originally posted by MassimoG
                          Actually I changed API URL following your suggestion, and changed also PHP.INI (in because of short_open_tag - it was exactly that that was throwing the missing $END error message) in /etc/php5/apache2 and then restarted apache2.
                          Good!

                          Originally posted by MassimoG
                          Now there are some progresses: no more blank page but this message "Erro ao trazer a lista de servicos. 500: Internal Server Error".

                          Note that I put English as my language in __conf.php

                          I can try a Login, but again I get an error "Oops... login attempt has failed. 500: Internal Server Error".
                          Update your sources, I've made a lot of changes this morning, maybe it has been fixed. Anyway, for authentication, I'm using Zabbix API, so make sure the user has API permission (the user must be in the API group).

                          Originally posted by MassimoG
                          In Apache's log file now I see this:

                          Fatal error: Call to undefined function json_encode() in /usr/share/zabbix-service-tree-master/ajaxServiceTree.php on line 16
                          Try this.

                          Comment

                          • klemens
                            Junior Member
                            • Apr 2013
                            • 7

                            #28
                            @r-br ive fixed my issue with not working app adding short_open_tag to php.ini and i have one more question, is it possible to add all IT services in one screen, now i have drop down menu to use what service i want to see

                            thanks in advacned

                            Comment

                            • r-br
                              Junior Member
                              • Feb 2011
                              • 27

                              #29
                              Originally posted by klemens
                              @r-br ive fixed my issue with not working app adding short_open_tag to php.ini
                              Good.

                              Originally posted by klemens
                              and i have one more question, is it possible to add all IT services in one screen, now i have drop down menu to use what service i want to see
                              The display is hierarchical, and the division is made by root nodes, ie. the root nodes are chosen on the dropdown to have its children shown. If you want to view all services at once, just create a top root service, and put all the services below it. Thus you'll have a single root node.

                              Comment

                              • klemens
                                Junior Member
                                • Apr 2013
                                • 7

                                #30
                                thanks, thats what i needed

                                Comment

                                Working...