Cannot start nagios service
Posted: Wed Apr 08, 2020 10:35 am
Hello, I'm installing Nagios Core 4.4.5 in a CentOS 7.7 server... I was able to make the web gui work but when I login I get the message below

so I tried to start the service but I'm getting this error:
this is what it shows in journalctl -xe
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
Can you help me out to fix this?
Thanks.

so I tried to start the service but I'm getting this error:
Code: Select all
[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.
Code: Select all
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.
Code: Select all
# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
-bash: /usr/local/nagios/bin/nagios: Permission denied
Thanks.