Page 1 of 1

unable to start nagios with systemctl

Posted: Wed May 11, 2022 1:23 am
by mnf59
Hi all, very curious issue, installed Nagios core 4.4.7 on a fresh OEL8 installation, no other applications. Nagios starts on system boot and works fine but if i have to change or add some configurations when i try systemctl restart nagios it seems to start, all processes are up for a while but soon after all processes die. This is on nagios.log, any idea ?
Thanks
Dario

1652250117] LOG VERSION: 2.0
[1652250117] qh: Socket '/usr/local/nagios/var/rw/nagios.qh' successfully initialized
[1652250117] qh: core query handler registered
[1652250117] qh: echo service query handler registered
[1652250117] qh: help for the query handler registered
[1652250117] wproc: Successfully registered manager as @wproc with query handler
[1652250117] wproc: Registry request: name=Core Worker 17492;pid=17492
[1652250117] wproc: Registry request: name=Core Worker 17493;pid=17493
[1652250117] wproc: Registry request: name=Core Worker 17490;pid=17490
[1652250117] wproc: Registry request: name=Core Worker 17491;pid=17491
[1652250118] Caught SIGSEGV, shutting down...

Re: unable to start nagios with systemctl

Posted: Wed May 18, 2022 1:48 am
by sjakie
I have exactly the same thing after upgrading to nagios 4.4.7.
hours of searching have brought me an answer finally.
The problem is that someone (from nagios company I Guess) has updatet a core component which checks for the Nagios updates, it has to do something with enabling SSL in the update request.

In Your nagios.cfg there is an option : check_for_updates = 1, you should change that in check_for_updates = 0.
Now you can start nagios as usual, the only thing is that you have to look for nagiosupdates yourself.

Re: unable to start nagios with systemctl

Posted: Thu May 19, 2022 6:32 am
by CarolBrusteredman
I created this file:

sudo vi /etc/systemd/system/nagios.service
and added the following:

[Unit]
Description=Nagios
BindTo=network.target


[Install]
WantedBy=multi-user.target

[Service]
User=nagios
Group=nagios
Type=simple
ExecStart=/usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfg
Then the following:

sudo systemctl enable /etc/systemd/system/nagios.service
sudo systemctl start nagios
sudo systemctl omegle shagle voojio restart nagios