Ad Widget

Collapse

Agent doesn't start after reboot

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Exonix
    Junior Member
    • Oct 2017
    • 14

    #1

    Agent doesn't start after reboot

    Debian 9.1.0 x64
    zabbix_agentd -V
    zabbix_agentd (daemon) (Zabbix) 3.4.2
    Revision 72885 25 September 2017, compilation time: Sep 25 2017 15:54:03

    Copyright (C) 2017 Zabbix SIA
    License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>.
    This is free software: you are free to change and redistribute it according to
    the license. There is NO WARRANTY, to the extent permitted by law.

    zabbix_server -V
    zabbix_server (Zabbix) 3.4.2
    Revision 72885 25 September 2017, compilation time: Sep 25 2017 15:54:03

    Copyright (C) 2017 Zabbix SIA
    License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>.
    This is free software: you are free to change and redistribute it according to
    the license. There is NO WARRANTY, to the extent permitted by law.
    tail -f -n 75 /var/log/zabbix/zabbix_agentd.log
    937:20171016:115951.401 Got signal [signal:15(SIGTERM),sender_pid:2362,sender_uid:0,re ason:0]. Exiting ...
    937:20171016:115951.448 Zabbix Agent stopped. Zabbix 3.4.2 (revision 72885).
    tail -f -n 75 /var/log/zabbix/zabbix_server.log
    689:20171016:120019.877 Zabbix agent item "system.cpu.util[,idle]" on host "Zabbix server" failed: first network error, wait for 15 seconds
    690:20171016:120034.898 Zabbix agent item "system.cpu.util[,softirq]" on host "Zabbix server" failed: another network error, wait for 15 seconds
    690:20171016:120049.921 Zabbix agent item "system.cpu.util[,system]" on host "Zabbix server" failed: another network error, wait for 15 seconds
    690:20171016:120104.947 temporarily disabling Zabbix agent checks on host "Zabbix server": host unavailable
    what i have done to configure startup:

    Code:
    update-rc.d zabbix-agent defaults
    but it haven't helped. If I start the agent manually - it works:

    /etc/init.d/zabbix-agent start
    1379:20171016:121335.293 Starting Zabbix Agent [Zabbix server]. Zabbix 3.4.2 (revision 72885).
    1379:20171016:121335.293 **** Enabled features ****
    1379:20171016:121335.293 IPv6 support: YES
    1379:20171016:121335.293 TLS support: YES
    1379:20171016:121335.293 **************************
    1379:20171016:121335.293 using configuration file: /etc/zabbix/zabbix_agentd.conf
    1379:20171016:121335.294 agent #0 started [main process]
    1381:20171016:121335.295 agent #2 started[listener #1]
    1382:20171016:121335.296 agent #3 started[listener #2]
    1383:20171016:121335.296 agent #4 started[listener #3]
    1384:20171016:121335.297 agent #5 started [active checks #1]
    1380:20171016:121335.301 agent #1 started [collector]

    how can I fix it?

    thanks!
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    If you are using Debian 9.1.0 (stretch), I think that you are using systemd to start daemons.
    Please try configuring it to start automatically using the systemctl command.

    ex.
    Code:
    # systemctl enable zabbix-agent

    Comment

    • Exonix
      Junior Member
      • Oct 2017
      • 14

      #3
      thanks. It seems to be working.
      Code:
      20810:20171018:103655.191 Got signal [signal:15(SIGTERM),sender_pid:1,sender_uid:0,reason:0]. Exiting ...
       20807:20171018:103655.191 Got signal [signal:15(SIGTERM),sender_pid:149832,sender_uid:0,reason:0]. Exiting ...
       20808:20171018:103655.192 Got signal [signal:15(SIGTERM),sender_pid:1,sender_uid:0,reason:0]. Exiting ...
       20812:20171018:103655.197 Got signal [signal:15(SIGTERM),sender_pid:1,sender_uid:0,reason:0]. Exiting ...
       20811:20171018:103655.199 Got signal [signal:15(SIGTERM),sender_pid:1,sender_uid:0,reason:0]. Exiting ...
       20809:20171018:103655.199 Got signal [signal:15(SIGTERM),sender_pid:1,sender_uid:0,reason:0]. Exiting ...
       20807:20171018:103655.206 Zabbix Agent stopped. Zabbix 3.4.2 (revision 72885).
         520:20171018:103711.636 Starting Zabbix Agent [Zabbix server]. Zabbix 3.4.2 (revision 72885).
         520:20171018:103711.638 **** Enabled features ****
         520:20171018:103711.638 IPv6 support:          YES
         520:20171018:103711.638 TLS support:           YES
         520:20171018:103711.638 **************************
         520:20171018:103711.638 using configuration file: /etc/zabbix/zabbix_agentd.conf
         520:20171018:103711.641 agent #0 started [main process]
         531:20171018:103711.642 agent #1 started [collector]
         532:20171018:103711.642 agent #2 started[listener #1]
         533:20171018:103711.642 agent #3 started[listener #2]
         534:20171018:103711.643 agent #4 started[listener #3]
         535:20171018:103711.643 agent #5 started [active checks #1]
      Last edited by Exonix; 18-10-2017, 11:57.

      Comment

      Working...