New Install Error

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

New Install Error

Postby tallbuilding » Wed Aug 04, 2021 2:03 pm

I have installed Nagios Core on Ubuntu Server 20 and getting the following error when I try to start the service:
Job for nagios.service failed because the control process exited with error code.


Results of systemctl status nagios.service are:

● nagios.service - Nagios Core 4.4.6
Loaded: loaded (/lib/systemd/system/nagios.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2021-08-04 18:57:10 UTC; 10s ago
Docs: https://www.nagios.org/documentation
Process: 18469 ExecStartPre=/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg (code=exited, status=2>
Process: 18482 ExecStopPost=/usr/bin/rm -f /usr/local/nagios/var/rw/nagios.cmd (code=exited, status=0/SUCCESS)

Aug 04 18:57:10 lserver nagios[18469]: Copyright (c) 2009-present Nagios Core Development Team and Community Contributo>
Aug 04 18:57:10 lserver nagios[18469]: Copyright (c) 1999-2009 Ethan Galstad
Aug 04 18:57:10 lserver nagios[18469]: Last Modified: 2020-04-28
Aug 04 18:57:10 lserver nagios[18469]: License: GPL
Aug 04 18:57:10 lserver nagios[18469]: Website: https://www.nagios.org
Aug 04 18:57:10 lserver nagios[18469]: Reading configuration data...
Aug 04 18:57:10 lserver nagios[18469]: Error: Cannot open main configuration file '/usr/local/nagios/etc/nagios.cfg' fo>
Aug 04 18:57:10 lserver systemd[1]: nagios.service: Control process exited, code=exited, status=254/n/a
Aug 04 18:57:10 lserver systemd[1]: nagios.service: Failed with result 'exit-code'.
Aug 04 18:57:10 lserver systemd[1]: Failed to start Nagios Core 4.4.6.


The directory /usr/local/nagios/etc/ only contains htpasswd.users and no nagios.cfg file. Is that the issue? Is there a cfg file I can drop into that directory?

Thanks
tallbuilding
 
Posts: 1
Joined: Wed Aug 04, 2021 1:55 pm

Return to Community Support

Who is online

Users browsing this forum: GldRush98, Manuel Favre and 24 guests