Ad Widget

Collapse

Zabbix server is running :No

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • funkytwig
    Member
    • Jun 2016
    • 37

    #1

    Zabbix server is running :No

    I am new to Zabbix so installed agent and server on same machine to play with it. all seemed to go well, can logion the we interface but it says

    Zabbix server is running :No

    server and agent seems to be running

    root@sun:~# service zabbix-server start
    start: Job is already running: zabbix-server
    root@sun:~# service zabbix-agent start
    start: Job is already running: zabbix-agent

    ps aux | grep zabb gives me

    zabbix 1033 0.0 0.0 88656 2048 ? S 20:26 0:00 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
    zabbix 1047 0.0 0.0 88656 2164 ? S 20:26 0:00 /usr/sbin/zabbix_agentd: collector [idle 1 sec]
    zabbix 1048 0.0 0.0 88656 1824 ? S 20:26 0:00 /usr/sbin/zabbix_agentd: listener #1 [waiting for connection]
    zabbix 1049 0.0 0.0 88656 1824 ? S 20:26 0:00 /usr/sbin/zabbix_agentd: listener #2 [waiting for connection]
    zabbix 1050 0.0 0.0 88656 1824 ? S 20:26 0:00 /usr/sbin/zabbix_agentd: listener #3 [waiting for connection]
    zabbix 1051 0.0 0.0 88656 2212 ? S 20:26 0:00 /usr/sbin/zabbix_agentd: active checks #1 [idle 1 sec]
    root 1894 0.0 0.0 11756 2148 pts/1 S+ 20:35 0:00 grep --color=auto zabb

    In zabbix_agentd.conf I have

    Server=127.0.0.1
    ServerActive=127.0.0.1
    Hostname=sun.prsc.org.uk

    (the Hostname is not a internet facing one, just a label for the server)

    zabbix.conf.php

    <?php
    // Zabbix GUI configuration file
    global $DB;

    $DB['TYPE'] = 'MYSQL';
    $DB['SERVER'] = 'localhost';
    $DB['PORT'] = '0';
    $DB['DATABASE'] = 'zabbix';
    $DB['USER'] = 'zabbix';
    $DB['PASSWORD'] = 'mysql_password';

    // SCHEMA is relevant only for IBM_DB2 database
    $DB['SCHEMA'] = '';

    $ZBX_SERVER = 'localhost';
    $ZBX_SERVER_PORT = '10051';
    $ZBX_SERVER_NAME = '';

    $IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
    ?>
    ~

    (mysql_password is the actual password)

    zabbix_server.conf

    zabbix_server.conf is the same as above.

    I installed from the Ubuntu 14.04 repositories.

    What have I done wrong.

    Ben
  • zabx_ks
    Member
    • May 2016
    • 48

    #2
    Hi funkytwig,

    Can you show me what your zabbix server log shows?

    Code:
    tail /var/log/zabbix/zabbix_server.log -n 15
    And have you checked your SElinux settings?

    Code:
    setsebool -P httpd_can_network_connect=1
    setsebool -P httpd_can_connect_zabbix=1
    getsebool -a | grep zabbix
    setsebool -P zabbix_can_network=1
    zabx_ks

    Comment

    • funkytwig
      Member
      • Jun 2016
      • 37

      #3
      Thanks for reply but ended up installing zabbix 3 and all seems well. Would of updated posat but it was still being moderated.

      Comment

      Working...