OS Version: CentOS Linux release 7.3.1611
Nagios Version: Nagios Core 4.3.2
ERROR:
SYSTEMCTL STATUS NAGIOS.SERVICE[root@monitor objects]# systemctl start nagios.service
Job for nagios.service failed because a timeout was exceeded. See "systemctl status nagios.service" and "journalctl -xe" for details.
JOURNALCTL -XE● nagios.service - Nagios Network Monitoring
Loaded: loaded (/usr/lib/systemd/system/nagios.service; enabled; vendor preset: disabled)
Active: failed (Result: timeout) since Fri 2017-09-01 09:58:44 PDT; 6min ago
Docs: https://www.nagios.org/documentation/
Process: 2664 ExecStopPost=/bin/rm -f /usr/local/nagios/var/rw/nagios.cmd (code=exited, status=0/SUCCESS)
Process: 2661 ExecStopPost=/bin/rm -f /usr/local/nagios/var/status.dat (code=exited, status=0/SUCCESS)
Process: 2659 ExecStopPost=/bin/rm -f /usr/local/nagios/var/run/nagios.pid (code=exited, status=0/SUCCESS)
Process: 2657 ExecStopPost=/usr/bin/rm -f /usr/local/nagios/var/rw/nagios.cmd (code=exited, status=0/SUCCESS)
Process: 42998 ExecStart=/usr/sbin/nagios -d /usr/local/nagios/etc/nagios.cfg (code=exited, status=0/SUCCESS)
Process: 42997 ExecStartPre=/usr/sbin/nagios -v /usr/local/nagios/etc/nagios.cfg (code=exited, status=0/SUCCESS)
Sep 01 09:57:13 monitor systemd[1]: Starting Nagios Network Monitoring...
Sep 01 09:57:13 monitor systemd[1]: PID file /usr/local/nagios/var/run/nagios.pid not readable (yet?) after start.
Sep 01 09:58:43 monitor systemd[1]: nagios.service start operation timed out. Terminating.
Sep 01 09:58:44 monitor systemd[1]: Failed to start Nagios Network Monitoring.
Sep 01 09:58:44 monitor systemd[1]: Unit nagios.service entered failed state.
Sep 01 09:58:44 monitor systemd[1]: nagios.service failed.
~Sep 01 10:09:25 monitor nagios[42997]: Read main config file okay...
Sep 01 10:09:25 monitor nagios[42997]: Warning: failure_prediction_enabled is obsoleted and no longer has any effect in service type
Sep 01 10:09:25 monitor nagios[42997]: WARNING: The normal_check_interval attribute is deprecated and will be removed in future versi
Sep 01 10:09:25 monitor nagios[42997]: WARNING: The retry_check_interval attribute is deprecated and will be removed in future versio
Sep 01 10:09:25 monitor nagios[42997]: WARNING: The normal_check_interval attribute is deprecated and will be removed in future versi
Sep 01 10:09:25 monitor nagios[42997]: WARNING: The retry_check_interval attribute is deprecated and will be removed in future versio
Sep 01 10:09:25 monitor nagios[42997]: WARNING: The normal_check_interval attribute is deprecated and will be removed in future versi
Sep 01 10:09:25 monitor nagios[42997]: WARNING: The retry_check_interval attribute is deprecated and will be removed in future versio
Sep 01 10:09:25 monitor nagios[42997]: WARNING: The normal_check_interval attribute is deprecated and will be removed in future versi
Sep 01 10:09:25 monitor nagios[42997]: WARNING: The retry_check_interval attribute is deprecated and will be removed in future versio
Sep 01 10:09:25 monitor nagios[42997]: WARNING: The normal_check_interval attribute is deprecated and will be removed in future versi
Sep 01 10:09:25 monitor nagios[42997]: WARNING: The retry_check_interval attribute is deprecated and will be removed in future versio
Sep 01 10:09:25 monitor nagios[42997]: Read object config files okay...
Sep 01 10:09:25 monitor nagios[42997]: Running pre-flight check on configuration data...
Sep 01 10:09:25 monitor nagios[42997]: Checking objects...
Sep 01 10:09:25 monitor nagios[42997]: Checked 758 services.
Sep 01 10:09:25 monitor nagios[42997]: Checked 156 hosts.
Sep 01 10:09:25 monitor nagios[42997]: Checked 6 host groups.
Sep 01 10:09:25 monitor nagios[42997]: Checked 0 service groups.
Sep 01 10:09:25 monitor nagios[42997]: Checked 11 contacts.
Sep 01 10:09:25 monitor nagios[42997]: Checked 2 contact groups.
Sep 01 10:09:25 monitor nagios[42997]: Checked 46 commands.
Sep 01 10:09:25 monitor nagios[42997]: Checked 7 time periods.
Sep 01 10:09:25 monitor nagios[42997]: Checked 0 host escalations.
Sep 01 10:09:25 monitor nagios[42997]: Checked 0 service escalations.
Sep 01 10:09:25 monitor nagios[42997]: Checking for circular paths...
Sep 01 10:09:25 monitor nagios[42997]: Checked 156 hosts
Sep 01 10:09:25 monitor nagios[42997]: Checked 0 service dependencies
Sep 01 10:09:25 monitor nagios[42997]: Checked 0 host dependencies
Sep 01 10:09:25 monitor nagios[42997]: Checked 7 timeperiods
Sep 01 10:09:25 monitor nagios[42997]: Checking global event handlers...
Sep 01 10:09:25 monitor nagios[42997]: Checking obsessive compulsive processor commands...
Sep 01 10:09:25 monitor nagios[42997]: Checking misc settings...
Sep 01 10:09:25 monitor nagios[42997]: Total Warnings: 0
Sep 01 10:09:25 monitor nagios[42997]: Total Errors: 0
Sep 01 10:09:25 monitor nagios[42997]: Things look okay - No serious problems were detected during the pre-flight check
Sep 01 10:09:25 monitor systemd[1]: PID file /usr/local/nagios/var/run/nagios.pid not readable (yet?) after start.
Sep 01 10:10:55 monitor systemd[1]: nagios.service start operation timed out. Terminating.
Sep 01 10:10:56 monitor systemd[1]: Failed to start Nagios Network Monitoring.
-- Subject: Unit nagios.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit nagios.service has failed.
--
-- The result is failed.
Sep 01 10:10:56 monitor systemd[1]: Unit nagios.service entered failed state.
Sep 01 10:10:56 monitor systemd[1]: nagios.service failed.
Sep 01 10:10:56 monitor polkitd[614]: Unregistered Authentication Agent for unix-process:42991:6076085 (system bus name :1.109, objec
lines 1399-1447/1447 (END)
Sep 01 10:09:25 monitor nagios[42997]: Read main config file okay...
Sep 01 10:09:25 monitor nagios[42997]: Warning: failure_prediction_enabled is obsoleted and no longer has any effect in service type objects (config file '/usr/local/nagios/dell/config/templates/dell
Sep 01 10:09:25 monitor nagios[42997]: WARNING: The normal_check_interval attribute is deprecated and will be removed in future versions. Please use check_interval instead.
Sep 01 10:09:25 monitor nagios[42997]: WARNING: The retry_check_interval attribute is deprecated and will be removed in future versions. Please use retry_interval instead.
Sep 01 10:09:25 monitor nagios[42997]: WARNING: The normal_check_interval attribute is deprecated and will be removed in future versions. Please use check_interval instead.
Sep 01 10:09:25 monitor nagios[42997]: WARNING: The retry_check_interval attribute is deprecated and will be removed in future versions. Please use retry_interval instead.
Sep 01 10:09:25 monitor nagios[42997]: WARNING: The normal_check_interval attribute is deprecated and will be removed in future versions. Please use check_interval instead.
Sep 01 10:09:25 monitor nagios[42997]: WARNING: The retry_check_interval attribute is deprecated and will be removed in future versions. Please use retry_interval instead.
Sep 01 10:09:25 monitor nagios[42997]: WARNING: The normal_check_interval attribute is deprecated and will be removed in future versions. Please use check_interval instead.
Sep 01 10:09:25 monitor nagios[42997]: WARNING: The retry_check_interval attribute is deprecated and will be removed in future versions. Please use retry_interval instead.
Sep 01 10:09:25 monitor nagios[42997]: WARNING: The normal_check_interval attribute is deprecated and will be removed in future versions. Please use check_interval instead.
Sep 01 10:09:25 monitor nagios[42997]: WARNING: The retry_check_interval attribute is deprecated and will be removed in future versions. Please use retry_interval instead.
Sep 01 10:09:25 monitor nagios[42997]: Read object config files okay...
Sep 01 10:09:25 monitor nagios[42997]: Running pre-flight check on configuration data...
Sep 01 10:09:25 monitor nagios[42997]: Checking objects...
Sep 01 10:09:25 monitor nagios[42997]: Checked 758 services.
Sep 01 10:09:25 monitor nagios[42997]: Checked 156 hosts.
Sep 01 10:09:25 monitor nagios[42997]: Checked 6 host groups.
Sep 01 10:09:25 monitor nagios[42997]: Checked 0 service groups.
Sep 01 10:09:25 monitor nagios[42997]: Checked 11 contacts.
Sep 01 10:09:25 monitor nagios[42997]: Checked 2 contact groups.
Sep 01 10:09:25 monitor nagios[42997]: Checked 46 commands.
Sep 01 10:09:25 monitor nagios[42997]: Checked 7 time periods.
Sep 01 10:09:25 monitor nagios[42997]: Checked 0 host escalations.
Sep 01 10:09:25 monitor nagios[42997]: Checked 0 service escalations.
Sep 01 10:09:25 monitor nagios[42997]: Checking for circular paths...
Sep 01 10:09:25 monitor nagios[42997]: Checked 156 hosts
Sep 01 10:09:25 monitor nagios[42997]: Checked 0 service dependencies
Sep 01 10:09:25 monitor nagios[42997]: Checked 0 host dependencies
Sep 01 10:09:25 monitor nagios[42997]: Checked 7 timeperiods
Sep 01 10:09:25 monitor nagios[42997]: Checking global event handlers...
Sep 01 10:09:25 monitor nagios[42997]: Checking obsessive compulsive processor commands...
Sep 01 10:09:25 monitor nagios[42997]: Checking misc settings...
Sep 01 10:09:25 monitor nagios[42997]: Total Warnings: 0
Sep 01 10:09:25 monitor nagios[42997]: Total Errors: 0
Sep 01 10:09:25 monitor nagios[42997]: Things look okay - No serious problems were detected during the pre-flight check
Sep 01 10:09:25 monitor systemd[1]: PID file /usr/local/nagios/var/run/nagios.pid not readable (yet?) after start.
Sep 01 10:10:55 monitor systemd[1]: nagios.service start operation timed out. Terminating.
Sep 01 10:10:56 monitor systemd[1]: Failed to start Nagios Network Monitoring.
-- Subject: Unit nagios.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit nagios.service has failed.
--
-- The result is failed.
Sep 01 10:10:56 monitor systemd[1]: Unit nagios.service entered failed state.
Sep 01 10:10:56 monitor systemd[1]: nagios.service failed.
Sep 01 10:10:56 monitor polkitd[614]: Unregistered Authentication Agent for unix-process:42991:6076085 (system bus name :1.109, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_
/USR/LOCAL/NAGIOS/VAR/NAGIOS.LOG
/USR/LOCAL/NAGIOS -V /USR/LOCAL/NAGIOS/ETC/NAGIOS.CFG[Fri Sep 1 10:09:25 2017] Nagios 4.3.2 starting... (PID=43000)
[Fri Sep 1 10:09:25 2017] Local time is Fri Sep 01 10:09:25 PDT 2017
[Fri Sep 1 10:09:25 2017] LOG VERSION: 2.0
[Fri Sep 1 10:09:25 2017] qh: Socket '/var/spool/nagios/cmd/nagios.qh' successfully initialized
[Fri Sep 1 10:09:25 2017] qh: core query handler registered
[Fri Sep 1 10:09:25 2017] nerd: Channel hostchecks registered successfully
[Fri Sep 1 10:09:25 2017] nerd: Channel servicechecks registered successfully
[Fri Sep 1 10:09:25 2017] nerd: Channel opathchecks registered successfully
[Fri Sep 1 10:09:25 2017] nerd: Fully initialized and ready to rock!
[Fri Sep 1 10:09:25 2017] wproc: Successfully registered manager as @wproc with query handler
[Fri Sep 1 10:09:25 2017] wproc: Registry request: name=Core Worker 43001;pid=43001
[Fri Sep 1 10:09:25 2017] wproc: Registry request: name=Core Worker 43003;pid=43003
[Fri Sep 1 10:09:25 2017] wproc: Registry request: name=Core Worker 43002;pid=43002
[Fri Sep 1 10:09:25 2017] wproc: Registry request: name=Core Worker 43004;pid=43004
[Fri Sep 1 10:09:25 2017] Successfully launched command file worker with pid 43006
[Fri Sep 1 10:10:55 2017] Caught SIGTERM, shutting down...
[Fri Sep 1 10:10:55 2017] Caught SIGTERM, shutting down...
[Fri Sep 1 10:10:55 2017] wproc: Socket to worker Core Worker 43001 broken, removing
[Fri Sep 1 10:10:55 2017] wproc: 'Core Worker 43003' seems to be choked. ret = -1; bufsize = 122: written = 0; errno = 32 (Broken pipe)
[Fri Sep 1 10:10:55 2017] wproc: Socket to worker Core Worker 43004 broken, removing
[Fri Sep 1 10:10:55 2017] wproc: 'Core Worker 43003' seems to be choked. ret = -1; bufsize = 122: written = 0; errno = 32 (Broken pipe)
[Fri Sep 1 10:10:55 2017] wproc: Socket to worker Core Worker 43002 broken, removing
[Fri Sep 1 10:10:55 2017] wproc: 'Core Worker 43003' seems to be choked. ret = -1; bufsize = 123: written = 0; errno = 32 (Broken pipe)
[Fri Sep 1 10:10:55 2017] wproc: Socket to worker Core Worker 43003 broken, removing
[Fri Sep 1 10:10:55 2017] Successfully shutdown... (PID=43000)
[Fri Sep 1 10:10:55 2017] Event broker module 'NERD' deinitialized successfully.
ULIMIT -ANagios Core 4.3.2
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2017-05-09
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 758 services.
Checked 156 hosts.
Checked 6 host groups.
Checked 0 service groups.
Checked 11 contacts.
Checked 2 contact groups.
Checked 46 commands.
Checked 7 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 156 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 7 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
/USR/LIB/SYSTEMD/SYSTEM/NAGIOS.SERVICEcore file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 7118
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 7118
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
[Unit]
Description=Nagios Network Monitoring
After=network.target
Documentation=https://www.nagios.org/documentation/
[Service]
Type=forking
Restart=on-abort
User=nagios
Group=nagios
PIDFile=/usr/local/nagios/var/run/nagios.pid
# Verify Nagios config before start as upstream suggested
ExecStartPre=/usr/sbin/nagios -v /usr/local/nagios/etc/nagios.cfg
ExecStart=/usr/sbin/nagios -d /usr/local/nagios/etc/nagios.cfg
ExecStopPost=/usr/bin/rm -f /usr/local/nagios/var/rw/nagios.cmd
ExecReload=/bin/kill -HUP $MAINPID
ExecStopPost=/bin/rm -f /usr/local/nagios/var/run/nagios.pid
ExecStopPost=/bin/rm -f /usr/local/nagios/var/status.dat
ExecStopPost=/bin/rm -f /usr/local/nagios/var/rw/nagios.cmd
[Install]
WantedBy=multi-user.target