Ad Widget

Collapse

Zabbix admin page turned to blank after the server reboot

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fujikura
    Junior Member
    • Oct 2014
    • 11

    #1

    Zabbix admin page turned to blank after the server reboot

    we installed Zabbix 2.4.1 in CentOS 6.5(VM), it was working for a while but once we restarted the server, we can not open the http://serverIP/zabbix page again.
    Anyone have good ideas about this? thank you.
    Attached Files
  • ingus.vilnis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2014
    • 908

    #2
    Hello and welcome to Zabbix forum!

    The reason for this may be because you have not yet configured zabbix server and it's related processes to start upon system boot.

    Use CentOS command "chkconfig" to check it.

    I usually use the following configs for my CentOS installs.

    Code:
    chkconfig --levels 3456 httpd on
    chkconfig --levels 3456 iptables on
    chkconfig --levels 3456 mysqld on
    chkconfig --levels 3456 zabbix-server on
    chkconfig --levels 3456 zabbix-agent on
    Best Regards,
    Ingus

    Comment

    • fujikura
      Junior Member
      • Oct 2014
      • 11

      #3
      Originally posted by ingus.vilnis
      Hello and welcome to Zabbix forum!

      The reason for this may be because you have not yet configured zabbix server and it's related processes to start upon system boot.

      Use CentOS command "chkconfig" to check it.

      I usually use the following configs for my CentOS installs.

      Code:
      chkconfig --levels 3456 httpd on
      chkconfig --levels 3456 iptables on
      chkconfig --levels 3456 mysqld on
      chkconfig --levels 3456 zabbix-server on
      chkconfig --levels 3456 zabbix-agent on
      Best Regards,
      Ingus
      Hi, many thanks for the reply!
      I have checked all above services and they are on.
      I always use following command:
      service httpd status
      service mysql status
      service zabbix_server status
      service zabbix_agentd status

      The first time when we configued zabbix it was working but once we reboot the server, then the page of "http://serverIP/zabbix" can not be open.

      Regards

      Comment

      • ingus.vilnis
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Mar 2014
        • 908

        #4
        Hi,

        Maybe SELinux is in your way?

        Code:
        # setsebool -P httpd_can_network_connect=true
        # getsebool -a | grep zabbix
        # setsebool -P zabbix_can_network=true
        Best Regards,
        Ingus

        Comment

        • fujikura
          Junior Member
          • Oct 2014
          • 11

          #5
          Originally posted by ingus.vilnis
          Hi,

          Maybe SELinux is in your way?

          Code:
          # setsebool -P httpd_can_network_connect=true
          # getsebool -a | grep zabbix
          # setsebool -P zabbix_can_network=true
          Best Regards,
          Ingus
          Hi, thank you for your reply.
          I have tried what you mentioned but seems still not working.. mabye we should try another ver of Zabbix but not the latest(2.4)?
          BTW, i attached the steps when we doing the setup for your reference.
          Attached Files

          Comment

          • ingus.vilnis
            Senior Member
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Mar 2014
            • 908

            #6
            Hi,

            This is not a problem related to Zabbix version itself. 2.4.1 is the latest stable and you should keep it. I quickly reviewed the attached installation steps and did not see any big problems there.

            The problem may be in the environment used.

            Can you confirm that the mysql database and Apache web services are running properly on your server?

            /etc/init.d/mysqld start
            /etc/init.d/httpd start

            Best Regards,
            Ingus

            Comment

            • fujikura
              Junior Member
              • Oct 2014
              • 11

              #7
              Originally posted by ingus.vilnis
              Hi,

              This is not a problem related to Zabbix version itself. 2.4.1 is the latest stable and you should keep it. I quickly reviewed the attached installation steps and did not see any big problems there.

              The problem may be in the environment used.

              Can you confirm that the mysql database and Apache web services are running properly on your server?

              /etc/init.d/mysqld start
              /etc/init.d/httpd start

              Best Regards,
              Ingus

              Thank you, here is the result after running the command:
              -------------------------------------------------------------------------------
              [root@localhost etc]# init.d/mysqld start
              mysqld を起動中(running): [ OK ]
              [root@localhost etc]# init.d/httpd start
              httpd を起動中(running):


              [root@localhost etc]# service httpd status
              httpd (pid 1861) を実行中(running)...
              [root@localhost etc]# service mysqld status
              mysqld (pid 1733) を実行中(running)...
              [root@localhost etc]#
              -------------------------------------------------------------------------------

              something wrong with the apache service? it says "running" but i can't see the [ OK ] behind.

              Comment

              • ingus.vilnis
                Senior Member
                Zabbix Certified Trainer
                Zabbix Certified SpecialistZabbix Certified Professional
                • Mar 2014
                • 908

                #8
                [root@localhost etc]# service httpd status
                httpd (pid 1861) を実行中(running)...

                You see, it is running.
                Try restarting it. You should see OK then.

                But the main issue is the connectivity to your webserver. Try troubleshooting that direction.

                Are httpd settings correct? Is it pointing to the correct path of www folder?

                Best Regards,
                Ingus

                Comment

                • fujikura
                  Junior Member
                  • Oct 2014
                  • 11

                  #9
                  Originally posted by ingus.vilnis
                  [root@localhost etc]# service httpd status
                  httpd (pid 1861) を実行中(running)...

                  You see, it is running.
                  Try restarting it. You should see OK then.

                  But the main issue is the connectivity to your webserver. Try troubleshooting that direction.

                  Are httpd settings correct? Is it pointing to the correct path of www folder?

                  Best Regards,
                  Ingus
                  Hi, i think we have found the root cause:
                  vi /etc/selinux/config
                  modify the status of SELINUX=enforcing to SELINUX=disabled (need reboot)

                  Hope this can help others who have the same problem as us.

                  Comment

                  • ingus.vilnis
                    Senior Member
                    Zabbix Certified Trainer
                    Zabbix Certified SpecialistZabbix Certified Professional
                    • Mar 2014
                    • 908

                    #10
                    Hi,

                    Glad you got that working.

                    Just keep in mind that even though SELinux was the root cause, disabling it completely is not considered safe. For now you got Zabbix running but for the future please try to get it working with SELinux enabled.

                    Good luck!

                    Ingus

                    Comment

                    Working...