Ad Widget

Collapse

ZabbiX Server does not start, zabbix_server.log almost empty. How to debug?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • okoester
    Junior Member
    • Aug 2014
    • 11

    #1

    ZabbiX Server does not start, zabbix_server.log almost empty. How to debug?

    Hi together,

    I'm currently working on a very strange problem.

    I'm trying to install Zabbix Server 2.2.1 on FreeBSD inside a jail.
    Installation was startet from Portstree with
    Code:
    make install clean; rehash
    That all works fine for me. Everything went as expected.
    I also installed zabbix-frontend and MySQL 5.5 together with php-fpm and nginx.

    The DB was set up as mentioned, web frontend came up and running afer some small problems. (nginx is running under user www).

    I started zabbix_server with
    Code:
    #> service zabbix_server start
    and all seemed well. But zabbix frontend told me that server was not running. So I checked with
    Code:
    #> service zabbix_server status
    zabbix_server is not running.
    So I checked Port 10051 on that jail and found
    Code:
    #>  telnet 127.0.0.1 10051
    telnet: connect to address 127.0.0.1: Connection refused
    telnet: Unable to connect to remote host
    then
    Code:
     
    #> ps aux | grep zabbix
    came up with no results. So it seems that there really no zabbix_server is running.

    I have googled for almost 3 days now and found some obviously useful hints like expanding shared memory, or using strace to figure out the problems and so on.
    But none of them helped. And since I'm running FreeBSD under amd64, strace is not available.

    Here are some informations:
    Code:
    #> uname -a
    FreeBSD monitoring.kits.loc 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013     [email protected]:/usr/obj/usr/src/sys/GENERIC  amd64
    
    #> zabbix_server -V
    Zabbix server v2.2.1 (revision 40808) (09 December 2013)
    Compilation time: Aug  4 2014 12:51:42
    
    #> cat /tmp/zabbix_server.log
    zabbix_server [64619]: cannot create Semaphore: [78] Function not implemented
    zabbix_server [64619]: unable to create mutex for log file
    [...]
    For my understanding there should be something more inside the log files. But because the server seems not even to come up before ending immediately, either the mutex creation problem or maybe an access rights problem during startup phase could be causing that.

    Valid options from zabbix_server.conf:
    Code:
    #>cat /usr/local/etc/zabbix22/zabbix_server.conf | grep -v -E -e '^(|#.*)$'
    LogFile=/tmp/zabbix_server.log
    DebugLevel=4
    PidFile=/var/run/zabbix/zabbix_server.pid
    DBHost=localhost
    DBName=zabbix
    DBUser=zabbix
    DBPassword=secret
    ListenIP=xxx.xxx.xxx.xxx
    How can I debug that problem?
    Any ideas/suggestions?

    B.T.W.: MySQL is accessible by mysql command. Full access rights for zabbix tables are set for zabbix@localhost and zabbix@external_IP

    My problem is, that I can not see any log entries.

    Who can help?

    Olaf
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    Does your FreeBSD have SELinux enabled? That could be part of the issue.

    And another way I would try to start Zabbix server instead of using "service zabbix_server start" , would be this from the commandline:

    /usr/local/sbin/zabbix_server -c /usr/local/etc/zabbix22/zabbix_server.conf

    Of course, make the path match where your <binary path> -c <conf file path>

    Comment

    • okoester
      Junior Member
      • Aug 2014
      • 11

      #3
      same result

      Hi,

      there is no SElinux installed in FreeBSD.
      The Zabbix Server is running inside jail, so this might cause problems. But I have some other services like SMTP also running in jail (ezjail) and those work great. Jail config is almost the same except IP address.

      I've already ran the command you mentioned earlier while testing. Result is the same.

      As said, the problem is that there is really no log information at all.

      Regards
      Olaf

      Comment

      • jan.garaj
        Senior Member
        Zabbix Certified Specialist
        • Jan 2010
        • 506

        #4
        Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
        My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

        Comment

        Working...