Below the o/p I have observed while starting the Nagios.
Code: Select all
[root@VORINFNAGIOST01 system]# service nagios restart
Redirecting to /bin/systemctl restart 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.
[root@VORINFNAGIOST01 system]# journalctl -xe
Feb 08 12:36:01 VORINFNAGIOST01 sudo[8028]: pam_unix(sudo:session): session closed for user root
Feb 08 12:36:01 VORINFNAGIOST01 sudo[8050]: nagios : TTY=unknown ; PWD=/home/nagios ; USER=root ; COMMAND=/usr/local/nagiosxi/scripts/manage_services.sh st
Feb 08 12:36:01 VORINFNAGIOST01 sudo[8050]: pam_unix(sudo:session): session opened for user root by (uid=0)
Feb 08 12:36:01 VORINFNAGIOST01 sudo[8050]: pam_unix(sudo:session): session closed for user root
Feb 08 12:36:04 VORINFNAGIOST01 sssd[ldap_child[8144]][8144]: Failed to initialize credentials using keytab [MEMORY:/etc/krb5.keytab]: Preauthentication fail
Feb 08 12:36:07 VORINFNAGIOST01 polkitd[8122]: Registered Authentication Agent for unix-process:8146:43583090 (system bus name :1.9123 [/usr/bin/pkttyagent -
Feb 08 12:36:07 VORINFNAGIOST01 systemd[1]: Starting Nagios Core 4.4.6...
-- 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.
Feb 08 12:36:07 VORINFNAGIOST01 nagios[8167]: Nagios Core 4.4.6
Feb 08 12:36:07 VORINFNAGIOST01 nagios[8167]: Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Feb 08 12:36:07 VORINFNAGIOST01 nagios[8167]: Copyright (c) 1999-2009 Ethan Galstad
Feb 08 12:36:07 VORINFNAGIOST01 nagios[8167]: Last Modified: 2020-04-28
Feb 08 12:36:07 VORINFNAGIOST01 nagios[8167]: License: GPL
Feb 08 12:36:07 VORINFNAGIOST01 nagios[8167]: Website: https://www.nagios.org
Feb 08 12:36:07 VORINFNAGIOST01 nagios[8167]: Reading configuration data...
Feb 08 12:36:07 VORINFNAGIOST01 nagios[8167]: Read main config file okay...
Feb 08 12:36:07 VORINFNAGIOST01 nagios[8167]: Error: Template 'xiwizard_websitefis_host' specified in host definition could not be not found (config file '/u
Feb 08 12:36:07 VORINFNAGIOST01 nagios[8167]: Error: Invalid max_check_attempts value for host 'localhost'
Feb 08 12:36:07 VORINFNAGIOST01 nagios[8167]: Error: Could not register host (config file '/usr/local/nagios/etc/hosts/localhost.cfg', starting on line 16)
Feb 08 12:36:07 VORINFNAGIOST01 nagios[8167]: Error processing object config files!
Feb 08 12:36:07 VORINFNAGIOST01 nagios[8167]: ***> One or more problems was encountered while processing the config files...
Feb 08 12:36:07 VORINFNAGIOST01 nagios[8167]: Check your configuration file(s) to ensure that they contain valid
Feb 08 12:36:07 VORINFNAGIOST01 nagios[8167]: directives and data definitions. If you are upgrading from a previous
Feb 08 12:36:07 VORINFNAGIOST01 nagios[8167]: version of Nagios, you should be aware that some variables/definitions
Feb 08 12:36:07 VORINFNAGIOST01 nagios[8167]: may have been removed or modified in this version. Make sure to read
Feb 08 12:36:07 VORINFNAGIOST01 nagios[8167]: the HTML documentation regarding the config files, as well as the
Feb 08 12:36:07 VORINFNAGIOST01 nagios[8167]: 'Whats New' section to find out what has changed.
Feb 08 12:36:07 VORINFNAGIOST01 systemd[1]: nagios.service: control process exited, code=exited status=1
Feb 08 12:36:07 VORINFNAGIOST01 systemd[1]: Failed to start Nagios Core 4.4.6.
-- 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.
Feb 08 12:36:07 VORINFNAGIOST01 systemd[1]: Unit nagios.service entered failed state.
Feb 08 12:36:07 VORINFNAGIOST01 systemd[1]: nagios.service failed.
Feb 08 12:36:07 VORINFNAGIOST01 polkitd[8122]: Unregistered Authentication Agent for unix-process:8146:43583090 (system bus name :1.9123, object path /org/frCode: Select all
[root@VORINFNAGIOST01 system]# cat nagios.service
[Unit]
Description=Nagios Core 4.4.6
Documentation=https://www.nagios.org/documentation
After=network.target local-fs.target mariadb.service
[Service]
Type=forking
User=nagios
Group=nagios
PIDFile=/var/run/nagios.pid
ExecStartPre=/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
ExecStart=/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
ExecStop=/usr/bin/kill -s TERM ${MAINPID}
ExecStopPost=/usr/bin/rm -f /usr/local/nagios/var/rw/nagios.cmd
ExecReload=/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
ExecReload=/usr/bin/kill -s HUP ${MAINPID}
[Install]
WantedBy=multi-user.target
[root@VORINFNAGIOST01 system]#
Code: Select all
[root@VORINFNAGIOST01 system]# cat /usr/local/nagios/etc/nagios.cfg | grep lock
lock_file=/var/run/nagios.lock
[root@VORINFNAGIOST01 system]#