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...
unable to start nagios with systemctl
Re: unable to start nagios with systemctl
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.
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.
-
- Posts: 8
- Joined: Tue Mar 22, 2022 5:50 am
Re: unable to start nagios with systemctl
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
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