Ad Widget

Collapse

Zabbix 2.4 new install, "zabbix server is not running" in webinterface

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pxsh
    Junior Member
    • Oct 2013
    • 14

    #1

    Zabbix 2.4 new install, "zabbix server is not running" in webinterface

    Hello,
    Recently installed Zabbix 2.4 on a fresh CentOS, following the steps on https://www.zabbix.com/documentation..._from_packages page, however the webinterface refuses to accept that Zabbix server is running.

    both /etc/zabbix/web/zabbix.conf.php and /etc/zabbix/zabbix_server.conf seems to be correctly configured.

    Checking Host configuraton for the "Zabbix server" shows an blue "Z" indicating that the agent is running and connecitivity between agent and server is ok.

    Any tips on how to solve this ?

    Edit:
    After many many google searches I found that it was SELinux related, which I forgot was enabled by default on fresh installs of CentOS.

    Setting the SELinux mode to "permissive" enabled the communication: setenforce permissive

    In this mode the SELinux will not enforce but inform instead.

    Temporary solution of course, really need to dig into SELinux and set correct rules but this will hopefully be good information for anyone else struggling with this.
    Last edited by pxsh; 26-03-2015, 11:21.
  • ingus.vilnis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2014
    • 908

    #2
    Hej,

    What version of CentOS are you using? 6.x or 7? SELinux settings differ on those.

    Some useful commands that can help you and leave SELinux in Enforcing mode.

    Code:
    getsebool -a
    Shows current status for applications in SELinux.
    Code:
    setsebool -P zabbix_can_network=true
    Allows Zabbix through network. I don't recall but I think this was the cause for "zabbix server is not running"
    Code:
    setsebool -P httpd_can_network_connect=true
    Allows connects to web interface.

    I think this was enough on CentOS 6.6. On 7 it was more. I have to look up, if you need.

    Best Regards,
    Ingus

    Comment

    • Pada
      Senior Member
      • Apr 2012
      • 236

      #3
      Thanks Ingus, those 2 commands fixed the issue for me on CentOS 6.6.

      Comment

      Working...