Hi,
I don't get what you are asking, please rephrase.
Below is the output when I try to restart the service:
monitor:~# /etc/init.d/nagios restart
[....] Restarting nagios (via systemctl): nagios.serviceJob for nagios.service failed. See 'systemctl status nagios.service' and 'journalctl -xn' for details.
failed!
Then I ran the suggested command journalctl -xn to see the details:
monitor:~# journalctl -xn
-- Logs begin at Wed 2015-08-05 04:06:48 SAST, end at Wed 2015-08-05 08:46:56 SAST. --
Aug 05 08:46:21 monitor.sanren.ac.za sshd[4058]: pam_unix(sshd:session): session opened for user nagios by (uid=0)
Aug 05 08:46:21 monitor.sanren.ac.za systemd[1]: Starting Session 7827 of user nagios.
-- Subject: Unit session-7827.scope has begun with start-up
-- Defined-By: systemd
-- Support:
http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit session-7827.scope has begun starting up.
Aug 05 08:46:21 monitor.sanren.ac.za systemd-logind[422]: New session 7827 of user nagios.
-- Subject: A new session 7827 has been created for user nagios
-- Defined-By: systemd
-- Support:
http://lists.freedesktop.org/mailman/li ... temd-devel
-- Documentation:
http://www.freedesktop.org/wiki/Softwar ... /multiseat
--
-- A new session with the ID 7827 has been created for the user nagios.
--
-- The leading process of the session is 4058.
Aug 05 08:46:21 monitor.sanren.ac.za systemd[1]: Started Session 7827 of user nagios.
-- Subject: Unit session-7827.scope has finished start-up
-- Defined-By: systemd
-- Support:
http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit session-7827.scope has finished starting up.
--
-- The start-up result is done.
Aug 05 08:46:27 monitor.sanren.ac.za sshd[4029]: pam_unix(sshd:session): session closed for user nagios
Aug 05 08:46:27 monitor.sanren.ac.za systemd-logind[422]: Removed session 7824.
-- Subject: A session 7824 has been terminated
-- Defined-By: systemd
-- Support:
http://lists.freedesktop.org/mailman/li ... temd-devel
-- Documentation:
http://www.freedesktop.org/wiki/Softwar ... /multiseat
--
-- A session with the ID 7824 has been terminated.
Aug 05 08:46:43 monitor.sanren.ac.za sshd[4019]: pam_unix(sshd:session): session closed for user nagios
Aug 05 08:46:43 monitor.sanren.ac.za systemd-logind[422]: Removed session 7823.
-- Subject: A session 7823 has been terminated
-- Defined-By: systemd
-- Support:
http://lists.freedesktop.org/mailman/li ... temd-devel
-- Documentation:
http://www.freedesktop.org/wiki/Softwar ... /multiseat
--
-- A session with the ID 7823 has been terminated.
Aug 05 08:46:56 monitor.sanren.ac.za sshd[4040]: pam_unix(sshd:session): session closed for user nagios
Aug 05 08:46:56 monitor.sanren.ac.za systemd-logind[422]: Removed session 7826.
-- Subject: A session 7826 has been terminated
-- Defined-By: systemd
-- Support:
http://lists.freedesktop.org/mailman/li ... temd-devel
-- Documentation:
http://www.freedesktop.org/wiki/Softwar ... /multiseat
--
-- A session with the ID 7826 has been terminated.
Then I executed the command as per your request:
Aug 05 08:39:00 monitor.sanren.ac.za sshd[3779]: Accepted password for nagios from 184.173.26.165 port 63173 ssh2
Aug 05 08:39:00 monitor.sanren.ac.za sshd[3779]: pam_unix(sshd:session): session opened for user nagios by (uid=0)
Aug 05 08:39:00 monitor.sanren.ac.za systemd[1]: Starting Session 7818 of user nagios.
Aug 05 08:39:00 monitor.sanren.ac.za systemd-logind[422]: New session 7818 of user nagios.
Aug 05 08:39:00 monitor.sanren.ac.za systemd[1]: Started Session 7818 of user nagios.
Aug 05 08:39:15 monitor.sanren.ac.za systemd-sysv-generator[3825]: Overwriting existing symlink /run/systemd/generator.late/nagios.service with real service
Aug 05 08:39:17 monitor.sanren.ac.za sshd[3765]: pam_unix(sshd:session): session closed for user nagios
Aug 05 08:39:33 monitor.sanren.ac.za sshd[3772]: pam_unix(sshd:session): session closed for user nagios
Aug 05 08:39:56 monitor.sanren.ac.za systemd[1]: Starting LSB: Starts and stops the Nagios monitoring server...
Aug 05 08:39:56 monitor.sanren.ac.za nagios[3852]: Executable file /opt/nagios/bin/nagios not found. Exiting.
Aug 05 08:39:56 monitor.sanren.ac.za systemd[1]: nagios.service: control process exited, code=exited status=1
Aug 05 08:39:56 monitor.sanren.ac.za systemd[1]: Failed to start LSB: Starts and stops the Nagios monitoring server.
Aug 05 08:39:56 monitor.sanren.ac.za systemd[1]: Unit nagios.service entered failed state.
Aug 05 08:40:01 monitor.sanren.ac.za sshd[3873]: Accepted password for nagios from 159.8.101.75 port 63582 ssh2
Aug 05 08:40:01 monitor.sanren.ac.za sshd[3873]: pam_unix(sshd:session): session opened for user nagios by (uid=0)
Aug 05 08:40:01 monitor.sanren.ac.za systemd[1]: Starting Session 7820 of user nagios.
Aug 05 08:40:01 monitor.sanren.ac.za systemd-logind[422]: New session 7820 of user nagios.
Aug 05 08:40:01 monitor.sanren.ac.za systemd[1]: Started Session 7820 of user nagios.
Aug 05 08:40:17 monitor.sanren.ac.za sshd[3779]: pam_unix(sshd:session): session closed for user nagios
Aug 05 08:41:28 monitor.sanren.ac.za systemd[1]: Starting LSB: Starts and stops the Nagios monitoring server...
Aug 05 08:41:28 monitor.sanren.ac.za nagios[3918]: Executable file /opt/nagios/bin/nagios not found. Exiting.
Aug 05 08:41:28 monitor.sanren.ac.za systemd[1]: nagios.service: control process exited, code=exited status=1
Aug 05 08:41:28 monitor.sanren.ac.za systemd[1]: Failed to start LSB: Starts and stops the Nagios monitoring server.
Aug 05 08:41:28 monitor.sanren.ac.za systemd[1]: Unit nagios.service entered failed state.
Aug 05 08:41:49 monitor.sanren.ac.za sshd[3873]: pam_unix(sshd:session): session closed for user nagios
Aug 05 08:44:31 monitor.sanren.ac.za systemd[1]: Starting LSB: Starts and stops the Nagios monitoring server...
Aug 05 08:44:31 monitor.sanren.ac.za nagios[3992]: Executable file /opt/nagios/bin/nagios not found. Exiting.
Aug 05 08:44:31 monitor.sanren.ac.za systemd[1]: nagios.service: control process exited, code=exited status=1
Aug 05 08:44:31 monitor.sanren.ac.za systemd[1]: Failed to start LSB: Starts and stops the Nagios monitoring server.
Aug 05 08:44:31 monitor.sanren.ac.za systemd[1]: Unit nagios.service entered failed state.
Aug 05 08:45:01 monitor.sanren.ac.za sshd[4019]: Accepted password for nagios from 159.8.101.78 port 64895 ssh2
Aug 05 08:45:01 monitor.sanren.ac.za sshd[4019]: pam_unix(sshd:session): session opened for user nagios by (uid=0)
Aug 05 08:45:01 monitor.sanren.ac.za systemd-logind[422]: New session 7823 of user nagios.
Aug 05 08:45:01 monitor.sanren.ac.za systemd[1]: Starting Session 7823 of user nagios.
Aug 05 08:45:01 monitor.sanren.ac.za systemd[1]: Started Session 7823 of user nagios.
Aug 05 08:45:09 monitor.sanren.ac.za sshd[4029]: Accepted password for nagios from 161.202.10.199 port 64028 ssh2
Aug 05 08:45:09 monitor.sanren.ac.za sshd[4029]: pam_unix(sshd:session): session opened for user nagios by (uid=0)
Aug 05 08:45:09 monitor.sanren.ac.za systemd-logind[422]: New session 7824 of user nagios.
Aug 05 08:45:09 monitor.sanren.ac.za systemd[1]: Starting Session 7824 of user nagios.
Aug 05 08:45:09 monitor.sanren.ac.za systemd[1]: Started Session 7824 of user nagios.
Aug 05 08:45:13 monitor.sanren.ac.za sshd[4031]: Accepted password for nagios from 119.81.251.6 port 64024 ssh2
Aug 05 08:45:13 monitor.sanren.ac.za sshd[4031]: pam_unix(sshd:session): session opened for user nagios by (uid=0)
Aug 05 08:45:13 monitor.sanren.ac.za systemd[1]: Starting Session 7825 of user nagios.
Aug 05 08:45:13 monitor.sanren.ac.za systemd-logind[422]: New session 7825 of user nagios.
Aug 05 08:45:13 monitor.sanren.ac.za systemd[1]: Started Session 7825 of user nagios.
Aug 05 08:45:47 monitor.sanren.ac.za sshd[4040]: Accepted password for nagios from 159.8.91.135 port 63802 ssh2
Aug 05 08:45:47 monitor.sanren.ac.za sshd[4040]: pam_unix(sshd:session): session opened for user nagios by (uid=0)
Aug 05 08:45:47 monitor.sanren.ac.za systemd-logind[422]: New session 7826 of user nagios.
Aug 05 08:45:47 monitor.sanren.ac.za systemd[1]: Starting Session 7826 of user nagios.
Aug 05 08:45:47 monitor.sanren.ac.za systemd[1]: Started Session 7826 of user nagios.
Aug 05 08:46:20 monitor.sanren.ac.za sshd[4031]: pam_unix(sshd:session): session closed for user nagios
Aug 05 08:46:21 monitor.sanren.ac.za sshd[4058]: Accepted password for nagios from 159.8.99.200 port 62489 ssh2
Aug 05 08:46:21 monitor.sanren.ac.za sshd[4058]: pam_unix(sshd:session): session opened for user nagios by (uid=0)
Aug 05 08:46:21 monitor.sanren.ac.za systemd[1]: Starting Session 7827 of user nagios.
Aug 05 08:46:21 monitor.sanren.ac.za systemd-logind[422]: New session 7827 of user nagios.
Aug 05 08:46:21 monitor.sanren.ac.za systemd[1]: Started Session 7827 of user nagios.
Aug 05 08:46:27 monitor.sanren.ac.za sshd[4029]: pam_unix(sshd:session): session closed for user nagios
Aug 05 08:46:43 monitor.sanren.ac.za sshd[4019]: pam_unix(sshd:session): session closed for user nagios
Aug 05 08:46:56 monitor.sanren.ac.za sshd[4040]: pam_unix(sshd:session): session closed for user nagios
Aug 05 08:47:10 monitor.sanren.ac.za sshd[4083]: Accepted password for nagios from 159.8.91.142 port 62268 ssh2
Aug 05 08:47:10 monitor.sanren.ac.za sshd[4083]: pam_unix(sshd:session): session opened for user nagios by (uid=0)
Aug 05 08:47:10 monitor.sanren.ac.za systemd[1]: Starting Session 7828 of user nagios.
Aug 05 08:47:10 monitor.sanren.ac.za systemd-logind[422]: New session 7828 of user nagios.
Aug 05 08:47:10 monitor.sanren.ac.za systemd[1]: Started Session 7828 of user nagios.
Aug 05 08:47:38 monitor.sanren.ac.za sshd[4135]: Accepted password for nagios from 161.202.104.188 port 62739 ssh2
Aug 05 08:47:38 monitor.sanren.ac.za sshd[4135]: pam_unix(sshd:session): session opened for user nagios by (uid=0)
Aug 05 08:47:38 monitor.sanren.ac.za systemd[1]: Starting Session 7829 of user nagios.
Aug 05 08:47:38 monitor.sanren.ac.za systemd-logind[422]: New session 7829 of user nagios.
Aug 05 08:47:38 monitor.sanren.ac.za systemd[1]: Started Session 7829 of user nagios.
Aug 05 08:47:46 monitor.sanren.ac.za sshd[4141]: Accepted password for nagios from 161.202.10.203 port 64825 ssh2
Aug 05 08:47:46 monitor.sanren.ac.za sshd[4141]: pam_unix(sshd:session): session opened for user nagios by (uid=0)
Aug 05 08:47:46 monitor.sanren.ac.za systemd-logind[422]: New session 7830 of user nagios.
Aug 05 08:47:46 monitor.sanren.ac.za systemd[1]: Starting Session 7830 of user nagios.
Aug 05 08:47:46 monitor.sanren.ac.za systemd[1]: Started Session 7830 of user nagios.
Aug 05 08:47:54 monitor.sanren.ac.za sshd[4058]: pam_unix(sshd:session): session closed for user nagios
I normally use service nagios restart to start, stop or restart the nagios service.
monitor:~# service nagios restart
Job for nagios.service failed. See 'systemctl status nagios.service' and 'journalctl -xn' for details.
monitor:~# systemctl status nagios.service
● nagios.service - LSB: Starts and stops the Nagios monitoring server
Loaded: loaded (/etc/init.d/nagios)
Active: failed (Result: exit-code) since Wed 2015-08-05 08:49:50 SAST; 33s ago
Process: 4239 ExecStart=/etc/init.d/nagios start (code=exited, status=1/FAILURE)
Aug 05 08:49:50 monitor.sanren.ac.za nagios[4239]: Executable file /opt/nagios/bin/nagios not found. Exiting.
Aug 05 08:49:50 monitor.sanren.ac.za systemd[1]: nagios.service: control process exited, code=exited status=1
Aug 05 08:49:50 monitor.sanren.ac.za systemd[1]: Failed to start LSB: Starts and stops the Nagios monitoring server.
Aug 05 08:49:50 monitor.sanren.ac.za systemd[1]: Unit nagios.service entered failed state.
It is first time I am getting this but after upgrading to 4.0.8. Really I am not sure what to fix this.