Ad Widget

Collapse

pb with web interface

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • diegocito
    Junior Member
    • Jun 2007
    • 22

    #1

    pb with web interface

    Hello,

    I need your help.
    I can't succeed in displaying the web interface for zabbix.
    Nevertheless, all seems good. Here is my zabbix_server.log


    4743:20070629:131045 Starting zabbix_server. ZABBIX 1.4.
    4743:20070629:131045 **** Enabled features ****
    4743:20070629:131045 SNMP monitoring: YES
    4743:20070629:131045 WEB monitoring: YES
    4743:20070629:131045 Jabber notifications: NO
    4743:20070629:131045 **************************
    4751:20070629:131045 server #6 started [Trapper]
    4753:20070629:131045 server #7 started [Trapper]
    4755:20070629:131045 server #8 started [Trapper]
    4757:20070629:131045 server #9 started [Trapper]
    4759:20070629:131045 server #10 started [Trapper]
    4761:20070629:131045 server #11 started [ICMP pinger]
    4765:20070629:131045 server #12 started [Alerter]
    4767:20070629:131045 server #13 started [Housekeeper]
    4767:20070629:131045 Executing housekeeper
    4771:20070629:131045 server #16 started [Node watcher. Node ID:0]
    4773:20070629:131045 server #17 started [HTTP Poller]
    4775:20070629:131045 server #18 started [HTTP Poller]
    4777:20070629:131045 server #19 started [HTTP Poller]
    4779:20070629:131045 server #20 started [HTTP Poller]
    4780:20070629:131045 server #21 started [HTTP Poller]
    4743:20070629:131045 server #0 started [Watchdog]
    4769:20070629:131045 server #14 started [Timer]
    4767:20070629:131047 Deleted 0 records from history and trends
    4748:20070629:131047 server #3 started [Poller. SNMP:ON]
    4770:20070629:131047 server #15 started [Poller for unreachable hosts. SNMP:ON]
    4746:20070629:131047 server #1 started [Poller. SNMP:ON]
    4750:20070629:131047 server #5 started [Poller. SNMP:ON]
    4749:20070629:131047 server #4 started [Poller. SNMP:ON]
    4782:20070629:131047 server #22 started [Discoverer. SNMP:ON]
    4747:20070629:131047 server #2 started [Poller. SNMP:ON]


    Please, I search all over the web but no response.

    Thanks
  • pymouse
    Junior Member
    • May 2007
    • 19

    #2
    There are "no link" between the zabbix_server and the interface web.
    The server_zabbix don't lunch a web interface, u must just copy and past "src_zabbix/frontends" in your path of your Apache server "path_apache/zabbix". And after go on http://localhost/zabbix

    I think it's a problem with your apache configuration.
    u have a server apache with PHP? and a database ? (like MySQL, Oracle etc..)

    U must have PHP on your server to display the interface Zabbix.

    pym.

    (ps: sry for my english)

    Comment

    • diegocito
      Junior Member
      • Jun 2007
      • 22

      #3
      Thanks for the answer : I tried it : but in the path_apache/ there was no folder zabbix. So I created it and paste the frontends but with no results.
      And Server apache with php, and mysql are installd and well configurated I think.
      Maybe, the problem comes from the fact that I installed first Zabbix and next the PHP libraries?? Or doesn't matter?

      Comment

      • pymouse
        Junior Member
        • May 2007
        • 19

        #4
        What do you have in your path_to_apach/zabbix ?
        > path_to_apach/zabbix/all_file (index.php)
        > or path_to_apach/zabbix/frontends/php/all_file (index.php)

        to test your apache environement, do a test page, like this :

        test.php

        <?
        phpinfo();
        ?>


        past the test.php in your path_apache (/var/ww/html by default)

        localhost/test.php to see lots of informations

        Comment

        • diegocito
          Junior Member
          • Jun 2007
          • 22

          #5
          I tried the test but doesn't work : firefox said "looking to localhost" and after said to verify the syntax...

          Also, I tried these two methods but without succes too.
          > path_to_apach/zabbix/all_file (index.php)
          > or path_to_apach/zabbix/frontends/php/all_file (index.php)

          I don't know what to do more???

          Comment

          • pymouse
            Junior Member
            • May 2007
            • 19

            #6
            if firefox said "looking to localhost", i think your Apache isn't lunch...
            Try /etc/init.d/httpd start
            or path_apache/bin/apachetd start (not sure)
            Last edited by pymouse; 02-07-2007, 09:13.

            Comment

            • diegocito
              Junior Member
              • Jun 2007
              • 22

              #7
              yes he is launch

              Here are my processus :

              admin 6445 0.0 0.2 5004 1072 ? S 09:17 0:00 /bin/sh /usr/lib/firefox-1.5.0.3/run-mozilla.sh /usr/lib/firefadmin 6450 0.2 5.4 93192 27756 ? Sl 09:17 0:01 /usr/lib/firefox-1.5.0.3/firefox-bin
              root 25294 0.0 0.3 5924 1660 ? Ss 09:24 0:00 /usr/local/apache2/bin/httpd -k start
              daemon 25295 0.0 0.2 6052 1328 ? S 09:24 0:00 /usr/local/apache2/bin/httpd -k start
              daemon 25296 0.0 0.2 6052 1328 ? S 09:24 0:00 /usr/local/apache2/bin/httpd -k start
              daemon 25297 0.0 0.2 6052 1328 ? S 09:24 0:00 /usr/local/apache2/bin/httpd -k start
              daemon 25298 0.0 0.2 6052 1328 ? S 09:24 0:00 /usr/local/apache2/bin/httpd -k start
              daemon 25299 0.0 0.2 6052 1328 ? S 09:24 0:00 /usr/local/apache2/bin/httpd -k start
              admin 25345 0.3 3.0 27840 15552 ? S 09:26 0:01 gedit file:///usr/local/apache2/logs/error_log
              root 25427 0.0 0.1 2528 788 pts/1 R+ 09:30 0:00 ps -aux

              Comment

              • pymouse
                Junior Member
                • May 2007
                • 19

                #8
                I see /usr/local/apache2...
                I think u most past zabbix files in usr/local/apache2/htdocs/zabbix if u don't do this... usr/local/apache2/htdocs/test.php
                If your apache is lucnhed, i must to have a apache index if you go to http://localhost/, what is the port of your server? By default it's 80, try http://localhost:80/ ...

                you have install apache2 with the source code? (./configure, make install)
                and for php ? ./configure --with-apxs=/usr/local/apache2/bin/apxs --with-mysql --with-gd ...
                Last edited by pymouse; 02-07-2007, 09:57.

                Comment

                • diegocito
                  Junior Member
                  • Jun 2007
                  • 22

                  #9
                  Hey, I found one solution : when I try http://127.0.0.1/zabbix I can see what it is in the folder and when for example i clic on audit.php, I can see the source code.
                  It must be a problem with php, no? because I have no images.
                  Nevertheless, I don't undertand why localhhost doesn't work.

                  Thanks

                  Comment

                  • pymouse
                    Junior Member
                    • May 2007
                    • 19

                    #10
                    DNS problems maybe !
                    if you see the code, it-s a problem with PHP, your apache don't load the module PHP i think...

                    try to add in /usr/local/apache2/conf/httpd.conf

                    AddType application/x-httpd-php .php
                    AddType application/x-httpd-php-source .phps

                    or

                    try to install PHP, with source code ( http://www.php.net/downloads.php ), try with :

                    ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/include/mysql/ --with-gd --enable-png

                    Comment

                    • diegocito
                      Junior Member
                      • Jun 2007
                      • 22

                      #11
                      I tried the first solution but with no success.

                      And for the second, a error occurs when I launch it :

                      [root@chene bin]# ./httpd
                      httpd: Syntax error on line 53 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: undefined symbol: php_write

                      Nevertheless, libphp5.so is in the folder /usr/local/apache2/modules/ ??

                      Diegocito

                      Comment

                      • pymouse
                        Junior Member
                        • May 2007
                        • 19

                        #12
                        I don't find lot of informations for your problem...

                        Apparently using the GD library and compiling can sometimes break your php installation. Once I deleted the original php source dir and untar'd it again, I could configure and gd now works.
                        Look the ./configure --help, try some options maybe...

                        try with --with-mysql, not --with-mysql=/dir...

                        Comment

                        • diegocito
                          Junior Member
                          • Jun 2007
                          • 22

                          #13
                          Ok, now I can see images of the zabbix installation in firefox but I have another problem :

                          At step 3 of the configuration : Check of pre-requisites, PHP max execution time and PHP timezone failed whereas I follow the instructions over the net by modifying php.ini. But I have the impression that php.ini doesn't work because I do what is said ...
                          I verified but I have just one php.ini file.

                          Thanks a lot

                          Diegocito

                          Comment

                          • diegocito
                            Junior Member
                            • Jun 2007
                            • 22

                            #14
                            It's ok i succeed by adding in httpd.cond the line PHPIniDir "path_to_php.ini".

                            Thanks for all your help Pymouse

                            A+

                            Diegocito

                            Comment

                            • pymouse
                              Junior Member
                              • May 2007
                              • 19

                              #15
                              your module php don't load your php.ini i think.
                              u must add --with-config-file-path=PATH_TO_php.ini

                              to verify if your php load the rigth php.ini, look in the test.php page.

                              Configuration File (php.ini) Path -- /etc/php.ini

                              Comment

                              Working...