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

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
aesir223
Posts: 1
Joined: Thu May 16, 2019 5:49 pm

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

Post by aesir223 »

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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post by scottwilkerson »

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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked