Check your configuration file to ensure they are valid?
Posted: Thu Oct 12, 2017 1:05 pm
I'm unable to start nagios.service and upon checking its status I get the message below.
How do I do "Check your configuration file(s) to ensure that they contain valid"?
thanks,
ik
[root@nagioscore ~]# systemctl status nagios.service
● nagios.service - LSB: Starts and stops the Nagios monitoring server
Loaded: loaded (/etc/rc.d/init.d/nagios; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2017-10-12 14:00:08 EDT; 1min 15s ago
Docs: man:systemd-sysv-generator(8)
Process: 5971 ExecStop=/etc/rc.d/init.d/nagios stop (code=exited, status=0/SUCCESS)
Process: 6047 ExecStart=/etc/rc.d/init.d/nagios start (code=exited, status=8)
Oct 12 14:00:08 nagioscore.localdomain nagios[6047]: Check your configuration file(s) to ensure that they contain valid
Oct 12 14:00:08 nagioscore.localdomain nagios[6047]: directives and data definitions. If you are upgrading from a previous
Oct 12 14:00:08 nagioscore.localdomain nagios[6047]: version of Nagios, you should be aware that some variables/definitions
Oct 12 14:00:08 nagioscore.localdomain nagios[6047]: may have been removed or modified in this version. Make sure to read
Oct 12 14:00:08 nagioscore.localdomain nagios[6047]: the HTML documentation regarding the config files, as well as the
Oct 12 14:00:08 nagioscore.localdomain nagios[6047]: 'Whats New' section to find out what has changed.
Oct 12 14:00:08 nagioscore.localdomain systemd[1]: nagios.service: control process exited, code=exited status=8
Oct 12 14:00:08 nagioscore.localdomain systemd[1]: Failed to start LSB: Starts and stops the Nagios monitoring server.
Oct 12 14:00:08 nagioscore.localdomain systemd[1]: Unit nagios.service entered failed state.
Oct 12 14:00:08 nagioscore.localdomain systemd[1]: nagios.service failed.
How do I do "Check your configuration file(s) to ensure that they contain valid"?
thanks,
ik
[root@nagioscore ~]# systemctl status nagios.service
● nagios.service - LSB: Starts and stops the Nagios monitoring server
Loaded: loaded (/etc/rc.d/init.d/nagios; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2017-10-12 14:00:08 EDT; 1min 15s ago
Docs: man:systemd-sysv-generator(8)
Process: 5971 ExecStop=/etc/rc.d/init.d/nagios stop (code=exited, status=0/SUCCESS)
Process: 6047 ExecStart=/etc/rc.d/init.d/nagios start (code=exited, status=8)
Oct 12 14:00:08 nagioscore.localdomain nagios[6047]: Check your configuration file(s) to ensure that they contain valid
Oct 12 14:00:08 nagioscore.localdomain nagios[6047]: directives and data definitions. If you are upgrading from a previous
Oct 12 14:00:08 nagioscore.localdomain nagios[6047]: version of Nagios, you should be aware that some variables/definitions
Oct 12 14:00:08 nagioscore.localdomain nagios[6047]: may have been removed or modified in this version. Make sure to read
Oct 12 14:00:08 nagioscore.localdomain nagios[6047]: the HTML documentation regarding the config files, as well as the
Oct 12 14:00:08 nagioscore.localdomain nagios[6047]: 'Whats New' section to find out what has changed.
Oct 12 14:00:08 nagioscore.localdomain systemd[1]: nagios.service: control process exited, code=exited status=8
Oct 12 14:00:08 nagioscore.localdomain systemd[1]: Failed to start LSB: Starts and stops the Nagios monitoring server.
Oct 12 14:00:08 nagioscore.localdomain systemd[1]: Unit nagios.service entered failed state.
Oct 12 14:00:08 nagioscore.localdomain systemd[1]: nagios.service failed.