Ad Widget

Collapse

zabbix run from command line but not as a service CentOS 7 Zabbix 3.4

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vbmchik
    Junior Member
    • Apr 2018
    • 2

    #1

    zabbix run from command line but not as a service CentOS 7 Zabbix 3.4

    Hi.
    I installed zabbix on centos 7 as suggested in manual and I cannot start service it say configuration resource limit exceeded.
    Thought from command line it runs with no problem.
    Some logs following
    service zabbix-server status
    Redirecting to /bin/systemctl status zabbix-server.service
    ● zabbix-server.service - Zabbix Server
    Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; enabled; vendor preset: disabled)
    Active: activating (auto-restart) (Result: exit-code) since Wed 2018-04-18 15:32:40 MSK; 5s ago
    Process: 3444 ExecStop=/bin/kill -SIGTERM $MAINPID (code=exited, status=1/FAILURE)
    Process: 3440 ExecStart=/usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf (code=exited, status=0/SUCCESS)
    Main PID: 3442 (code=exited, status=1/FAILURE)

    Apr 18 15:32:40 2bmon.hogart.local kill[3444]: -q, --queue <sig> use sigqueue(2) rather than kill(2)
    Apr 18 15:32:40 2bmon.hogart.local kill[3444]: -p, --pid print pids without signaling them
    Apr 18 15:32:40 2bmon.hogart.local kill[3444]: -l, --list [=<signal>] list signal names, or convert one to a name
    Apr 18 15:32:40 2bmon.hogart.local kill[3444]: -L, --table list signal names and numbers
    Apr 18 15:32:40 2bmon.hogart.local kill[3444]: -h, --help display this help and exit
    Apr 18 15:32:40 2bmon.hogart.local kill[3444]: -V, --version output version information and exit
    Apr 18 15:32:40 2bmon.hogart.local kill[3444]: For more details see kill(1).
    Apr 18 15:32:40 2bmon.hogart.local systemd[1]: zabbix-server.service: control process exited, code=exited status=1
    Apr 18 15:32:40 2bmon.hogart.local systemd[1]: Unit zabbix-server.service entered failed state.
    Apr 18 15:32:40 2bmon.hogart.local systemd[1]: zabbix-server.service failed.
    Hint: Some lines were ellipsized, use -l to show in full.

    And zabbix-server.service file contents
    [Unit]
    Description=Zabbix Server
    After=syslog.target
    After=network.target

    [Service]
    Environment="CONFFILE=/etc/zabbix/zabbix_server.conf"
    EnvironmentFile=-/etc/sysconfig/zabbix-server
    Type=forking
    Restart=on-failure
    PIDFile=/run/zabbix/zabbix_server.pid
    KillMode=control-group
    ExecStart=/usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf
    ExecStop=/bin/kill -SIGTERM $MAINPID
    RestartSec=10s
    TimeoutSec=0

    [Install]
    WantedBy=multi-user.target

    Can anyone suggest something?

  • vbmchik
    Junior Member
    • Apr 2018
    • 2

    #2
    SOLVED - selinux tuning
    cat /var/log/audit/audit.log | grep zabbix_server | grep denied | audit2allow -M zabbix_setrlimit
    when
    semodule -i zabbix_setrlimit.pp

    Comment

    Working...