Fresh, Offline Install Won't Start
Posted: Fri Apr 30, 2021 1:01 pm
1) Linux Distribution and version?
Red Hat Enterprise Linux Server release 7.9 (Maipo)
2) 32 or 64bit?
x86_64
3 VMware Image or Manual Install of XI?
Manual
4) Are there special configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL?
No.
I tried the following two versions of the Offline Nagios XI releases and had the same issue with both:
https://repo.nagios.com/nagiosxi-offline/nagiosxi-5.8.3-1.el7.x86_64.tar.gz
https://repo.nagios.com/nagiosxi-offline/nagiosxi-5.8.2-1.el7.x86_64.tar.gz
The ./fullinstall completes successfully with no errors.
I go to start the Nagios process and get this error:
The journalctl command shows the following:
I commented out the following from the /usr/local/nagios/etc/nagios.cfg file to see if I can get it to work without those files:
I did get a different error after I commented out the above lines in the config file, but now I am even more lost with this new error:
I am praying this is an easy fix as I would really love to be able to vet Nagios as a replacement for SolarWinds, but I have 30 days cooking on my trial support access.
Thanks ahead of time.
Red Hat Enterprise Linux Server release 7.9 (Maipo)
2) 32 or 64bit?
x86_64
3 VMware Image or Manual Install of XI?
Manual
4) Are there special configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL?
No.
I tried the following two versions of the Offline Nagios XI releases and had the same issue with both:
https://repo.nagios.com/nagiosxi-offline/nagiosxi-5.8.3-1.el7.x86_64.tar.gz
https://repo.nagios.com/nagiosxi-offline/nagiosxi-5.8.2-1.el7.x86_64.tar.gz
The ./fullinstall completes successfully with no errors.
I go to start the Nagios process and get this error:
Code: Select all
# 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.Code: Select all
-- Unit nagios.service has begun starting up.
Apr 30 13:51:43 DEPRECATED_HOSTNAME nagios[3344]: Nagios Core 4.4.6
Apr 30 13:51:43 DEPRECATED_HOSTNAME nagios[3344]: Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Apr 30 13:51:43 DEPRECATED_HOSTNAME nagios[3344]: Copyright (c) 1999-2009 Ethan Galstad
Apr 30 13:51:43 DEPRECATED_HOSTNAME nagios[3344]: Last Modified: 2020-04-28
Apr 30 13:51:43 DEPRECATED_HOSTNAME nagios[3344]: License: GPL
Apr 30 13:51:43 DEPRECATED_HOSTNAME nagios[3344]: Website: https://www.nagios.org
Apr 30 13:51:43 DEPRECATED_HOSTNAME nagios[3344]: Reading configuration data...
Apr 30 13:51:43 DEPRECATED_HOSTNAME nagios[3344]: Read main config file okay...
Apr 30 13:51:43 DEPRECATED_HOSTNAME nagios[3344]: Error: Cannot open config file '/usr/local/nagios/etc/contacttemplates.cfg' for reading: No such file or directory
Apr 30 13:51:43 DEPRECATED_HOSTNAME nagios[3344]: Error processing object config files!
Apr 30 13:51:43 DEPRECATED_HOSTNAME nagios[3344]: ***> One or more problems was encountered while processing the config files...
Apr 30 13:51:43 DEPRECATED_HOSTNAME nagios[3344]: Check your configuration file(s) to ensure that they contain valid
Apr 30 13:51:43 DEPRECATED_HOSTNAME nagios[3344]: directives and data definitions. If you are upgrading from a previous
Apr 30 13:51:43 DEPRECATED_HOSTNAME nagios[3344]: version of Nagios, you should be aware that some variables/definitions
Apr 30 13:51:43 DEPRECATED_HOSTNAME nagios[3344]: may have been removed or modified in this version. Make sure to read
Apr 30 13:51:43 DEPRECATED_HOSTNAME nagios[3344]: the HTML documentation regarding the config files, as well as the
Apr 30 13:51:43 DEPRECATED_HOSTNAME nagios[3344]: 'Whats New' section to find out what has changed.
Apr 30 13:51:43 DEPRECATED_HOSTNAME systemd[1]: nagios.service: control process exited, code=exited status=1
Apr 30 13:51:43 DEPRECATED_HOSTNAME 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.
Apr 30 13:51:43 DEPRECATED_HOSTNAME systemd[1]: Unit nagios.service entered failed state.
Apr 30 13:51:43 DEPRECATED_HOSTNAME systemd[1]: nagios.service failed.
Apr 30 13:51:43 DEPRECATED_HOSTNAME polkitd[1237]: Unregistered Authentication Agent for unix-process:3338:268599 (system bus name :1.18, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)Code: Select all
#cfg_file=/usr/local/nagios/etc/contacttemplates.cfg
#cfg_file=/usr/local/nagios/etc/contactgroups.cfg
#cfg_file=/usr/local/nagios/etc/contacts.cfg
#cfg_file=/usr/local/nagios/etc/timeperiods.cfg
#cfg_file=/usr/local/nagios/etc/commands.cfg
#cfg_file=/usr/local/nagios/etc/hostgroups.cfg
#cfg_file=/usr/local/nagios/etc/servicegroups.cfg
#cfg_file=/usr/local/nagios/etc/hosttemplates.cfg
#cfg_file=/usr/local/nagios/etc/servicetemplates.cfg
#cfg_file=/usr/local/nagios/etc/servicedependencies.cfg
#cfg_file=/usr/local/nagios/etc/serviceescalations.cfg
#cfg_file=/usr/local/nagios/etc/hostdependencies.cfg
#cfg_file=/usr/local/nagios/etc/hostescalations.cfg
#cfg_file=/usr/local/nagios/etc/hostextinfo.cfg
#cfg_file=/usr/local/nagios/etc/serviceextinfo.cfgCode: Select all
-- Unit nagios.service has begun starting up.
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Nagios Core 4.4.6
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Copyright (c) 1999-2009 Ethan Galstad
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Last Modified: 2020-04-28
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: License: GPL
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Website: https://www.nagios.org
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Reading configuration data...
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Read main config file okay...
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Read object config files okay...
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Running pre-flight check on configuration data...
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Checking objects...
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Error: There are no services defined!
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Checked 0 services.
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Error: There are no hosts defined!
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Checked 0 hosts.
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Checked 0 host groups.
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Checked 0 service groups.
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Error: There are no contacts defined!
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Checked 0 contacts.
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Checked 0 contact groups.
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Checked 0 commands.
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Checked 0 time periods.
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Checked 0 host escalations.
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Checked 0 service escalations.
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Checking for circular paths...
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Checked 0 hosts
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Checked 0 service dependencies
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Checked 0 host dependencies
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Checked 0 timeperiods
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Checking global event handlers...
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Error: Global host event handler command 'xi_host_event_handler' is not defined anywhere!
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Error: Global service event handler command 'xi_service_event_handler' is not defined anywhere!
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Checking obsessive compulsive processor commands...
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Checking misc settings...
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Total Warnings: 0
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Total Errors: 5
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: ***> One or more problems was encountered while running the pre-flight check...
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: Check your configuration file(s) to ensure that they contain valid
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: directives and data definitions. If you are upgrading from a previous
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: version of Nagios, you should be aware that some variables/definitions
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: may have been removed or modified in this version. Make sure to read
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: the HTML documentation regarding the config files, as well as the
Apr 30 13:57:00 DEPRECATED_HOSTNAME nagios[3374]: 'Whats New' section to find out what has changed.
Apr 30 13:57:00 DEPRECATED_HOSTNAME systemd[1]: nagios.service: control process exited, code=exited status=1
Apr 30 13:57:00 DEPRECATED_HOSTNAME 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.
Apr 30 13:57:00 DEPRECATED_HOSTNAME systemd[1]: Unit nagios.service entered failed state.
Apr 30 13:57:00 DEPRECATED_HOSTNAME systemd[1]: nagios.service failed.
Apr 30 13:57:00 DEPRECATED_HOSTNAME polkitd[1237]: Unregistered Authentication Agent for unix-process:3368:300381 (system bus name :1.19, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)Thanks ahead of time.