Ad Widget

Collapse

"ps" shows zabbix_server running, but server not listening on port 10051

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mahoneys
    Junior Member
    • Sep 2006
    • 2

    #1

    "ps" shows zabbix_server running, but server not listening on port 10051

    I'm trying to install Zabbix 3.2 on Centos 7.1. I was getting errors on trying to start with "systemctl start zabbix_server" until I installed trousers. Now it starts just fine.

    I can see zabbix_server is running, since I can see it in ps. When I try to telnet to port 10051 I get "Connection refused".

    zabbix-agent is also running, and I can see in lsof and in netstat that it has port 10050 open, and I get a connection when I telnet to 10050.

    So my question is, why is port 10051 not open when zabbix_server is running?
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Please check the log of the Zabbix server. (/var/log/zabbix/zabbix_server.log)
    Are some error messages output to the log file?

    Comment

    • higunna
      Junior Member
      • Mar 2017
      • 1

      #3
      If you found below error in /var/log/zabbix/zabbix_server.log
      cannot set MySQL character set to "utf8"
      10935:20170320:065144.208 database is down: reconnecting in 10 seconds
      10935:20170320:065154.208 [Z3001] connection to database 'zabbixdb' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: YES)

      use below in /etc/zabbix/zabbix_server.conf
      119 ### Option: DBSocket
      125 #DBSocket=/tmp/mysql.sock
      133 # DBPort=3306
      134 DBPort=3306

      Note: uncomment DBPort=3306 and comment #DBSocket=/tmp/mysql.soc

      Comment

      • kloczek
        Senior Member
        • Jun 2006
        • 1771

        #4
        Originally posted by mahoneys
        I'm trying to install Zabbix 3.2 on Centos 7.1. I was getting errors on trying to start with "systemctl start zabbix_server" until I installed trousers. Now it starts just fine.

        I can see zabbix_server is running, since I can see it in ps. When I try to telnet to port 10051 I get "Connection refused".

        zabbix-agent is also running, and I can see in lsof and in netstat that it has port 10050 open, and I get a connection when I telnet to 10050.

        So my question is, why is port 10051 not open when zabbix_server is running?
        So zabbix is listening but you cannot connect

        Firewall? SELinux AVCes?
        http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
        https://kloczek.wordpress.com/
        zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
        My zabbix templates https://github.com/kloczek/zabbix-templates

        Comment

        Working...