Ad Widget

Collapse

Zabbix server is running = no

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • leonidasklein
    Junior Member
    • Oct 2011
    • 17

    #1

    Zabbix server is running = no

    Hi I'm implementing a zabbix server on the corporation I work. All tests i have made with zabbix on VMs have worked. But, now I'm configuring it on a real host and on the dashboard It keeps showing that zabbix server is not working. I already have checked server log and apparently there is no error message.

    Can someone give me a hande trying to fix this? Thank you.
    Last edited by leonidasklein; 23-05-2014, 19:19.
  • leonidasklein
    Junior Member
    • Oct 2011
    • 17

    #2
    Hi, i have found a workwround for this problem. If i disable SELinux the frontend is cabable of detecting zabbix server. I don't want to keep SELinux disabled, do you have any other idea?

    Thank you.

    Comment

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

      #3
      you must create a policy for zabbix..
      Debian-User

      Sorry for my bad english

      Comment

      • leonidasklein
        Junior Member
        • Oct 2011
        • 17

        #4
        Sorry, but i'm relatively new on linux and zabbix world. How can I create such policy?

        Thank you.

        Comment

        • leonidasklein
          Junior Member
          • Oct 2011
          • 17

          #5
          after disabling SELinux the dashboard shows that zabbix server is running. But there is a trigger that keeps firing saying that zabbix server is NOT running.

          Please see attached.
          Last edited by leonidasklein; 23-05-2014, 19:19.

          Comment

          • pc99096
            Senior Member
            • Oct 2011
            • 193

            #6
            any update on this? my dashboard shows the same thing, zabbix server not running.

            Comment

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

              #7
              ok.. look at the log-files.. and change the logging-level to 4..
              Debian-User

              Sorry for my bad english

              Comment

              • pc99096
                Senior Member
                • Oct 2011
                • 193

                #8
                ok and what exactly should i be looking for? do you have the name of the procedure or something?
                i went through the log file and found nothing interesting so far.

                Comment

                • pc99096
                  Senior Member
                  • Oct 2011
                  • 193

                  #9
                  to get rid of this status, i simply removed the whole row on the dashboard:

                  $table->addRow(array(S_ZABBIX_SERVER_IS_RUNNING,new CSpan($status['zabbix_server'], ($status['zabbix_server'] == S_YES ? 'off' : 'on')),
                  isset($ZBX_SERVER, $ZBX_SERVER_PORT) ? $ZBX_SERVER.':'.$ZBX_SERVER_PORT : S_ZABBIX_SERVER_IP_OR_PORT_IS_NOT_SET
                  ));



                  in include/blocks.inc.php

                  Comment

                  • leonidasklein
                    Junior Member
                    • Oct 2011
                    • 17

                    #10
                    Got ir working

                    Hey! sorry for the delay.

                    I got it working. I noticed that as default zabbix search for zabbix-server process. But I installed zabbix through EPEL repository on CentOS6. Installing this way has created a zabbix-server-mysql process instead of the zabbix-server. I just changed the Item to monitor zabbix-server-mysql process and all is running smoothly now

                    Comment

                    • pc99096
                      Senior Member
                      • Oct 2011
                      • 193

                      #11
                      Originally posted by leonidasklein
                      Hey! sorry for the delay.

                      I got it working. I noticed that as default zabbix search for zabbix-server process. But I installed zabbix through EPEL repository on CentOS6. Installing this way has created a zabbix-server-mysql process instead of the zabbix-server. I just changed the Item to monitor zabbix-server-mysql process and all is running smoothly now
                      that's fine, but i'm afraid it's not related to the original problem.
                      the Yes/No value in the first row of the Status of Zabbix table on Dashboard is determined from the
                      $checkport = fsockopen($ZBX_SERVER, $ZBX_SERVER_PORT, $errnum, $errstr, 2);
                      function in include/config.inc.php

                      Comment

                      • leonidasklein
                        Junior Member
                        • Oct 2011
                        • 17

                        #12
                        SeLinux

                        Disabling SELinux solved the Yes/No Problem for me.

                        Comment

                        • pc99096
                          Senior Member
                          • Oct 2011
                          • 193

                          #13
                          ok but what if disabling selinux is not very desired? i was expecting that somebody has/had experience implementing selinux zabbix policy

                          Comment

                          • leonidasklein
                            Junior Member
                            • Oct 2011
                            • 17

                            #14
                            SELinux

                            Unfortunatelly that's the only way I was able to solve this issue. I hope somebody can help us on this too.

                            Comment

                            • hairyairey
                              Junior Member
                              • Jul 2011
                              • 6

                              #15
                              semanage port -a -t http_port_t -p tcp 10051

                              to find semanage (it might not be installed) use

                              yum provides /usr/sbin/semanage

                              semanage is in the policycoreutils-python package on Centos6/RHEL 6
                              Last edited by hairyairey; 09-12-2011, 14:14. Reason: word missed

                              Comment

                              Working...