Hi all,
People we are suffering an weird problem. our current installation is completelly offline. We had reinstalled the server from scratch because we need to move to RHEL8 (cybersecurity policies)
As always, we use the official documentation (I'm not sure if it is up to date) https://assets.nagios.com/downloads/nag ... onment.pdf
Requirements RHEL8: Offline server must still have access to RHEL Base, EPEL, and codereadybuilder-for-rhel-8-x86_64-rpms (actual or clone) for installation/upgrade.
we found we missed some packages, like 'patch', once we solved the dependencies the process was still failing, the result was that some files in the Nagios core component weren't installed correctly.
# uname -a
Linux INTserver 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Thu May 18 10:27:05 EDT 2023 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/*rele*
NAME="Red Hat Enterprise Linux"
VERSION="8.8 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.8 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation ... se_linux/8"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.8
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.8"
Red Hat Enterprise Linux release 8.8 (Ootpa)
Red Hat Enterprise Linux release 8.8 (Ootpa)
cpe:/o:redhat:enterprise_linux:8::baseos
# yum repolist
Updating Subscription Management repositories.
repo id repo name
codeready-builder-for-rhel-8-x86_64-rpms Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs)
epel Extra Packages for Enterprise Linux 8 - x86_64
rhel-8-for-x86_64-appstream-rpms Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
rhel-8-for-x86_64-baseos-rpms Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)
After running ./fullinstall script:
./fullinstall
Updating Subscription Management repositories.
This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions.
Last metadata expiration check: 4:20:21 ago on Wed 05 Jul 2023 04:05:23 AM CEST.
Package fping-4.2-2.el8.x86_64 is already installed.
Package libmcrypt-2.5.8-26.el8.x86_64 is already installed.
Package libpng15-1.5.30-8.el8.x86_64 is already installed.
Package nagiosxi-5.10.0-1.el8.x86_64 is already installed.
Package nagiosxi-mrtg-5.10.0-1.el8.x86_64 is already installed.
Package nagiosxi-nagioscore-5.10.0-1.el8.x86_64 is already installed.
Package nagiosxi-nagiosplugins-5.10.0-1.el8.x86_64 is already installed.
Package nagiosxi-nagvis-5.10.0-1.el8.x86_64 is already installed.
Package nagiosxi-ndoutils-5.10.0-1.el8.x86_64 is already installed.
Package nagiosxi-nrds-5.10.0-1.el8.x86_64 is already installed.
Package nagiosxi-nrpe-5.10.0-1.el8.x86_64 is already installed.
Package nagiosxi-nsca-5.10.0-1.el8.x86_64 is already installed.
Package nagiosxi-nxti-5.10.0-1.el8.x86_64 is already installed.
Package nagiosxi-pnp-5.10.0-1.el8.x86_64 is already installed.
Package nagiosxi-shellinabox-5.10.0-1.el8.x86_64 is already installed.
Package nagiosxi-wkhtmltox-5.10.0-1.el8.x86_64 is already installed.
Package nagiosxi-wmic-5.10.0-1.el8.x86_64 is already installed.
Package net-snmp-1:5.8-7.el8.2.x86_64 is already installed.
Package net-snmp-agent-libs-1:5.8-7.el8.2.x86_64 is already installed.
Package net-snmp-devel-1:5.8-7.el8.2.x86_64 is already installed.
Package net-snmp-libs-1:5.8-7.el8.2.x86_64 is already installed.
Package net-snmp-perl-1:5.8-7.el8.2.x86_64 is already installed.
Package net-snmp-utils-1:5.8-7.el8.2.x86_64 is already installed.
Package perl-Class-Accessor-0.51-2.el8.noarch is already installed.
Package perl-Class-Singleton-1.5-9.el8.noarch is already installed.
Package perl-Config-IniFiles-3.000002-3.el8.noarch is already installed.
Package perl-Crypt-DES-2.07-19.1.el8.x86_64 is already installed.
Package perl-DateTime-2:1.50-1.el8.x86_64 is already installed.
Package perl-Digest-SHA1-2.13-23.el8.x86_64 is already installed.
Package perl-IO-stringy-2.111-9.el8.noarch is already installed.
Package perl-Module-Implementation-0.09-15.el8.noarch is already installed.
Package perl-Net-SNMP-6.0.1-25.el8.1.noarch is already installed.
Package perl-Number-Format-1.75-13.el8.noarch is already installed.
Package perl-Params-Validate-1.29-5.el8.x86_64 is already installed.
Package php-imap-7.2.11-1.el8.x86_64 is already installed.
Package php-pecl-ssh2-1.2-2.el8.x86_64 is already installed.
Package python3-rrdtool-1.7.0-16.el8.x86_64 is already installed.
Package python3-simplejson-3.17.0-2.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
# yum list installed | grep nagios
nagiosxi.x86_64 5.10.0-1.el8 @@commandline
nagiosxi-mrtg.x86_64 5.10.0-1.el8 @@commandline
nagiosxi-nagioscore.x86_64 5.10.0-1.el8 @@commandline
nagiosxi-nagiosplugins.x86_64 5.10.0-1.el8 @@commandline
nagiosxi-nagvis.x86_64 5.10.0-1.el8 @@commandline
nagiosxi-ndoutils.x86_64 5.10.0-1.el8 @@commandline
nagiosxi-nrds.x86_64 5.10.0-1.el8 @@commandline
nagiosxi-nrpe.x86_64 5.10.0-1.el8 @@commandline
nagiosxi-nsca.x86_64 5.10.0-1.el8 @@commandline
nagiosxi-nxti.x86_64 5.10.0-1.el8 @@commandline
nagiosxi-pnp.x86_64 5.10.0-1.el8 @@commandline
nagiosxi-shellinabox.x86_64 5.10.0-1.el8 @@commandline
nagiosxi-wkhtmltox.x86_64 5.10.0-1.el8 @@commandline
nagiosxi-wmic.x86_64 5.10.0-1.el8 @@commandline
however:
# systemctl status nagios
● nagios.service - Nagios Core 4.4.10
Loaded: loaded (/usr/lib/systemd/system/nagios.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2023-07-05 11:08:54 CEST; 53min ago
Docs: https://www.nagios.org/documentation
Process: 3721398 ExecStopPost=/usr/bin/rm -f /usr/local/nagios/var/rw/nagios.cmd (code=exited, status=0/SUCCESS)
Process: 3721395 ExecStartPre=/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg (code=exited, status=1/FAILURE)
Jul 05 11:08:54 INTserver nagios[3721395]: ***> One or more problems was encountered while processing the config files...
Jul 05 11:08:54 INTserver nagios[3721395]: Check your configuration file(s) to ensure that they contain valid
Jul 05 11:08:54 INTserver nagios[3721395]: directives and data definitions. If you are upgrading from a previous
Jul 05 11:08:54 INTserver nagios[3721395]: version of Nagios, you should be aware that some variables/definitions
Jul 05 11:08:54 INTserver nagios[3721395]: may have been removed or modified in this version. Make sure to read
Jul 05 11:08:54 INTserver nagios[3721395]: the HTML documentation regarding the config files, as well as the
Jul 05 11:08:54 INTserver nagios[3721395]: 'Whats New' section to find out what has changed.
Jul 05 11:08:54 INTserver systemd[1]: nagios.service: Control process exited, code=exited status=1
Jul 05 11:08:54 INTserver systemd[1]: nagios.service: Failed with result 'exit-code'.
Jul 05 11:08:54 INTserver systemd[1]: Failed to start Nagios Core 4.4.10.
# journalctl -xe
Jul 05 12:02:39 INTserver systemd[1]: Starting Nagios Core 4.4.10...
-- Subject: Unit nagios.service has begun start-up
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
--
-- Unit nagios.service has begun starting up.
Jul 05 12:02:39 INTserver nagios[3724924]: Nagios Core 4.4.10
Jul 05 12:02:39 INTserver nagios[3724924]: Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Jul 05 12:02:39 INTserver nagios[3724924]: Copyright (c) 1999-2009 Ethan Galstad
Jul 05 12:02:39 INTserver nagios[3724924]: Last Modified: 2023-01-17
Jul 05 12:02:39 INTserver nagios[3724924]: License: GPL
Jul 05 12:02:39 INTserver nagios[3724924]: Website: https://www.nagios.org
Jul 05 12:02:39 INTserver nagios[3724924]: Reading configuration data...
Jul 05 12:02:39 INTserver nagios[3724924]: Read main config file okay...
Jul 05 12:02:39 INTserver nagios[3724924]: Error: Cannot open config file '/usr/local/nagios/etc/contacttemplates.cfg' for reading: No such file or dire>
Jul 05 12:02:39 INTserver nagios[3724924]: Error processing object config files!
Jul 05 12:02:39 INTserver nagios[3724924]: ***> One or more problems was encountered while processing the config files...
Jul 05 12:02:39 INTserver nagios[3724924]: Check your configuration file(s) to ensure that they contain valid
Jul 05 12:02:39 INTserver nagios[3724924]: directives and data definitions. If you are upgrading from a previous
Jul 05 12:02:39 INTserver nagios[3724924]: version of Nagios, you should be aware that some variables/definitions
Jul 05 12:02:39 INTserver nagios[3724924]: may have been removed or modified in this version. Make sure to read
Jul 05 12:02:39 INTserver nagios[3724924]: the HTML documentation regarding the config files, as well as the
Jul 05 12:02:39 INTserver nagios[3724924]: 'Whats New' section to find out what has changed.
Jul 05 12:02:39 INTserver systemd[1]: nagios.service: Control process exited, code=exited status=1
Jul 05 12:02:39 INTserver systemd[1]: nagios.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
--
-- The unit nagios.service has entered the 'failed' state with result 'exit-code'.
Jul 05 12:02:39 INTserver systemd[1]: Failed to start Nagios Core 4.4.10.
-- Subject: Unit nagios.service has failed
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
--
-- Unit nagios.service has failed.
--
-- The result is failed.
# ls -lsarth /usr/local/nagios/etc/
total 56K
4.0K -rw-r--r--. 1 nagios nagios 210 May 12 20:27 resource.cfg
4.0K -rw-r--r--. 1 nagios nagios 744 May 12 20:27 cgi.cfg
4.0K -rw-rw-r--. 1 apache nagios 684 May 12 20:28 ndo.cfg
8.0K -rw-r--r--. 1 nagios nagios 5.8K May 12 20:28 nagios.cfg
16K -rw-rw-r--. 1 apache nagios 13K May 12 20:28 nrpe.cfg
4.0K -rw-rw-r--. 1 apache nagios 1.6K May 12 20:28 send_nsca.cfg
8.0K -rw-rw-r--. 1 apache nagios 5.3K May 12 20:28 nsca.cfg
0 drwxrwxr-x. 2 nagios nagios 6 May 12 20:31 import
0 drwxrwxr-x. 2 nagios nagios 6 May 12 20:31 static
0 drwxrwxr-x. 2 apache nagios 6 May 12 20:31 services
0 drwxrwxr-x. 2 apache nagios 6 May 12 20:31 hosts
4.0K drwxr-xr-x. 4 apache nagios 4.0K Jul 5 11:07 pnp
4.0K drwxrwsr-x. 7 apache nagios 4.0K Jul 5 11:07 .
0 drwxr-xr-x. 8 root root 79 Jul 5 11:07 ..
We've tried another older version with the same results: nagiosxi-5.9.3-1.el8.x86_64.tar.gz
# cat /tmp/xi-install.log
/var/tmp/rpm-tmp.5y7xeO: line 19: ./rpminstall: Permission denied
Any help will be welcomed.
Thanks in advance.
BR,
Juanma.
NagiosXI offline installation fail. Missing cfg files. Nagios failed to start.
-
- Posts: 51
- Joined: Thu Apr 23, 2020 6:46 am
Re: NagiosXI offline installation fail. Missing cfg files. Nagios failed to start.
Check the configuration files for any syntax errors or missing directives.
Use the command sudo /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg to validate the configuration.
This command will help identify any configuration errors that need to be addressed.
Use the command sudo /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg to validate the configuration.
This command will help identify any configuration errors that need to be addressed.
-
- Posts: 51
- Joined: Thu Apr 23, 2020 6:46 am
Re: NagiosXI offline installation fail. Missing cfg files. Nagios failed to start.
Hi!
First of all, thanks for your response.
As you can check in the #journalctl -xe output, there are some missing cfg files that should have been created during the offline installation and that is the problem, so it seems there are some problems with the offline installation and this is why I'm asking for some help.
Anyway, here you have the output of the configuration check:
# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Thanks in advance.
BR,
Juanma.
First of all, thanks for your response.
As you can check in the #journalctl -xe output, there are some missing cfg files that should have been created during the offline installation and that is the problem, so it seems there are some problems with the offline installation and this is why I'm asking for some help.
Anyway, here you have the output of the configuration check:
# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Code: Select all
Nagios Core 4.4.10
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2023-01-17
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Cannot open config file '/usr/local/nagios/etc/contacttemplates.cfg' for reading: No such file or directory
Error processing object config files!
***> One or more problems was encountered while processing the config files...
Check your configuration file(s) to ensure that they contain valid
directives and data definitions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
BR,
Juanma.
-
- Posts: 1
- Joined: Mon Jul 24, 2023 6:38 am
Re: NagiosXI offline installation fail. Missing cfg files. Nagios failed to start.
I have one thing that makes you not want to leave here.jmsanesteban.sgre wrote: ↑Wed Jul 05, 2023 5:26 am Hi all,
People we are suffering an weird problem. our current installation is completelly offline. We had reinstalled the server from scratch because we need to move to RHEL8 (cybersecurity policies)
As always, we use the official documentation (I'm not sure if it is up to date) https://assets.nagios.com/downloads/nag ... onment.pdfFriday Night Funkin
Requirements RHEL8: Offline server must still have access to RHEL Base, EPEL, and codereadybuilder-for-rhel-8-x86_64-rpms (actual or clone) for installation/upgrade.
we found we missed some packages, like 'patch', once we solved the dependencies the process was still failing, the result was that some files in the Nagios core component weren't installed correctly.
# uname -a
Linux INTserver 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Thu May 18 10:27:05 EDT 2023 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/*rele*
NAME="Red Hat Enterprise Linux"
VERSION="8.8 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.8 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation ... se_linux/8"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.8
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.8"
Red Hat Enterprise Linux release 8.8 (Ootpa)
Red Hat Enterprise Linux release 8.8 (Ootpa)
cpe:/o:redhat:enterprise_linux:8::baseos
# yum repolist
Updating Subscription Management repositories.
repo id repo name
codeready-builder-for-rhel-8-x86_64-rpms Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs)
epel Extra Packages for Enterprise Linux 8 - x86_64
rhel-8-for-x86_64-appstream-rpms Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
rhel-8-for-x86_64-baseos-rpms Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)
After running ./fullinstall script:
./fullinstall
Updating Subscription Management repositories.
This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions.
Last metadata expiration check: 4:20:21 ago on Wed 05 Jul 2023 04:05:23 AM CEST.
Package fping-4.2-2.el8.x86_64 is already installed.
Package libmcrypt-2.5.8-26.el8.x86_64 is already installed.
Package libpng15-1.5.30-8.el8.x86_64 is already installed.
Package nagiosxi-5.10.0-1.el8.x86_64 is already installed.
Package nagiosxi-mrtg-5.10.0-1.el8.x86_64 is already installed.
Package nagiosxi-nagioscore-5.10.0-1.el8.x86_64 is already installed.
Package nagiosxi-nagiosplugins-5.10.0-1.el8.x86_64 is already installed.
Package nagiosxi-nagvis-5.10.0-1.el8.x86_64 is already installed.
Package nagiosxi-ndoutils-5.10.0-1.el8.x86_64 is already installed.
Package nagiosxi-nrds-5.10.0-1.el8.x86_64 is already installed.
Package nagiosxi-nrpe-5.10.0-1.el8.x86_64 is already installed.
Package nagiosxi-nsca-5.10.0-1.el8.x86_64 is already installed.
Package nagiosxi-nxti-5.10.0-1.el8.x86_64 is already installed.
Package nagiosxi-pnp-5.10.0-1.el8.x86_64 is already installed.
Package nagiosxi-shellinabox-5.10.0-1.el8.x86_64 is already installed.
Package nagiosxi-wkhtmltox-5.10.0-1.el8.x86_64 is already installed.
Package nagiosxi-wmic-5.10.0-1.el8.x86_64 is already installed.
Package net-snmp-1:5.8-7.el8.2.x86_64 is already installed.
Package net-snmp-agent-libs-1:5.8-7.el8.2.x86_64 is already installed.
Package net-snmp-devel-1:5.8-7.el8.2.x86_64 is already installed.
Package net-snmp-libs-1:5.8-7.el8.2.x86_64 is already installed.
Package net-snmp-perl-1:5.8-7.el8.2.x86_64 is already installed.
Package net-snmp-utils-1:5.8-7.el8.2.x86_64 is already installed.
Package perl-Class-Accessor-0.51-2.el8.noarch is already installed.
Package perl-Class-Singleton-1.5-9.el8.noarch is already installed.
Package perl-Config-IniFiles-3.000002-3.el8.noarch is already installed.
Package perl-Crypt-DES-2.07-19.1.el8.x86_64 is already installed.
Package perl-DateTime-2:1.50-1.el8.x86_64 is already installed.
Package perl-Digest-SHA1-2.13-23.el8.x86_64 is already installed.
Package perl-IO-stringy-2.111-9.el8.noarch is already installed.
Package perl-Module-Implementation-0.09-15.el8.noarch is already installed.
Package perl-Net-SNMP-6.0.1-25.el8.1.noarch is already installed.
Package perl-Number-Format-1.75-13.el8.noarch is already installed.
Package perl-Params-Validate-1.29-5.el8.x86_64 is already installed.
Package php-imap-7.2.11-1.el8.x86_64 is already installed.
Package php-pecl-ssh2-1.2-2.el8.x86_64 is already installed.
Package python3-rrdtool-1.7.0-16.el8.x86_64 is already installed.
Package python3-simplejson-3.17.0-2.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
# yum list installed | grep nagios
nagiosxi.x86_64 5.10.0-1.el8 @@commandline
nagiosxi-mrtg.x86_64 5.10.0-1.el8 @@commandline
nagiosxi-nagioscore.x86_64 5.10.0-1.el8 @@commandline
nagiosxi-nagiosplugins.x86_64 5.10.0-1.el8 @@commandline
nagiosxi-nagvis.x86_64 5.10.0-1.el8 @@commandline
nagiosxi-ndoutils.x86_64 5.10.0-1.el8 @@commandline
nagiosxi-nrds.x86_64 5.10.0-1.el8 @@commandline
nagiosxi-nrpe.x86_64 5.10.0-1.el8 @@commandline
nagiosxi-nsca.x86_64 5.10.0-1.el8 @@commandline
nagiosxi-nxti.x86_64 5.10.0-1.el8 @@commandline
nagiosxi-pnp.x86_64 5.10.0-1.el8 @@commandline
nagiosxi-shellinabox.x86_64 5.10.0-1.el8 @@commandline
nagiosxi-wkhtmltox.x86_64 5.10.0-1.el8 @@commandline
nagiosxi-wmic.x86_64 5.10.0-1.el8 @@commandline
however:
# systemctl status nagios
● nagios.service - Nagios Core 4.4.10
Loaded: loaded (/usr/lib/systemd/system/nagios.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2023-07-05 11:08:54 CEST; 53min ago
Docs: https://www.nagios.org/documentation
Process: 3721398 ExecStopPost=/usr/bin/rm -f /usr/local/nagios/var/rw/nagios.cmd (code=exited, status=0/SUCCESS)
Process: 3721395 ExecStartPre=/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg (code=exited, status=1/FAILURE)
Jul 05 11:08:54 INTserver nagios[3721395]: ***> One or more problems was encountered while processing the config files...
Jul 05 11:08:54 INTserver nagios[3721395]: Check your configuration file(s) to ensure that they contain valid
Jul 05 11:08:54 INTserver nagios[3721395]: directives and data definitions. If you are upgrading from a previous
Jul 05 11:08:54 INTserver nagios[3721395]: version of Nagios, you should be aware that some variables/definitions
Jul 05 11:08:54 INTserver nagios[3721395]: may have been removed or modified in this version. Make sure to read
Jul 05 11:08:54 INTserver nagios[3721395]: the HTML documentation regarding the config files, as well as the
Jul 05 11:08:54 INTserver nagios[3721395]: 'Whats New' section to find out what has changed.
Jul 05 11:08:54 INTserver systemd[1]: nagios.service: Control process exited, code=exited status=1
Jul 05 11:08:54 INTserver systemd[1]: nagios.service: Failed with result 'exit-code'.
Jul 05 11:08:54 INTserver systemd[1]: Failed to start Nagios Core 4.4.10.
# journalctl -xe
Jul 05 12:02:39 INTserver systemd[1]: Starting Nagios Core 4.4.10...
-- Subject: Unit nagios.service has begun start-up
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
--
-- Unit nagios.service has begun starting up.
Jul 05 12:02:39 INTserver nagios[3724924]: Nagios Core 4.4.10
Jul 05 12:02:39 INTserver nagios[3724924]: Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Jul 05 12:02:39 INTserver nagios[3724924]: Copyright (c) 1999-2009 Ethan Galstad
Jul 05 12:02:39 INTserver nagios[3724924]: Last Modified: 2023-01-17
Jul 05 12:02:39 INTserver nagios[3724924]: License: GPL
Jul 05 12:02:39 INTserver nagios[3724924]: Website: https://www.nagios.org
Jul 05 12:02:39 INTserver nagios[3724924]: Reading configuration data...
Jul 05 12:02:39 INTserver nagios[3724924]: Read main config file okay...
Jul 05 12:02:39 INTserver nagios[3724924]: Error: Cannot open config file '/usr/local/nagios/etc/contacttemplates.cfg' for reading: No such file or dire>
Jul 05 12:02:39 INTserver nagios[3724924]: Error processing object config files!
Jul 05 12:02:39 INTserver nagios[3724924]: ***> One or more problems was encountered while processing the config files...
Jul 05 12:02:39 INTserver nagios[3724924]: Check your configuration file(s) to ensure that they contain valid
Jul 05 12:02:39 INTserver nagios[3724924]: directives and data definitions. If you are upgrading from a previous
Jul 05 12:02:39 INTserver nagios[3724924]: version of Nagios, you should be aware that some variables/definitions
Jul 05 12:02:39 INTserver nagios[3724924]: may have been removed or modified in this version. Make sure to read
Jul 05 12:02:39 INTserver nagios[3724924]: the HTML documentation regarding the config files, as well as the
Jul 05 12:02:39 INTserver nagios[3724924]: 'Whats New' section to find out what has changed.
Jul 05 12:02:39 INTserver systemd[1]: nagios.service: Control process exited, code=exited status=1
Jul 05 12:02:39 INTserver systemd[1]: nagios.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
--
-- The unit nagios.service has entered the 'failed' state with result 'exit-code'.
Jul 05 12:02:39 INTserver systemd[1]: Failed to start Nagios Core 4.4.10.
-- Subject: Unit nagios.service has failed
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
--
-- Unit nagios.service has failed.
--
-- The result is failed.
# ls -lsarth /usr/local/nagios/etc/
total 56K
4.0K -rw-r--r--. 1 nagios nagios 210 May 12 20:27 resource.cfg
4.0K -rw-r--r--. 1 nagios nagios 744 May 12 20:27 cgi.cfg
4.0K -rw-rw-r--. 1 apache nagios 684 May 12 20:28 ndo.cfg
8.0K -rw-r--r--. 1 nagios nagios 5.8K May 12 20:28 nagios.cfg
16K -rw-rw-r--. 1 apache nagios 13K May 12 20:28 nrpe.cfg
4.0K -rw-rw-r--. 1 apache nagios 1.6K May 12 20:28 send_nsca.cfg
8.0K -rw-rw-r--. 1 apache nagios 5.3K May 12 20:28 nsca.cfg
0 drwxrwxr-x. 2 nagios nagios 6 May 12 20:31 import
0 drwxrwxr-x. 2 nagios nagios 6 May 12 20:31 static
0 drwxrwxr-x. 2 apache nagios 6 May 12 20:31 services
0 drwxrwxr-x. 2 apache nagios 6 May 12 20:31 hosts
4.0K drwxr-xr-x. 4 apache nagios 4.0K Jul 5 11:07 pnp
4.0K drwxrwsr-x. 7 apache nagios 4.0K Jul 5 11:07 .
0 drwxr-xr-x. 8 root root 79 Jul 5 11:07 ..
We've tried another older version with the same results: nagiosxi-5.9.3-1.el8.x86_64.tar.gz
# cat /tmp/xi-install.log
/var/tmp/rpm-tmp.5y7xeO: line 19: ./rpminstall: Permission denied
Any help will be welcomed.
Thanks in advance.
BR,
Juanma.
Re: NagiosXI offline installation fail. Missing cfg files. Nagios failed to start.
Here is an offline installation tutorial video that I found. Hope this helps.
https://www.youtube.com/watch?v=511URwPZDA4
https://www.youtube.com/watch?v=511URwPZDA4
Re: NagiosXI offline installation fail. Missing cfg files. Nagios failed to start.
/usr/local/nagios/etc/contacttemplates.cfg is missing.
You should be able to run the reconfigure script, or apply the config crom core config manager to write the config files.
You should be able to run the reconfigure script, or apply the config crom core config manager to write the config files.
-
- Posts: 51
- Joined: Thu Apr 23, 2020 6:46 am
Re: NagiosXI offline installation fail. Missing cfg files. Nagios failed to start.
Hi all,
As always thanks for your comments:
At the end I've opened a support ticket.
In the offline folder:
After running it, some minor problems appeared, but they were easy to solve.
Thanks all!
BR,
Juanma.
As always thanks for your comments:
It is the same process as the normal offline installation. That process failed in my environment, this is why I ask for your help.bv406 wrote: ↑Mon Jul 24, 2023 4:27 pm Here is an offline installation tutorial video that I found. Hope this helps.
https://www.youtube.com/watch?v=511URwPZDA4
Please could you elaboreate a bit more on that, you have all my attemptiondryfirewood wrote: ↑Mon Jul 24, 2023 6:40 amI have one thing that makes you not want to leave here.jmsanesteban.sgre wrote: ↑Wed Jul 05, 2023 5:26 am Hi all,
People we are suffering an weird problem. our current installation is completelly offline. We had reinstalled the server from scratch because we need to move to RHEL8 (cybersecurity policies)
...
...
At the end I've opened a support ticket.
In the offline folder:
Code: Select all
rpm2cpio nagiosxi-5.10.0* | cpio -idmv
cd tmp/nagiosxi
chmod +x rpminstall
./rpminstall
Thanks all!
BR,
Juanma.
-
- Posts: 6
- Joined: Wed Jul 05, 2023 2:46 am
Re: NagiosXI offline installation fail. Missing cfg files. Nagios failed to start.
Thanks, problem solved
slope
slope