0
I am having multiple issues getting Nagios Core to work properly. First and foremost when I was actually able to start it, in the web interface it was telling me "Not Connected" however now I can't even run sudo systemctl start nagios.service without receiving this message:
Job for nagios.service failed because the control process exited with error code. See "systemctl status nagios.service" and "journalctl -xe" for details.
Nagios Core v.4.4.5 Ubuntu: 18.04
I will post the systemctl and journalctl in a comment, I'm getting a "this looks like spam."
This is far above my skill level as I know very basic commands, as much as I'd like to learn everything there is on Linux, unfortunately I haven't had the time :/
Thanks for anyone's help in advance!
Here is the output for systemctl status nagios.service
nagios.service - Nagios Core Monitoring Daemon Loaded: loaded (/etc/systemd/system/nagios.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Fri 2019-10-04 16:51:12 PDT; 1min 33s ago Process: 2267 ExecStart=/usr/lib/systemd/scripts/nagios start (code=exited, status=203/EXEC) Oct 04 16:51:12 Lab systemd[1]: Starting Nagios Core Monitoring Daemon... – user1097822 – 2019-10-05T00:10:19.307
second half to that
Oct 04 16:51:12 Lab systemd[2267]: nagios.service: Failed to execute command: No such file or directory Oct 04 16:51:12 Lab systemd[2267]: nagios.service: Failed at step EXEC spawning /usr/lib/systemd/scripts/nagios: No such file or directory Oct 04 16:51:12 Lab systemd[1]: nagios.service: Control process exited, code=exited status=203 Oct 04 16:51:12 Lab systemd[1]: nagios.service: Failed with result 'exit-code'. Oct 04 16:51:12 Lab systemd[1]: Failed to start Nagios Core Monitoring Daemon. – user1097822 – 2019-10-05T00:10:29.207
First half of journalctl
-- Unit nagios.service has begun starting up. Oct 04 16:51:12 Lab systemd[2267]: nagios.service: Failed to execute command: No such file or directory Oct 04 16:51:12 Lab systemd[2267]: nagios.service: Failed at step EXEC spawning /usr/lib/systemd/scripts/nagios: No such file or directory -- Subject: Process /usr/lib/systemd/scripts/nagios could not be executed -- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- The process /usr/lib/systemd/scripts/nagios could not be executed and failed.
-- The error number returned by this process is 2. Oct 04 16:51:12 Lab systemd[1]: nagios.service: Control process exited, code=exited status=203 Oct 04 16:51:12 Lab systemd[1]: nagios.service: Failed with result 'exit-code'. Oct 04 16:51:12 Lab systemd[1]: Failed to start Nagios Core Monitoring Daemon. -- Subject: Unit nagios.service has failed -- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- Unit nagios.service has failed.
-- The result is RESULT. Oct 04 16:51:12 Lab sudo[2264]: pam_unix(sudo:session): session closed for user root
Oct 04 16:56:39 Lab sudo[2281]: tbyrd : TTY=pts/0 ; PWD=/etc/systemd/system ; USER=root ; COMMAND=/bin/journalctl -xe Oct 04 16:56:39 Lab sudo[2281]: pam_unix(sudo:session): session opened for user root by (uid=0) – user1097822 – 2019-10-05T00:12:48.447