Hi all, I updated two hosts today and systemd service icinga2 has problem to start after that. Icinga2 service will start but systemd doesn't know that. Systemd is waiting for something (maybe return code) and after half an hour (30 minutes) timeout. When systemd timeout on start-up of icinga2 service then it shutdown the service. So icinga2 is running till timeout.
I'm runnig on: Operating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 3.10.0-693.11.6.el7.x86_64 and Operating System: Red Hat Enterprise Linux CPE OS Name: cpe:/o:redhat:enterprise_linux:7.5:GA:server Kernel: Linux 3.10.0-862.6.3.el7.x86_64 Start icinga2 using: systemctl start icinga2 The command doesn't complete. If I run status in different terminal the service is running: # systemctl status icinga2 ● icinga2.service - Icinga host/service/network monitoring system Loaded: loaded (/usr/lib/systemd/system/icinga2.service; enabled; vendor preset: disabled) Active: activating (start) since So 2018-07-21 13:00:13 CEST; 13min ago Process: 6046 ExecStartPre=/usr/lib/icinga2/prepare-dirs /etc/sysconfig/icinga2 (code=exited, status=0/SUCCESS) Main PID: 6054 (icinga2) CGroup: /system.slice/icinga2.service ├─6054 /usr/lib64/icinga2/sbin/icinga2 --no-stack-rlimit daemon -e └─6088 /usr/lib64/icinga2/sbin/icinga2 --no-stack-rlimit daemon -e The PID file is created. Th process are running. The application is logging. And the agent is communicating with master. After half an hour (30 mins) the start command complete and status is: # systemctl status icinga2 ● icinga2.service - Icinga host/service/network monitoring system Loaded: loaded (/usr/lib/systemd/system/icinga2.service; enabled; vendor preset: disabled) Active: failed (Result: timeout) since So 2018-07-21 13:30:13 CEST; 29min ago Process: 6054 ExecStart=/usr/sbin/icinga2 daemon -e ${ICINGA2_ERROR_LOG} (code=exited, status=0/SUCCESS) Process: 6046 ExecStartPre=/usr/lib/icinga2/prepare-dirs /etc/sysconfig/icinga2 (code=exited, status=0/SUCCESS) Main PID: 6054 (code=exited, status=0/SUCCESS) čec 21 13:30:13 host.example.com icinga2[6054]: [2018-07-21 13:30:08 +0200] information/...); čec 21 13:30:13 host.example.com icinga2[6054]: [2018-07-21 13:30:13 +0200] information/...n. čec 21 13:30:13 host.example.com icinga2[6054]: [2018-07-21 13:30:13 +0200] information/..... čec 21 13:30:13 host.example.com icinga2[6054]: [2018-07-21 13:30:13 +0200] information/...d. čec 21 13:30:13 host.example.com icinga2[6054]: [2018-07-21 13:30:13 +0200] information/...d. čec 21 13:30:13 host.example.com icinga2[6054]: [2018-07-21 13:30:13 +0200] information/...e' čec 21 13:30:13 host.example.com icinga2[6054]: [2018-07-21 13:30:13 +0200] information/...n. čec 21 13:30:13 host.example.com systemd[1]: Failed to start Icinga host/service/network...m. čec 21 13:30:13 host.example.com systemd[1]: Unit icinga2.service entered failed state. čec 21 13:30:13 host.example.com systemd[1]: icinga2.service failed. So Icinga2 master still sending emails that load on host.example.com is UNKNOWN! Info: Remote Icinga instance 'host.example.com' is not connected to 'icinga.example.com' I need to keep agents running. Anybody has a solution how to tell systemd that icinga2 is running? Or at least some workaround that it will not shutdown service at timeout? Thanks in advance for any tips. Best Johnny _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users