Nagios Core 4.4.5 Just not Starting
Posted: Thu Apr 04, 2024 5:17 am
Hi all, first time poster here, hope I have the right part of the forum.
I am running Red Hat 8 (on AWS) and installed Nagios following the steps here (https://access.redhat.com/documentation ... figuration) and the installation went smoothly. Although, when I get to "2.2. Starting the Nagios Core service" I am unable to get the Nagios service to start and seemingly there are no errors being reported.
When I run the "pre-flight check" I get the following;
Nagios Core 4.4.5
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2019-08-20
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 8 services.
Checked 1 hosts.
Checked 1 host groups.
Checked 0 service groups.
Checked 1 contacts.
Checked 1 contact groups.
Checked 24 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 1 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 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
Then I try and start Nagios service and I get the following;
systemctl start nagios.serviceex
service nagios status
Redirecting to /bin/systemctl status nagios.service
● nagios.service - Nagios Core 4.4.5
Loaded: loaded (/usr/lib/systemd/system/nagios.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2024-04-04 10:11:22 UTC; 10s ago
Docs: https://www.nagios.org/documentation
Process: 5221 ExecStopPost=/bin/rm -f /usr/local/nagios/var/rw/nagios.cmd (code=exited, status=0/SUCCESS)
Process: 5217 ExecStart=/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg (code=exited, status=0/SUCCESS)
Process: 5216 ExecStartPre=/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg (code=exited, status=0/SUCCESS)
Main PID: 5219 (code=exited, status=1/FAILURE)
Apr 04 10:11:22 ip-172-30-0-105.eu-west-1.compute.internal nagios[5216]: Checked 5 timeperiods
Apr 04 10:11:22 ip-172-30-0-105.eu-west-1.compute.internal nagios[5216]: Checking global event handlers...
Apr 04 10:11:22 ip-172-30-0-105.eu-west-1.compute.internal nagios[5216]: Checking obsessive compulsive processor commands...
Apr 04 10:11:22 ip-172-30-0-105.eu-west-1.compute.internal nagios[5216]: Checking misc settings...
Apr 04 10:11:22 ip-172-30-0-105.eu-west-1.compute.internal nagios[5216]: Total Warnings: 0
Apr 04 10:11:22 ip-172-30-0-105.eu-west-1.compute.internal nagios[5216]: Total Errors: 0
Apr 04 10:11:22 ip-172-30-0-105.eu-west-1.compute.internal nagios[5216]: Things look okay - No serious problems were detected during the pre-flight check
Apr 04 10:11:22 ip-172-30-0-105.eu-west-1.compute.internal systemd[1]: Started Nagios Core 4.4.5.
Apr 04 10:11:22 ip-172-30-0-105.eu-west-1.compute.internal systemd[1]: nagios.service: Main process exited, code=exited, status=1/FAILURE
Apr 04 10:11:22 ip-172-30-0-105.eu-west-1.compute.internal systemd[1]: nagios.service: Failed with result 'exit-code'.
I am doing all the above as su.
My Linux/Red Hat knowledge is limited and I am really banging my head against a wall here, any help would be greatly apricated.
I am running Red Hat 8 (on AWS) and installed Nagios following the steps here (https://access.redhat.com/documentation ... figuration) and the installation went smoothly. Although, when I get to "2.2. Starting the Nagios Core service" I am unable to get the Nagios service to start and seemingly there are no errors being reported.
When I run the "pre-flight check" I get the following;
Nagios Core 4.4.5
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2019-08-20
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 8 services.
Checked 1 hosts.
Checked 1 host groups.
Checked 0 service groups.
Checked 1 contacts.
Checked 1 contact groups.
Checked 24 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 1 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 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
Then I try and start Nagios service and I get the following;
systemctl start nagios.serviceex
service nagios status
Redirecting to /bin/systemctl status nagios.service
● nagios.service - Nagios Core 4.4.5
Loaded: loaded (/usr/lib/systemd/system/nagios.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2024-04-04 10:11:22 UTC; 10s ago
Docs: https://www.nagios.org/documentation
Process: 5221 ExecStopPost=/bin/rm -f /usr/local/nagios/var/rw/nagios.cmd (code=exited, status=0/SUCCESS)
Process: 5217 ExecStart=/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg (code=exited, status=0/SUCCESS)
Process: 5216 ExecStartPre=/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg (code=exited, status=0/SUCCESS)
Main PID: 5219 (code=exited, status=1/FAILURE)
Apr 04 10:11:22 ip-172-30-0-105.eu-west-1.compute.internal nagios[5216]: Checked 5 timeperiods
Apr 04 10:11:22 ip-172-30-0-105.eu-west-1.compute.internal nagios[5216]: Checking global event handlers...
Apr 04 10:11:22 ip-172-30-0-105.eu-west-1.compute.internal nagios[5216]: Checking obsessive compulsive processor commands...
Apr 04 10:11:22 ip-172-30-0-105.eu-west-1.compute.internal nagios[5216]: Checking misc settings...
Apr 04 10:11:22 ip-172-30-0-105.eu-west-1.compute.internal nagios[5216]: Total Warnings: 0
Apr 04 10:11:22 ip-172-30-0-105.eu-west-1.compute.internal nagios[5216]: Total Errors: 0
Apr 04 10:11:22 ip-172-30-0-105.eu-west-1.compute.internal nagios[5216]: Things look okay - No serious problems were detected during the pre-flight check
Apr 04 10:11:22 ip-172-30-0-105.eu-west-1.compute.internal systemd[1]: Started Nagios Core 4.4.5.
Apr 04 10:11:22 ip-172-30-0-105.eu-west-1.compute.internal systemd[1]: nagios.service: Main process exited, code=exited, status=1/FAILURE
Apr 04 10:11:22 ip-172-30-0-105.eu-west-1.compute.internal systemd[1]: nagios.service: Failed with result 'exit-code'.
I am doing all the above as su.
My Linux/Red Hat knowledge is limited and I am really banging my head against a wall here, any help would be greatly apricated.