Ad Widget

Collapse

Zabbix 1.6 Frontend Errors (??)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MrKen
    Senior Member
    • Oct 2008
    • 652

    #1

    Zabbix 1.6 Frontend Errors (??)

    Hi all,

    I have recently completed a fresh install of Zabbix 1.6 on CentOS 5. All appears to be running fine except for a couple of problems with the GUI.

    1) On Administration --> Users : there are two users, Admin and Guest. 'Is online?' says NO for both users, but in the bottom right corner it says 'Connected as Admin'. Ok, I'm Admin and I'm logged in, so why does it say that I'm not online?

    2) On Monitoring --> Dashboard : ZABBIX server is running = NO. Why??

    Zabbix Server, Database and one solitary host Zabbix Agent are ALL running on the one server.

    There is data being collected and updated at regular intervals, and there are graphs.
    Monitoring --> Screens, says ZABBIX server OK.
    ps -ef | grep zabbix shows 6 Agents and 24 Servers running.

    I am convinced that Zabbix Server IS running, but it would be nice if the GUI were to show that to be the case.

    Anybody else experiencing anything like this? Any clues, suggestions, etc., would be appreciated.

    PHP 5.1.6
    MYSQL 5.0.45
    Linux 2.6.18-8.el5
    ZABBIX 1.6

    Regards,
    MrKen
    Disclaimer: All of the above is pure speculation.
  • NOB
    Senior Member
    Zabbix Certified Specialist
    • Mar 2007
    • 469

    #2
    Originally posted by MrKen
    Hi all,

    I have recently completed a fresh install of Zabbix 1.6 on CentOS 5. All appears to be running fine except for a couple of problems with the GUI.

    1) On Administration --> Users : there are two users, Admin and Guest. 'Is online?' says NO for both users, but in the bottom right corner it says 'Connected as Admin'. Ok, I'm Admin and I'm logged in, so why does it say that I'm not online?

    2) On Monitoring --> Dashboard : ZABBIX server is running = NO. Why??

    Zabbix Server, Database and one solitary host Zabbix Agent are ALL running on the one server.

    There is data being collected and updated at regular intervals, and there are graphs.
    Monitoring --> Screens, says ZABBIX server OK.
    ps -ef | grep zabbix shows 6 Agents and 24 Servers running.

    I am convinced that Zabbix Server IS running, but it would be nice if the GUI were to show that to be the case.

    Anybody else experiencing anything like this? Any clues, suggestions, etc., would be appreciated.

    PHP 5.1.6
    MYSQL 5.0.45
    Linux 2.6.18-8.el5
    ZABBIX 1.6

    Regards,
    MrKen
    We experience the same wrong display under Administration/Users.
    The display in the Dashboard regarding the users is OK, though.
    This should be fixed in one of the next releases, I guess.

    Why the server is reported to be not running I don't know.

    Regards

    Norbert.

    Comment

    • testos
      Member
      • Apr 2007
      • 85

      #3
      For:

      2) On Monitoring --> Dashboard : ZABBIX server is running = NO. Why??
      Disable SELinux protection for httpd daemon and restart httpd daemon.

      Try this command line steps:

      /sbin/restorecon -R /etc/selinux/targeted/modules
      setsebool -P httpd_disable_trans=1
      getsebool -a | grep httpd
      If you can see this line:
      httpd_disable_trans --> on

      Then restart http server:
      service httpd restart

      Comment

      • MrKen
        Senior Member
        • Oct 2008
        • 652

        #4
        Last week while configuring Ldap authentication, the 'Zabbix server is running' mysteriously changed to YES. I know that I had previously disabled Selinux, and last week during ldap config I did restart httpd.

        So, Testos, I'm sure that your advice would work, but as it seems to be ok now I shall leave it as it is.

        [root@zabbix ~]# getsebool -a | grep httpd
        getsebool: SELinux is disabled


        Regarding the Users screen, all users are still showing 'offline'. But, strangely, last week Admin showed as being online very briefly (for about 1 minute). Strange, but not overly concerned at this stage.

        Thanks or your replies.

        MrKen
        Disclaimer: All of the above is pure speculation.

        Comment

        • nibb
          Member
          • Oct 2008
          • 78

          #5
          I had the same problem and just disabled setenforce in the confi setting by

          SELINUX=disabled

          Is this better then your command posted before? I mean is there really a need to disable it completely?

          Now, on the admin interface the Zabbix server which is local shows YES as running. Before I also had the same problem it recoleted stats and was running but the web interface says it NO like it was not running.

          I still get errors when I try to ping or trace the Zabbix server from the web interface like:
          socket_connect() [<a href='function.socket-connect'>function.socket-connect</a>]: unable to connect [111]: Connection refused[/var/www/html/zabbix/include/scripts.inc.php:76]

          I appreciate if someone can help.

          Comment

          • data7
            Junior Member
            • May 2008
            • 18

            #6
            Originally posted by nibb
            I had the same problem and just disabled setenforce in the confi setting by

            SELINUX=disabled

            Is this better then your command posted before? I mean is there really a need to disable it completely?

            Now, on the admin interface the Zabbix server which is local shows YES as running. Before I also had the same problem it recoleted stats and was running but the web interface says it NO like it was not running.

            I still get errors when I try to ping or trace the Zabbix server from the web interface like:
            socket_connect() [<a href='function.socket-connect'>function.socket-connect</a>]: unable to connect [111]: Connection refused[/var/www/html/zabbix/include/scripts.inc.php:76]

            I appreciate if someone can help.
            For me the suggestions above worked fine. I disabled SELINUX on /etc/selinux/config (CentOS 5) as below:

            Code:
            # This file controls the state of SELinux on the system.
            
            # SELINUX= can take one of these three values:
            
            #       enforcing - SELinux security policy is enforced.
            
            #       permissive - SELinux prints warnings instead of enforcing.
            
            #       disabled - SELinux is fully disabled.
            
            SELINUX=disabled
            
            # SELINUXTYPE= type of policy in use. Possible values are:
            
            #       targeted - Only targeted network daemons are protected.
            
            #       strict - Full SELinux protection.
            
            SELINUXTYPE=targeted
            Then I used "system-config-security" to disable all that I wouldn't need and set ports 10050 and 10051 as trusted ones. Finally httpd and zabbix_server were restarted and everything worked fine

            Besides my answer's delay, I hope that it helps.

            Regards.

            Comment

            Working...