nagios service restart failed.
Posted: Wed Jul 26, 2017 7:12 pm
i have installed nagios core on centsos 7. After installation, i added one host to the windows.cfg file and unchecked in nagios.cfg. When i tried to restart nagios service, it fails. I have added the output after i ran the commands below. Pls help.
#Error when i try to restart nagios service
service nagios restart
Restarting nagios (via systemctl): Job for nagios.service failed because the control process exited with error code. See "systemctl status nagios.service" and "journalctl -xe" for details.
[FAILED]
#systemctl message
systemctl -l 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 Wed 2017-07-26 19:37:54 EDT; 16min ago
Docs: man:systemd-sysv-generator(8)
Process: 3222 ExecStart=/etc/rc.d/init.d/nagios start (code=exited, status=8)
Jul 26 19:37:54 localhost.localdomain nagios[3222]: Check your configuration file(s) to ensure that they contain valid
Jul 26 19:37:54 localhost.localdomain nagios[3222]: directives and data definitions. If you are upgrading from a previous
Jul 26 19:37:54 localhost.localdomain nagios[3222]: version of Nagios, you should be aware that some variables/definitions
Jul 26 19:37:54 localhost.localdomain nagios[3222]: may have been removed or modified in this version. Make sure to read
Jul 26 19:37:54 localhost.localdomain nagios[3222]: the HTML documentation regarding the config files, as well as the
Jul 26 19:37:54 localhost.localdomain nagios[3222]: 'Whats New' section to find out what has changed.
Jul 26 19:37:54 localhost.localdomain systemd[1]: nagios.service: control process exited, code=exited status=8
Jul 26 19:37:54 localhost.localdomain systemd[1]: Failed to start LSB: Starts and stops the Nagios monitoring server.
Jul 26 19:37:54 localhost.localdomain systemd[1]: Unit nagios.service entered failed state.
Jul 26 19:37:54 localhost.localdomain systemd[1]: nagios.service failed.
#journalctl -xe
journalctl -xe
Jul 26 20:06:47 localhost.localdomain nagios[3818]: Website: https://www.nagios.org
Jul 26 20:06:47 localhost.localdomain nagios[3818]: Reading configuration data...
Jul 26 20:06:47 localhost.localdomain nagios[3818]: Read main config file okay...
Jul 26 20:06:47 localhost.localdomain nagios[3818]: Error: Could not find any host matc
Jul 26 20:06:47 localhost.localdomain nagios[3818]: Error: Failed to expand host list '
Jul 26 20:06:47 localhost.localdomain nagios[3818]: Error processing object config file
Jul 26 20:06:47 localhost.localdomain nagios[3818]: ***> One or more problems was encou
Jul 26 20:06:47 localhost.localdomain nagios[3818]: Check your configuration file(s) to
Jul 26 20:06:47 localhost.localdomain nagios[3818]: directives and data definitions. I
Jul 26 20:06:47 localhost.localdomain nagios[3818]: version of Nagios, you should be aw
Jul 26 20:06:47 localhost.localdomain nagios[3818]: may have been removed or modified i
Jul 26 20:06:47 localhost.localdomain nagios[3818]: the HTML documentation regarding th
Jul 26 20:06:47 localhost.localdomain nagios[3818]: 'Whats New' section to find out wha
Jul 26 20:06:47 localhost.localdomain systemd[1]: nagios.service: control process exite
Jul 26 20:06:47 localhost.localdomain systemd[1]: Failed to start LSB: Starts and stops
-- Subject: Unit nagios.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit nagios.service has failed.
--
-- The result is failed.
Jul 26 20:06:47 localhost.localdomain systemd[1]: Unit nagios.service entered failed st
Jul 26 20:06:47 localhost.localdomain systemd[1]: nagios.service failed.
Jul 26 20:06:47 localhost.localdomain polkitd[655]: Unregistered Authentication Agent f
lines 2967-2991/2991 (END)
#Error when i try to restart nagios service
service nagios restart
Restarting nagios (via systemctl): Job for nagios.service failed because the control process exited with error code. See "systemctl status nagios.service" and "journalctl -xe" for details.
[FAILED]
#systemctl message
systemctl -l 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 Wed 2017-07-26 19:37:54 EDT; 16min ago
Docs: man:systemd-sysv-generator(8)
Process: 3222 ExecStart=/etc/rc.d/init.d/nagios start (code=exited, status=8)
Jul 26 19:37:54 localhost.localdomain nagios[3222]: Check your configuration file(s) to ensure that they contain valid
Jul 26 19:37:54 localhost.localdomain nagios[3222]: directives and data definitions. If you are upgrading from a previous
Jul 26 19:37:54 localhost.localdomain nagios[3222]: version of Nagios, you should be aware that some variables/definitions
Jul 26 19:37:54 localhost.localdomain nagios[3222]: may have been removed or modified in this version. Make sure to read
Jul 26 19:37:54 localhost.localdomain nagios[3222]: the HTML documentation regarding the config files, as well as the
Jul 26 19:37:54 localhost.localdomain nagios[3222]: 'Whats New' section to find out what has changed.
Jul 26 19:37:54 localhost.localdomain systemd[1]: nagios.service: control process exited, code=exited status=8
Jul 26 19:37:54 localhost.localdomain systemd[1]: Failed to start LSB: Starts and stops the Nagios monitoring server.
Jul 26 19:37:54 localhost.localdomain systemd[1]: Unit nagios.service entered failed state.
Jul 26 19:37:54 localhost.localdomain systemd[1]: nagios.service failed.
#journalctl -xe
journalctl -xe
Jul 26 20:06:47 localhost.localdomain nagios[3818]: Website: https://www.nagios.org
Jul 26 20:06:47 localhost.localdomain nagios[3818]: Reading configuration data...
Jul 26 20:06:47 localhost.localdomain nagios[3818]: Read main config file okay...
Jul 26 20:06:47 localhost.localdomain nagios[3818]: Error: Could not find any host matc
Jul 26 20:06:47 localhost.localdomain nagios[3818]: Error: Failed to expand host list '
Jul 26 20:06:47 localhost.localdomain nagios[3818]: Error processing object config file
Jul 26 20:06:47 localhost.localdomain nagios[3818]: ***> One or more problems was encou
Jul 26 20:06:47 localhost.localdomain nagios[3818]: Check your configuration file(s) to
Jul 26 20:06:47 localhost.localdomain nagios[3818]: directives and data definitions. I
Jul 26 20:06:47 localhost.localdomain nagios[3818]: version of Nagios, you should be aw
Jul 26 20:06:47 localhost.localdomain nagios[3818]: may have been removed or modified i
Jul 26 20:06:47 localhost.localdomain nagios[3818]: the HTML documentation regarding th
Jul 26 20:06:47 localhost.localdomain nagios[3818]: 'Whats New' section to find out wha
Jul 26 20:06:47 localhost.localdomain systemd[1]: nagios.service: control process exite
Jul 26 20:06:47 localhost.localdomain systemd[1]: Failed to start LSB: Starts and stops
-- Subject: Unit nagios.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit nagios.service has failed.
--
-- The result is failed.
Jul 26 20:06:47 localhost.localdomain systemd[1]: Unit nagios.service entered failed st
Jul 26 20:06:47 localhost.localdomain systemd[1]: nagios.service failed.
Jul 26 20:06:47 localhost.localdomain polkitd[655]: Unregistered Authentication Agent f
lines 2967-2991/2991 (END)