Nagios Core won't start
Posted: Wed Jun 12, 2024 4:28 am
Hello everyone,
i am new to nagios and installed it with the documentation presented by nagios.
But when i try to start the service it won't work.
[nagios.service]
Unit]
Description=Nagios Core 4.4.14
Documentation=https://www.nagios.org/documentation
After=network.target local-fs.target
[Service]
Type=forking
ExecStartPre=/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
ExecStart=/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
ExecStop=/usr/bin/kill -s TERM ${MAINPID}
ExecStopPost=/usr/bin/rm -f /usr/local/nagios/var/rw/nagios.cmd
ExecReload=/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
ExecReload=/usr/bin/kill -s HUP ${MAINPID}
[Install]
WantedBy=multi-user.target
[systemctl status nagios.service]
● nagios.service - Nagios Core Monitoring Daemon
Loaded: loaded (/etc/systemd/system/nagios.service; enabled; preset: enabled)
Active: activating (start) since Wed 2024-06-12 11:21:26 CEST; 2min 2s ago
Docs: https://www.nagios.org/documentation
Cntrl PID: 68221 (nagios)
Tasks: 8 (limit: 9247)
CPU: 128ms
CGroup: /system.slice/nagios.service
├─68221 /usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfg
├─68222 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─68223 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─68224 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─68225 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─68226 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─68227 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
└─68229 /usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfg
Jun 12 11:21:26 raspberrypi nagios[68221]: wproc: Registry request: name=Core Worker 68225;pid=68225
Jun 12 11:21:26 raspberrypi nagios[68221]: wproc: Registry request: name=Core Worker 68225;pid=68225
Jun 12 11:21:26 raspberrypi nagios[68221]: wproc: Registry request: name=Core Worker 68226;pid=68226
Jun 12 11:21:26 raspberrypi nagios[68221]: wproc: Registry request: name=Core Worker 68226;pid=68226
Jun 12 11:21:26 raspberrypi nagios[68221]: wproc: Registry request: name=Core Worker 68222;pid=68222
Jun 12 11:21:26 raspberrypi nagios[68221]: wproc: Registry request: name=Core Worker 68227;pid=68227
Jun 12 11:21:26 raspberrypi nagios[68221]: wproc: Registry request: name=Core Worker 68222;pid=68222
Jun 12 11:21:26 raspberrypi nagios[68221]: wproc: Registry request: name=Core Worker 68227;pid=68227
Jun 12 11:21:26 raspberrypi nagios[68221]: Successfully launched command file worker with pid 68229
Jun 12 11:21:26 raspberrypi nagios[68221]: Successfully launched command file worker with pid 68229
[journalctl xeu nagios.service]
The job identifier is 27341 and the job result is failed.
Jun 12 11:21:26 raspberrypi systemd[1]: nagios.service: Scheduled restart job, restart counter is at 4.
Subject: Automatic restarting of a unit has been scheduled
Defined-By: systemd
Support: https://www.debian.org/support
Automatic restarting of the unit nagios.service has been scheduled, as the result for
the configured Restart= setting for the unit.
Jun 12 11:21:26 raspberrypi systemd[1]: Stopped nagios.service - Nagios Core Monitoring Daemon.
Subject: A stop job for unit nagios.service has finished
Defined-By: systemd
Support: https://www.debian.org/support
A stop job for unit nagios.service has finished.
The job identifier is 27418 and the job result is done.
Jun 12 11:21:26 raspberrypi systemd[1]: Starting nagios.service - Nagios Core Monitoring Daemon...
Subject: A start job for unit nagios.service has begun execution
Defined-By: systemd
Support: https://www.debian.org/support
A start job for unit nagios.service has begun execution.
The job identifier is 27418.
Jun 12 11:21:26 raspberrypi nagios[68221]: Nagios 4.4.14 starting... (PID=68221)
Jun 12 11:21:26 raspberrypi nagios[68221]: Local time is Wed Jun 12 11:21:26 CEST 2024
Jun 12 11:21:26 raspberrypi nagios[68221]: Nagios Core 4.4.14
Jun 12 11:21:26 raspberrypi nagios[68221]: Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Jun 12 11:21:26 raspberrypi nagios[68221]: Copyright (c) 1999-2009 Ethan Galstad
Jun 12 11:21:26 raspberrypi nagios[68221]: Last Modified: 2023-08-01
Jun 12 11:21:26 raspberrypi nagios[68221]: License: GPL
Jun 12 11:21:26 raspberrypi nagios[68221]: Website: https://www.nagios.org
Jun 12 11:21:26 raspberrypi nagios[68221]: Nagios 4.4.14 starting... (PID=68221)
Jun 12 11:21:26 raspberrypi nagios[68221]: Local time is Wed Jun 12 11:21:26 CEST 2024
Jun 12 11:21:26 raspberrypi nagios[68221]: LOG VERSION: 2.0
Jun 12 11:21:26 raspberrypi nagios[68221]: qh: Socket '/usr/local/nagios/var/rw/nagios.qh' successfully initialized
Jun 12 11:21:26 raspberrypi nagios[68221]: qh: core query handler registered
Jun 12 11:21:26 raspberrypi nagios[68221]: wproc: Successfully registered manager as @wproc with query handler
Jun 12 11:21:26 raspberrypi nagios[68221]: qh: echo service query handler registered
Jun 12 11:21:26 raspberrypi nagios[68221]: qh: help for the query handler registered
Jun 12 11:21:26 raspberrypi nagios[68221]: wproc: Successfully registered manager as @wproc with query handler
Jun 12 11:21:26 raspberrypi nagios[68221]: wproc: Registry request: name=Core Worker 68223;pid=68223
Jun 12 11:21:26 raspberrypi nagios[68221]: wproc: Registry request: name=Core Worker 68223;pid=68223
Jun 12 11:21:26 raspberrypi nagios[68221]: wproc: Registry request: name=Core Worker 68224;pid=68224
Jun 12 11:21:26 raspberrypi nagios[68221]: wproc: Registry request: name=Core Worker 68224;pid=68224
i hope someone can help me get at least the core service started
thanks in advance d3rek
i am new to nagios and installed it with the documentation presented by nagios.
But when i try to start the service it won't work.
[nagios.service]
Unit]
Description=Nagios Core 4.4.14
Documentation=https://www.nagios.org/documentation
After=network.target local-fs.target
[Service]
Type=forking
ExecStartPre=/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
ExecStart=/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
ExecStop=/usr/bin/kill -s TERM ${MAINPID}
ExecStopPost=/usr/bin/rm -f /usr/local/nagios/var/rw/nagios.cmd
ExecReload=/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
ExecReload=/usr/bin/kill -s HUP ${MAINPID}
[Install]
WantedBy=multi-user.target
[systemctl status nagios.service]
● nagios.service - Nagios Core Monitoring Daemon
Loaded: loaded (/etc/systemd/system/nagios.service; enabled; preset: enabled)
Active: activating (start) since Wed 2024-06-12 11:21:26 CEST; 2min 2s ago
Docs: https://www.nagios.org/documentation
Cntrl PID: 68221 (nagios)
Tasks: 8 (limit: 9247)
CPU: 128ms
CGroup: /system.slice/nagios.service
├─68221 /usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfg
├─68222 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─68223 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─68224 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─68225 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─68226 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─68227 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
└─68229 /usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfg
Jun 12 11:21:26 raspberrypi nagios[68221]: wproc: Registry request: name=Core Worker 68225;pid=68225
Jun 12 11:21:26 raspberrypi nagios[68221]: wproc: Registry request: name=Core Worker 68225;pid=68225
Jun 12 11:21:26 raspberrypi nagios[68221]: wproc: Registry request: name=Core Worker 68226;pid=68226
Jun 12 11:21:26 raspberrypi nagios[68221]: wproc: Registry request: name=Core Worker 68226;pid=68226
Jun 12 11:21:26 raspberrypi nagios[68221]: wproc: Registry request: name=Core Worker 68222;pid=68222
Jun 12 11:21:26 raspberrypi nagios[68221]: wproc: Registry request: name=Core Worker 68227;pid=68227
Jun 12 11:21:26 raspberrypi nagios[68221]: wproc: Registry request: name=Core Worker 68222;pid=68222
Jun 12 11:21:26 raspberrypi nagios[68221]: wproc: Registry request: name=Core Worker 68227;pid=68227
Jun 12 11:21:26 raspberrypi nagios[68221]: Successfully launched command file worker with pid 68229
Jun 12 11:21:26 raspberrypi nagios[68221]: Successfully launched command file worker with pid 68229
[journalctl xeu nagios.service]
The job identifier is 27341 and the job result is failed.
Jun 12 11:21:26 raspberrypi systemd[1]: nagios.service: Scheduled restart job, restart counter is at 4.
Subject: Automatic restarting of a unit has been scheduled
Defined-By: systemd
Support: https://www.debian.org/support
Automatic restarting of the unit nagios.service has been scheduled, as the result for
the configured Restart= setting for the unit.
Jun 12 11:21:26 raspberrypi systemd[1]: Stopped nagios.service - Nagios Core Monitoring Daemon.
Subject: A stop job for unit nagios.service has finished
Defined-By: systemd
Support: https://www.debian.org/support
A stop job for unit nagios.service has finished.
The job identifier is 27418 and the job result is done.
Jun 12 11:21:26 raspberrypi systemd[1]: Starting nagios.service - Nagios Core Monitoring Daemon...
Subject: A start job for unit nagios.service has begun execution
Defined-By: systemd
Support: https://www.debian.org/support
A start job for unit nagios.service has begun execution.
The job identifier is 27418.
Jun 12 11:21:26 raspberrypi nagios[68221]: Nagios 4.4.14 starting... (PID=68221)
Jun 12 11:21:26 raspberrypi nagios[68221]: Local time is Wed Jun 12 11:21:26 CEST 2024
Jun 12 11:21:26 raspberrypi nagios[68221]: Nagios Core 4.4.14
Jun 12 11:21:26 raspberrypi nagios[68221]: Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Jun 12 11:21:26 raspberrypi nagios[68221]: Copyright (c) 1999-2009 Ethan Galstad
Jun 12 11:21:26 raspberrypi nagios[68221]: Last Modified: 2023-08-01
Jun 12 11:21:26 raspberrypi nagios[68221]: License: GPL
Jun 12 11:21:26 raspberrypi nagios[68221]: Website: https://www.nagios.org
Jun 12 11:21:26 raspberrypi nagios[68221]: Nagios 4.4.14 starting... (PID=68221)
Jun 12 11:21:26 raspberrypi nagios[68221]: Local time is Wed Jun 12 11:21:26 CEST 2024
Jun 12 11:21:26 raspberrypi nagios[68221]: LOG VERSION: 2.0
Jun 12 11:21:26 raspberrypi nagios[68221]: qh: Socket '/usr/local/nagios/var/rw/nagios.qh' successfully initialized
Jun 12 11:21:26 raspberrypi nagios[68221]: qh: core query handler registered
Jun 12 11:21:26 raspberrypi nagios[68221]: wproc: Successfully registered manager as @wproc with query handler
Jun 12 11:21:26 raspberrypi nagios[68221]: qh: echo service query handler registered
Jun 12 11:21:26 raspberrypi nagios[68221]: qh: help for the query handler registered
Jun 12 11:21:26 raspberrypi nagios[68221]: wproc: Successfully registered manager as @wproc with query handler
Jun 12 11:21:26 raspberrypi nagios[68221]: wproc: Registry request: name=Core Worker 68223;pid=68223
Jun 12 11:21:26 raspberrypi nagios[68221]: wproc: Registry request: name=Core Worker 68223;pid=68223
Jun 12 11:21:26 raspberrypi nagios[68221]: wproc: Registry request: name=Core Worker 68224;pid=68224
Jun 12 11:21:26 raspberrypi nagios[68221]: wproc: Registry request: name=Core Worker 68224;pid=68224
i hope someone can help me get at least the core service started
thanks in advance d3rek