Re: NagiosXi Not working after Upgrading PHP (Offline)
Posted: Mon Jun 14, 2021 10:50 am
Hi,
I've executed the commands that you've speciied, but still Nagios is not Starting up.
Below is the output for your reference.
[root@localhost modules]# systemctl enable /etc/systemd/system/multi-user.target.wants/nagios.service
root@localhost modules]# systemctl start nagios
Job for nagios.service failed because the control process exited with error code. See "systemctl status nagios.service" and "journalctl -xe" for details.
[root@localhost modules]# systemctl status nagios.service -l
● nagios.service - Nagios Core 4.4.6
Loaded: loaded (/usr/lib/systemd/system/nagios.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sat 2021-06-12 00:04:25 EDT; 17s ago
Docs: https://www.nagios.org/documentation
Process: 10339 ExecStopPost=/usr/bin/rm -f /usr/local/nagios/var/rw/nagios.cmd (code=exited, status=0/SUCCESS)
Process: 10336 ExecStartPre=/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg (code=exited, status=203/EXEC)
Jun 12 00:04:25 localhost.localdomain systemd[1]: Starting Nagios Core 4.4.6...
Jun 12 00:04:25 localhost.localdomain systemd[1]: nagios.service: control process exited, code=exited status=203
Jun 12 00:04:25 localhost.localdomain systemd[1]: Failed to start Nagios Core 4.4.6.
Jun 12 00:04:25 localhost.localdomain systemd[1]: Unit nagios.service entered failed state.
Jun 12 00:04:25 localhost.localdomain systemd[1]: nagios.service failed.
[root@localhost modules]# journalctl -xe
Jun 12 00:53:01 localhost.localdomain systemd[1]: Started Session 7235 of user nagios.
-- Subject: Unit session-7235.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit session-7235.scope has finished starting up.
--
-- The start-up result is done.
Jun 12 00:53:01 localhost.localdomain CROND[13323]: (nagios) CMD (/usr/bin/php -q /usr/
Jun 12 00:53:01 localhost.localdomain CROND[13324]: (nagios) CMD (/usr/bin/php -q /usr/
Jun 12 00:53:01 localhost.localdomain CROND[13325]: (nagios) CMD (/usr/bin/php -q /usr/
Jun 12 00:53:01 localhost.localdomain CROND[13326]: (nagios) CMD (/usr/bin/php -q /usr/
Jun 12 00:53:01 localhost.localdomain CROND[13327]: (nagios) CMD (/usr/bin/php -q /usr/
Jun 12 00:53:01 localhost.localdomain CROND[13328]: (nagios) CMD (/usr/bin/php -q /usr/
Jun 12 00:53:01 localhost.localdomain CROND[13329]: (nagios) CMD (/usr/bin/php -q /usr/
Jun 12 00:53:01 localhost.localdomain CROND[13330]: (nagios) CMD (/usr/bin/php -q /usr/
Jun 12 00:53:01 localhost.localdomain CROND[13331]: (nagios) CMD (/usr/bin/php -q /usr/
Jun 12 00:53:01 localhost.localdomain CROND[13332]: (nagios) CMD (/usr/bin/php -q /usr/
Jun 12 00:53:02 localhost.localdomain systemd[1]: Removed slice User Slice of nagios.
-- Subject: Unit user-1001.slice has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit user-1001.slice has finished shutting down.
Kindly Assist.
I've executed the commands that you've speciied, but still Nagios is not Starting up.
Below is the output for your reference.
[root@localhost modules]# systemctl enable /etc/systemd/system/multi-user.target.wants/nagios.service
root@localhost modules]# systemctl start nagios
Job for nagios.service failed because the control process exited with error code. See "systemctl status nagios.service" and "journalctl -xe" for details.
[root@localhost modules]# systemctl status nagios.service -l
● nagios.service - Nagios Core 4.4.6
Loaded: loaded (/usr/lib/systemd/system/nagios.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sat 2021-06-12 00:04:25 EDT; 17s ago
Docs: https://www.nagios.org/documentation
Process: 10339 ExecStopPost=/usr/bin/rm -f /usr/local/nagios/var/rw/nagios.cmd (code=exited, status=0/SUCCESS)
Process: 10336 ExecStartPre=/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg (code=exited, status=203/EXEC)
Jun 12 00:04:25 localhost.localdomain systemd[1]: Starting Nagios Core 4.4.6...
Jun 12 00:04:25 localhost.localdomain systemd[1]: nagios.service: control process exited, code=exited status=203
Jun 12 00:04:25 localhost.localdomain systemd[1]: Failed to start Nagios Core 4.4.6.
Jun 12 00:04:25 localhost.localdomain systemd[1]: Unit nagios.service entered failed state.
Jun 12 00:04:25 localhost.localdomain systemd[1]: nagios.service failed.
[root@localhost modules]# journalctl -xe
Jun 12 00:53:01 localhost.localdomain systemd[1]: Started Session 7235 of user nagios.
-- Subject: Unit session-7235.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit session-7235.scope has finished starting up.
--
-- The start-up result is done.
Jun 12 00:53:01 localhost.localdomain CROND[13323]: (nagios) CMD (/usr/bin/php -q /usr/
Jun 12 00:53:01 localhost.localdomain CROND[13324]: (nagios) CMD (/usr/bin/php -q /usr/
Jun 12 00:53:01 localhost.localdomain CROND[13325]: (nagios) CMD (/usr/bin/php -q /usr/
Jun 12 00:53:01 localhost.localdomain CROND[13326]: (nagios) CMD (/usr/bin/php -q /usr/
Jun 12 00:53:01 localhost.localdomain CROND[13327]: (nagios) CMD (/usr/bin/php -q /usr/
Jun 12 00:53:01 localhost.localdomain CROND[13328]: (nagios) CMD (/usr/bin/php -q /usr/
Jun 12 00:53:01 localhost.localdomain CROND[13329]: (nagios) CMD (/usr/bin/php -q /usr/
Jun 12 00:53:01 localhost.localdomain CROND[13330]: (nagios) CMD (/usr/bin/php -q /usr/
Jun 12 00:53:01 localhost.localdomain CROND[13331]: (nagios) CMD (/usr/bin/php -q /usr/
Jun 12 00:53:01 localhost.localdomain CROND[13332]: (nagios) CMD (/usr/bin/php -q /usr/
Jun 12 00:53:02 localhost.localdomain systemd[1]: Removed slice User Slice of nagios.
-- Subject: Unit user-1001.slice has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit user-1001.slice has finished shutting down.
Kindly Assist.