Page 1 of 1

Job for nagios.service failed.

Posted: Tue Jun 14, 2016 4:56 am
by BTS_SIO
Hello everyone,

First of all, sorry for my bad english (I'm french).

My problem is when I type "service nagios restart". This brings me:

Code: Select all

Job for nagios.service failed. See 'systemctl1 status nagios.service' and 'journalctl -xn' for details.
When I type

Code: Select all

systemctl status nagios.service
. This bring me:

Code: Select all

● nagios.service - LSB: Starts and stops the Nagios monitoring server
   Loaded: loaded (/etc/init.d/nagios)
   Active: failed (Result: exit-code) since mar. 2016-06-14 11:50:38 CEST; 1min 8s ago
  Process: 2989 ExecStart=/etc/init.d/nagios start (code=exited, status=8)

juin 14 11:50:38 debian nagios[2989]: ***> One or more problems was encountered while processing the config files...
juin 14 11:50:38 debian nagios[2989]: Check your configuration file(s) to ensure that they contain valid
juin 14 11:50:38 debian nagios[2989]: directives and data defintions.  If you are upgrading from a previous
juin 14 11:50:38 debian nagios[2989]: version of Nagios, you should be aware that some variables/definitions
juin 14 11:50:38 debian nagios[2989]: may have been removed or modified in this version.  Make sure to read
juin 14 11:50:38 debian nagios[2989]: the HTML documentation regarding the config files, as well as the
juin 14 11:50:38 debian nagios[2989]: 'Whats New' section to find out what has changed.
juin 14 11:50:38 debian systemd[1]: nagios.service: control process exited, code=exited status=8
juin 14 11:50:38 debian systemd[1]: Failed to start LSB: Starts and stops the Nagios monitoring server.
juin 14 11:50:38 debian systemd[1]: Unit nagios.service entered failed state.
When I type

Code: Select all

journalctl -xn
. This bring me:

Code: Select all

-- Logs begin at mar. 2016-06-14 10:42:50 CEST, end at mar. 2016-06-14 11:53:37 CEST. --
juin 14 11:53:37 debian nagios[3083]: ***> One or more problems was encountered while processing the config files...
juin 14 11:53:37 debian nagios[3083]: Check your configuration file(s) to ensure that they contain valid
juin 14 11:53:37 debian nagios[3083]: directives and data defintions.  If you are upgrading from a previous
juin 14 11:53:37 debian nagios[3083]: version of Nagios, you should be aware that some variables/definitions
juin 14 11:53:37 debian nagios[3083]: may have been removed or modified in this version.  Make sure to read
juin 14 11:53:37 debian nagios[3083]: the HTML documentation regarding the config files, as well as the
juin 14 11:53:37 debian nagios[3083]: 'Whats New' section to find out what has changed.
juin 14 11:53:37 debian systemd[1]: nagios.service: control process exited, code=exited status=8
juin 14 11:53:37 debian systemd[1]: Failed to start LSB: Starts and stops the Nagios monitoring server.
-- Subject: L'unité (unit) nagios.service a échoué
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- L'unité (unit) nagios.service a échoué, avec le résultat failed.
juin 14 11:53:37 debian systemd[1]: Unit nagios.service entered failed state.
Thanx in advance for your help. (I started on Linux, this is for my internship) ;)

Re: Job for nagios.service failed.

Posted: Tue Jun 14, 2016 9:38 am
by rkennedy
Just to clarify - you posted this in the Nagios Log Server forum, is this rather for Nagios Core?

Please run /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg