Ad Widget

Collapse

"Zabbix server is not running" Error on Centos 6.5

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • FaintDeftone
    Junior Member
    • Jan 2015
    • 2

    #1

    "Zabbix server is not running" Error on Centos 6.5

    Hey guys,

    I'm new to Zabbix and Linux and I'm currently trying to build a server for my job so we can use Zabbix to monitor our network.

    I installed CentOS 6.5 on a new server and went through the steps to install Zabbix.

    This is the tutorial I used to install it.

    Everything went without a hitch for the most part, but every time I log into the Zabbix front end I always get the message "Zabbix server is not running: the information displayed may not be current".

    I noticed another thread below that had the same issue but I followed everything there and couldn't resolve it.

    So far I have disabled SElinux, double checked the database issue in the Zabbix config file, made sure httpd, mysql, and zabbix-server services are all running, and ran the setsebool -P httpd_can_network_connect on command. No luck.

    Any other suggestions on what the problem could be? Any help would be appreciated. Again, I am a newbie at this so even stupid, obvious suggestions could help.

    Here is the info from the Zabbix log file:

    11711:20150122:132829.056 Starting Zabbix Server. Zabbix 2.2.8 (revision 51174).
    11711:20150122:132829.056 ****** Enabled features ******
    11711:20150122:132829.056 SNMP monitoring: YES
    11711:20150122:132829.056 IPMI monitoring: YES
    11711:20150122:132829.057 WEB monitoring: YES
    11711:20150122:132829.057 VMware monitoring: YES
    11711:20150122:132829.057 Jabber notifications: YES
    11711:20150122:132829.057 Ez Texting notifications: YES
    11711:20150122:132829.057 ODBC: YES
    11711:20150122:132829.057 SSH2 support: YES
    11711:20150122:132829.057 IPv6 support: YES
    11711:20150122:132829.057 ******************************
    11711:20150122:132829.057 using configuration file: /etc/zabbix/zabbix_server.conf
    11711:20150122:132829.066 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    11711:20150122:132829.066 Database is down. Reconnecting in 10 seconds.
    11711:20150122:132839.067 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    11711:20150122:132839.067 Database is down. Reconnecting in 10 seconds.
    11711:20150122:132849.067 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    11711:20150122:132849.067 Database is down. Reconnecting in 10 seconds.
    11711:20150122:132859.068 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    11711:20150122:132859.068 Database is down. Reconnecting in 10 seconds.
    11711:20150122:132909.068 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    11711:20150122:132909.068 Database is down. Reconnecting in 10 seconds.
    11711:20150122:132919.069 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    11711:20150122:132919.069 Database is down. Reconnecting in 10 seconds.
    11711:20150122:132929.069 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    11711:20150122:132929.069 Database is down. Reconnecting in 10 seconds.
    11711:20150122:132939.070 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    11711:20150122:132939.070 Database is down. Reconnecting in 10 seconds.
    11711:20150122:132949.070 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    11711:20150122:132949.071 Database is down. Reconnecting in 10 seconds.
    11711:20150122:132959.073 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    11711:20150122:132959.073 Database is down. Reconnecting in 10 seconds.
    11711:20150122:133009.074 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    11711:20150122:133009.074 Database is down. Reconnecting in 10 seconds.
    11711:20150122:133019.075 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    11711:20150122:133019.075 Database is down. Reconnecting in 10 seconds.
    11711:20150122:133029.076 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    11711:20150122:133029.076 Database is down. Reconnecting in 10 seconds.
    11711:20150122:133039.076 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    11711:20150122:133039.076 Database is down. Reconnecting in 10 seconds.
    11711:20150122:133048.959 Got signal [signal:15(SIGTERM),sender_pid:13021,sender_uid:0,r eason:0]. Exiting ...
    11711:20150122:133050.960 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    11711:20150122:133050.960 Cannot connect to the database. Exiting...
    5229:20150122:134634.041 Starting Zabbix Server. Zabbix 2.2.8 (revision 51174).
    5229:20150122:134634.045 ****** Enabled features ******
    5229:20150122:134634.045 SNMP monitoring: YES
    5229:20150122:134634.045 IPMI monitoring: YES
    5229:20150122:134634.045 WEB monitoring: YES
    5229:20150122:134634.045 VMware monitoring: YES
    5229:20150122:134634.045 Jabber notifications: YES
    5229:20150122:134634.045 Ez Texting notifications: YES
    5229:20150122:134634.045 ODBC: YES
    5229:20150122:134634.045 SSH2 support: YES
    5229:20150122:134634.045 IPv6 support: YES
    5229:20150122:134634.045 ******************************
    5229:20150122:134634.045 using configuration file: /etc/zabbix/zabbix_server.conf
    5229:20150122:134634.053 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    5229:20150122:134634.053 Database is down. Reconnecting in 10 seconds.
    5229:20150122:134644.053 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    5229:20150122:134644.054 Database is down. Reconnecting in 10 seconds.
    5229:20150122:134654.054 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    5229:20150122:134654.054 Database is down. Reconnecting in 10 seconds.
    5229:20150122:134704.055 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    5229:20150122:134704.055 Database is down. Reconnecting in 10 seconds.
    5229:20150122:134714.055 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    5229:20150122:134714.055 Database is down. Reconnecting in 10 seconds.
    5229:20150122:134724.056 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    5229:20150122:134724.056 Database is down. Reconnecting in 10 seconds.
    5229:20150122:134734.057 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    5229:20150122:134734.057 Database is down. Reconnecting in 10 seconds.
    5229:20150122:134744.057 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    5229:20150122:134744.057 Database is down. Reconnecting in 10 seconds.
    5229:20150122:134754.058 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    5229:20150122:134754.058 Database is down. Reconnecting in 10 seconds.
    5229:20150122:134804.058 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    5229:20150122:134804.059 Database is down. Reconnecting in 10 seconds.
    5229:20150122:134812.636 Got signal [signal:15(SIGTERM),sender_pid:5410,sender_uid:0,re ason:0]. Exiting ...
    5229:20150122:134814.637 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    5229:20150122:134814.637 Cannot connect to the database. Exiting...
    1936:20150122:135039.404 Starting Zabbix Server. Zabbix 2.2.8 (revision 51174).
    1936:20150122:135039.445 ****** Enabled features ******
    1936:20150122:135039.445 SNMP monitoring: YES
    1936:20150122:135039.445 IPMI monitoring: YES
    1936:20150122:135039.445 WEB monitoring: YES
    1936:20150122:135039.445 VMware monitoring: YES
    1936:20150122:135039.445 Jabber notifications: YES
    1936:20150122:135039.445 Ez Texting notifications: YES
    1936:20150122:135039.445 ODBC: YES
    1936:20150122:135039.445 SSH2 support: YES
    1936:20150122:135039.445 IPv6 support: YES
    1936:20150122:135039.445 ******************************
    1936:20150122:135039.445 using configuration file: /etc/zabbix/zabbix_server.conf
    1936:20150122:135039.453 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    1936:20150122:135039.453 Database is down. Reconnecting in 10 seconds.
    1936:20150122:135049.944 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    1936:20150122:135049.944 Database is down. Reconnecting in 10 seconds.
    1936:20150122:135059.944 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    1936:20150122:135059.944 Database is down. Reconnecting in 10 seconds.
    1936:20150122:135109.944 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    1936:20150122:135109.944 Database is down. Reconnecting in 10 seconds.
    1936:20150122:135119.944 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    1936:20150122:135119.945 Database is down. Reconnecting in 10 seconds.
    1936:20150122:135129.945 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    1936:20150122:135129.945 Database is down. Reconnecting in 10 seconds.
    1936:20150122:135139.945 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    1936:20150122:135139.945 Database is down. Reconnecting in 10 seconds.
    1936:20150122:135149.946 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    1936:20150122:135149.946 Database is down. Reconnecting in 10 seconds.
    1936:20150122:135159.946 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    1936:20150122:135159.947 Database is down. Reconnecting in 10 seconds.
    1936:20150122:135209.947 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    1936:20150122:135209.947 Database is down. Reconnecting in 10 seconds.
    1936:20150122:135219.947 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    1936:20150122:135219.947 Database is down. Reconnecting in 10 seconds.
    1936:20150122:135229.947 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    1936:20150122:135229.947 Database is down. Reconnecting in 10 seconds.
    1936:20150122:135239.948 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    1936:20150122:135239.948 Database is down. Reconnecting in 10 seconds.
    1936:20150122:135249.949 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    1936:20150122:135249.949 Database is down. Reconnecting in 10 seconds.
    1936:20150122:135259.950 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    1936:20150122:135259.950 Database is down. Reconnecting in 10 seconds.
    1936:20150122:135309.951 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    1936:20150122:135309.951 Database is down. Reconnecting in 10 seconds.
    1936:20150122:135319.951 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    1936:20150122:135319.951 Database is down. Reconnecting in 10 seconds.
    1936:20150122:135329.952 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    1936:20150122:135329.952 Database is down. Reconnecting in 10 seconds.
    1936:20150122:135339.952 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    1936:20150122:135339.952 Database is down. Reconnecting in 10 seconds.
    1936:20150122:135349.953 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    1936:20150122:135349.953 Database is down. Reconnecting in 10 seconds.
    1936:20150122:135359.953 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    1936:20150122:135359.953 Database is down. Reconnecting in 10 seconds.
    1936:20150122:135409.953 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    1936:20150122:135409.953 Database is down. Reconnecting in 10 seconds.
    1936:20150122:135419.957 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    1936:20150122:135419.957 Database is down. Reconnecting in 10 seconds.
    1936:20150122:135429.958 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    1936:20150122:135429.958 Database is down. Reconnecting in 10 seconds.
    1936:20150122:135439.958 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    1936:20150122:135439.958 Database is down. Reconnecting in 10 seconds.
    1936:20150122:135449.959 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    1936:20150122:135449.959 Database is down. Reconnecting in 10 seconds.
    1936:20150122:135459.959 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    1936:20150122:135459.960 Database is down. Reconnecting in 10 seconds.
    1936:20150122:135509.960 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    1936:20150122:135509.960 Database is down. Reconnecting in 10 seconds.
    1936:20150122:135519.961 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    1936:20150122:135519.961 Database is down. Reconnecting in 10 seconds.
    1936:20150122:135529.962 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)
    1936:20150122:135529.962 Database is down. Reconnecting in 10 seconds.
    Thanks!
  • quejinho
    Junior Member
    • Jan 2015
    • 11

    #2
    1. Database is down. Reconnecting in 10 seconds.

    2. connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: NO)


    I understand that You are new to zabbix. But You pasted log without reading it i think.

    Comment

    • FaintDeftone
      Junior Member
      • Jan 2015
      • 2

      #3
      I got it to work. Thanks anyways.

      I read the log. The solution didn't have anything to do with database credentials. I had to move some files around in order for the server portion to kick in.

      Comment

      • quejinho
        Junior Member
        • Jan 2015
        • 11

        #4
        Please paste here what did You do there.

        Comment

        • bandumitra
          Junior Member
          • Apr 2015
          • 1

          #5
          Hi All,
          i had the same problem after fresh install. i have modified SELinux rules to fix the issue.
          [root@zabbix ~]# getsebool httpd_can_network_connect
          httpd_can_network_connect --> off
          [root@zabbix ~]# setsebool -P httpd_can_network_connect on
          [root@zabbix ~]# getsebool httpd_can_network_connect
          httpd_can_network_connect --> on


          below is the link i used.


          Occasionally, typically post a reboot of the Zabbix server, the message “Zabbix server is not running the information displayed may not be current” may appear. this is probably caused b…

          Comment

          • Betajake
            Junior Member
            • Nov 2015
            • 7

            #6
            Worked great!

            I had my Zabbix Server not connecting. Your solution worked.

            Ran setsebool -P httpd_can_network_connect on
            Ran getsebool httpd_can_network_connect

            Comment

            • shoebeedoo
              Junior Member
              • Apr 2016
              • 4

              #7
              Access Denied for User

              Hi All,

              I'm also new to Zabbix, however, I am experiencing this problem when I try to run the server log.

              [root@localhost ~]# tail /var/log/zabbix/zabbix_server.log
              2321:20160401:105149.480 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: YES)
              2321:20160401:105149.480 database is down: reconnecting in 10 seconds
              2321:20160401:105159.481 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: YES)
              2321:20160401:105159.481 database is down: reconnecting in 10 seconds
              2321:20160401:105209.483 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: YES)
              2321:20160401:105209.483 database is down: reconnecting in 10 seconds
              2321:20160401:105219.485 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: YES)
              2321:20160401:105219.485 database is down: reconnecting in 10 seconds
              2321:20160401:105229.487 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: YES)
              2321:20160401:105229.487 database is down: reconnecting in 10 seconds
              [root@localhost ~]#

              I am confused as to what the problem might be, if anyone can be of assistance, that will be absolutely lovely. Thanks in advance.

              Comment

              Working...