Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
[root@dev4server bin]# service nagios start
Redirecting to /bin/systemctl start nagios.service
Job for nagios.service failed because the control process exited with error code. See "systemctl status nagios.service" and "journalctl -xe" for details.
Apr 08 11:30:54 systemd[1]: Starting Nagios Core 4.4.5...
-- Subject: Unit nagios.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nagios.service has begun starting up.
Apr 08 11:30:54 systemd[25826]: Failed at step EXEC spawning /usr/local/nagios/bin/nagios: Permission denied
-- Subject: Process /usr/local/nagios/bin/nagios could not be executed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- The process /usr/local/nagios/bin/nagios could not be executed and failed.
--
-- The error number returned by this process is 13.
Apr 08 11:30:54 systemd[1]: nagios.service: control process exited, code=exited status=203
Apr 08 11:30:54 systemd[1]: Failed to start Nagios Core 4.4.5.
-- Subject: Unit nagios.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nagios.service has failed.
--
-- The result is failed.
Apr 08 11:30:54 systemd[1]: Unit nagios.service entered failed state.
Apr 08 11:30:54 systemd[1]: nagios.service failed.
If I try to run this command: /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg I get this error even when doing it from root
I would also point out that if those files' permissions got messed up somehow, they're probably not the only ones, and there might be more fixing to do.
Hope that helps!
--Jeffrey
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!