nagios.cfg (code=exited, status=1/FAILURE)

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

nagios.cfg (code=exited, status=1/FAILURE)

Postby aesir223 » Thu May 16, 2019 6:02 pm

Unable to start Nagios (4.4.3) running on Ubuntu 18.04.2 LTS.

I would appreciate any help.

Errors Below

When starting the service
=============================
Job for nagios.service failed because the control process exited with error code.
See "systemctl status nagios.service" and "journalctl -xe" for details.


When running journalctl -xe
==============================
May 16 18:58:04 tasia nagios[11318]: Checked 1 contact groups.
May 16 18:58:04 tasia nagios[11318]: Checked 24 commands.
May 16 18:58:04 tasia nagios[11318]: Checked 5 time periods.
May 16 18:58:04 tasia nagios[11318]: Checked 0 host escalations.
May 16 18:58:04 tasia nagios[11318]: Checked 0 service escalations.
May 16 18:58:04 tasia nagios[11318]: Checking for circular paths...
May 16 18:58:04 tasia nagios[11318]: Checked 12 hosts
May 16 18:58:04 tasia nagios[11318]: Checked 0 service dependencies
May 16 18:58:04 tasia nagios[11318]: Checked 0 host dependencies
May 16 18:58:04 tasia nagios[11318]: Checked 5 timeperiods
May 16 18:58:04 tasia nagios[11318]: Checking global event handlers...
May 16 18:58:04 tasia nagios[11318]: Checking obsessive compulsive processor commands...
May 16 18:58:04 tasia nagios[11318]: Checking misc settings...
May 16 18:58:04 tasia nagios[11318]: Total Warnings: 0
May 16 18:58:04 tasia nagios[11318]: Total Errors: 12
May 16 18:58:04 tasia nagios[11318]: ***> One or more problems was encountered while running the pre-flight check...
May 16 18:58:04 tasia nagios[11318]: Check your configuration file(s) to ensure that they contain valid
May 16 18:58:04 tasia nagios[11318]: directives and data definitions. If you are upgrading from a previous
May 16 18:58:04 tasia nagios[11318]: version of Nagios, you should be aware that some variables/definitions
May 16 18:58:04 tasia nagios[11318]: may have been removed or modified in this version. Make sure to read
May 16 18:58:04 tasia nagios[11318]: the HTML documentation regarding the config files, as well as the
May 16 18:58:04 tasia nagios[11318]: 'Whats New' section to find out what has changed.
May 16 18:58:04 tasia systemd[1]: nagios.service: Control process exited, code=exited status=1
May 16 18:58:04 tasia systemd[1]: nagios.service: Failed with result 'exit-code'.
May 16 18:58:04 tasia systemd[1]: Failed to start Nagios Core 4.4.3.
-- Subject: Unit nagios.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit nagios.service has failed.
--
-- The result is RESULT.

When running systemctl status nagios.service
=======================================
May 16 18:59:10 tasia nagios[11406]: ***> One or more problems was encountered while running the pre-flight check...
May 16 18:59:10 tasia nagios[11406]: Check your configuration file(s) to ensure that they contain valid
May 16 18:59:10 tasia nagios[11406]: directives and data definitions. If you are upgrading from a previous
May 16 18:59:10 tasia nagios[11406]: version of Nagios, you should be aware that some variables/definitions
May 16 18:59:10 tasia nagios[11406]: may have been removed or modified in this version. Make sure to read
May 16 18:59:10 tasia nagios[11406]: the HTML documentation regarding the config files, as well as the
May 16 18:59:10 tasia nagios[11406]: 'Whats New' section to find out what has changed.
May 16 18:59:10 tasia systemd[1]: nagios.service: Control process exited, code=exited status=1
May 16 18:59:10 tasia systemd[1]: nagios.service: Failed with result 'exit-code'.
May 16 18:59:10 tasia systemd[1]: Failed to start Nagios Core 4.4.3.
aesir223
 
Posts: 1
Joined: Thu May 16, 2019 5:49 pm

Re: nagios.cfg (code=exited, status=1/FAILURE)

Postby scottwilkerson » Fri May 17, 2019 9:51 am

you have 12 errors in your configuration files

Did you verify your configuration before trying to restart nagios?
Code: Select all
/path/to/bin/nagios -v /path/to/nagios.cfg
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 14458
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises


Return to Nagios Core

Who is online

Users browsing this forum: nagiosuser1000 and 6 guests