I've been searching for over 4 hours for a resolution to this and nearly everything I find doesn't match up to the environment my predecessor left me with so I am REALLY hoping to find some help as I currently have no monitoring in place.
I tried to remove a server that is no longer active from the linuxhosts.cfg file. I've done it a few times with no issues but for some reason this time the Nagios3 service would not start again (yes nagios3 is the service that was running just fine until today).
When the service wouldn't restart I replaced the file i changed with the back up file i created but it still would not start
The only thing I could find from HOURS of looking at documentation was sudo journalctl -xn
Which gave me:
Code: Select all
-- Logs begin at Wed 2019-01-02 09:04:23 PST, end at Fri 2019-06-07 18:50:09 PDT. --
Jun 07 18:50:06 is-14s nagios3[3752]: the HTML documentation regarding the config files, as well as the
Jun 07 18:50:06 is-14s systemd[1]: nagios3.service: Control process exited, code=exited status=1
Jun 07 18:50:06 is-14s nagios3[3752]: 'Whats New' section to find out what has changed.
Jun 07 18:50:06 is-14s systemd[1]: nagios3.service: Failed with result 'exit-code'.
Jun 07 18:50:06 is-14s nagios3[3752]: * errors in config!
Jun 07 18:50:06 is-14s nagios3[3752]: ...fail!
Jun 07 18:50:06 is-14s systemd[1]: Failed to start LSB: nagios host/service/network monitoring and management system.
-- Subject: Unit nagios3.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit nagios3.service has failed.
--
-- The result is RESULT.
Jun 07 18:50:06 is-14s sudo[3719]: pam_unix(sudo:session): session closed for user root
Jun 07 18:50:09 is-14s sudo[3772]: cedarsadmin : TTY=pts/0 ; PWD=/etc/nagios3 ; USER=root ; COMMAND=/bin/journalctl -xn
Jun 07 18:50:09 is-14s sudo[3772]: pam_unix(sudo:session): session opened for user root by cedarsadmin(uid=0)
cedarsadmin@is-14s:/etc/nagios3$Code: Select all
Job for nagios3.service failed because the control process exited with error code.
See "systemctl status nagios3.service" and "journalctl -xe" for details.Any help is GREATLy appreciated.