Re: Off-load Database option at install?
Posted: Thu Oct 07, 2021 12:20 pm
UPDATE: As we wait for a reply to my previous post. On the current system we've been discussing, I modified the RAMdisk setup using the defaults provided in the documentation. I then ran the checks we did last time, it appears the RAMdisk error has gone away and the Host/Services are there, but Nagios isn't running. Restarting the service with "systemctl restart nagios" has no affect.
Code: Select all
~# systemctl status nagios
● nagios.service - Nagios Core 4.4.6
Loaded: loaded (/lib/systemd/system/nagios.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2021-10-07 13:13:53 EDT; 4min 11s ago
Docs: https://www.nagios.org/documentation
Process: 4022 ExecStartPre=/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg (code=exited, status=0/SUCCESS)
Process: 4023 ExecStart=/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg (code=exited, status=0/SUCCESS)
Process: 4043 ExecStopPost=/usr/bin/rm -f /usr/local/nagios/var/rw/nagios.cmd (code=exited, status=0/SUCCESS)
Main PID: 4024 (code=exited, status=1/FAILURE)
Oct 07 13:13:51 nagios-dev nagios[4024]: wproc: Registry request: name=Core Worker 4041;pid=4041
Oct 07 13:13:51 nagios-dev nagios[4024]: wproc: Registry request: name=Core Worker 4040;pid=4040
Oct 07 13:13:51 nagios-dev nagios[4024]: wproc: Registry request: name=Core Worker 4042;pid=4042
Oct 07 13:13:51 nagios-dev nagios[4024]: Event broker module '/usr/local/nagios/bin/ndo.so' initialized successfully.
Oct 07 13:13:51 nagios-dev nagios[4024]: Error: Could not load module '/usr/local/lib/mk-livestatus/livestatus.o' -> file not found
Oct 07 13:13:51 nagios-dev nagios[4024]: Error: Failed to load module '/usr/local/lib/mk-livestatus/livestatus.o'.
Oct 07 13:13:51 nagios-dev nagios[4024]: Error: Module loading failed. Aborting.
Oct 07 13:13:51 nagios-dev nagios[4024]: Event broker module '/usr/local/nagios/bin/ndo.so' deinitialized successfully.
Oct 07 13:13:51 nagios-dev systemd[1]: nagios.service: Main process exited, code=exited, status=1/FAILURE
Oct 07 13:13:53 nagios-dev systemd[1]: nagios.service: Failed with result 'exit-code'.
Code: Select all
# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios Core 4.4.6
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2020-04-28
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 211 services.
Checked 10 hosts.
Checked 9 host groups.
Checked 9 service groups.
Checked 6 contacts.
Checked 2 contact groups.
Checked 150 commands.
Checked 13 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 10 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 13 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