Supported OS during install
-
jonathanklay
- Posts: 7
- Joined: Thu Feb 12, 2015 2:18 pm
Supported OS during install
I am trying to install Nagios XI on a cleanly installed system running RHEL 7.5. First it returned
"ERROR: Could not determine OS. Please make sure lsb_release is installed or your OS info is in /etc/os-release."
even though /etc/os-release looked good. I ran "yum -y install redhat-lsb" (very surprising amount of dependencies) then tried again, this time getting
"Running './0-repos'...
Configuring Repos...
redhatenterpriseworkstation7 is not currently supported. Please use one of the following distros:
CentOS, RHEL, Oracle 6 or 7
Ubuntu 14, 16 or 18 LTS
Debian 8 or 9
RESULT=1
===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log)."
I can't find anyone reporting they received "redhatenterpriseworkstation7" as the distro and it caused an installation failure. The install.log reported
DISTRO INFO:
RedHatEnterpriseWorkstation
7.5
x86_64
"ERROR: Could not determine OS. Please make sure lsb_release is installed or your OS info is in /etc/os-release."
even though /etc/os-release looked good. I ran "yum -y install redhat-lsb" (very surprising amount of dependencies) then tried again, this time getting
"Running './0-repos'...
Configuring Repos...
redhatenterpriseworkstation7 is not currently supported. Please use one of the following distros:
CentOS, RHEL, Oracle 6 or 7
Ubuntu 14, 16 or 18 LTS
Debian 8 or 9
RESULT=1
===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log)."
I can't find anyone reporting they received "redhatenterpriseworkstation7" as the distro and it caused an installation failure. The install.log reported
DISTRO INFO:
RedHatEnterpriseWorkstation
7.5
x86_64
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Supported OS during install
Hello, @jonathanklay. We support only RedHatEnterpriseServer. Have you considered using a CentOS server or downloading our precompiled OVA?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
jonathanklay
- Posts: 7
- Joined: Thu Feb 12, 2015 2:18 pm
Re: Supported OS during install
Interesting. We dropped all our server subscriptions some time ago because of the extra cost and nobody could identify the benefits (for our organization). I will look into the OVA I suppose.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Supported OS during install
@jonathanklay, You could try tweaking the install script to proceed with the installation on your version of RedHat just for sake of experiment. But we won't be able to provide support if the installation fails. So if you'd like to try that change the line 67 of this file -> /tmp/nagiosxi/0-repos
From:
https://www.nagios.com/downloads/nagios-xi/vmware/
From:
To:if [ "$distro" = "RedHatEnterpriseServer" ]
Otherwise, you can download the latest OVA here:if [ "$distro" = "RedHatEnterpriseWorkstation" ]
https://www.nagios.com/downloads/nagios-xi/vmware/
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
jonathanklay
- Posts: 7
- Joined: Thu Feb 12, 2015 2:18 pm
Re: Supported OS during install
I ran through the install multiple times fixing issues as they arose.
First, I edited scripts in the nagiosxi directory (I did not try changing these in xi-sys.cfg, which might have been easier) where ever I found these;
$dist el7 -> redhatenterpriseworkstation7
$distro "RedHatEnterpriseServer" -> "RedHatEnterpriseWorkstation"
I installed some packages along the way;
yum install -y yum-utils
yum-config-manager --enable rhel-7-workstation-optional-rpms
yum install mysql
yum install mariadb-common mariadb-compat mariadb-client mariadb-devel
yum install httpd
yum install php
yum install php-mcrypt
yum install mod_ssl openssl
(https://wiki.centos.org/HowTos/Https)
vi xi-sys.cfg edit to php_extension_dir='/usr/lib64/php/modules'
yum install rrdtool
yum install xinetd
systemctl start xinetd ; systemctl enable xinetd
systemctl start httpd ; systemctl enable httpd
yum install perl-Config-Tiny
yum install perl-Class-Accessor
yum install perl-Math-Calc-Units
yum install perl-Params-Validate
yum install shellinabox
vi nagiosxi/subcomponents/wkhtmltox/install and change the package name to wkhtmltox-0.12.2.1_linux-centos7-amd64
I also needed, until configured, to "systemctl stop firewalld.service"
One issue left is that after Nagios XI install, it installs wizrds and components, and I get messages such as this --
"<h3>Databse Error</h3>A database connection error has been detected, please follow the repair prompt below. If the issue persists, please contact Nagios support.<p>Run the following from the CLI as root to attempt to repair the DB:<br><pre>/usr/local/nagiosxi/scripts/repair_databases.sh</pre></p>Installing 'components/escalationwizard.zip'"
I ran "/usr/local/nagiosxi/scripts/repair_databases.sh" where it fixed a bunch of indexes and re-ran the install with no difference.
nagios database repair succeeded
nagiosql database repair skipped, no *.MYI files found
nagiosxi database repair skipped, no *.MYI files found
"The contents of /usr/local/nagiosxi/html/includes/components/nrdsconfigmanager/ were not automatically unzipped, did it manually from "unzip subcomponents/xicomponents/components/nrdsconfigmanager.zip"."
It continued and finished that script though.
And lastly (at this point), I don't know where to start with this:
Running './D-chkconfigalldaemons'...
error reading information on service nagios: No such file or directory
RESULT=1
First, I edited scripts in the nagiosxi directory (I did not try changing these in xi-sys.cfg, which might have been easier) where ever I found these;
$dist el7 -> redhatenterpriseworkstation7
$distro "RedHatEnterpriseServer" -> "RedHatEnterpriseWorkstation"
I installed some packages along the way;
yum install -y yum-utils
yum-config-manager --enable rhel-7-workstation-optional-rpms
yum install mysql
yum install mariadb-common mariadb-compat mariadb-client mariadb-devel
yum install httpd
yum install php
yum install php-mcrypt
yum install mod_ssl openssl
(https://wiki.centos.org/HowTos/Https)
vi xi-sys.cfg edit to php_extension_dir='/usr/lib64/php/modules'
yum install rrdtool
yum install xinetd
systemctl start xinetd ; systemctl enable xinetd
systemctl start httpd ; systemctl enable httpd
yum install perl-Config-Tiny
yum install perl-Class-Accessor
yum install perl-Math-Calc-Units
yum install perl-Params-Validate
yum install shellinabox
vi nagiosxi/subcomponents/wkhtmltox/install and change the package name to wkhtmltox-0.12.2.1_linux-centos7-amd64
I also needed, until configured, to "systemctl stop firewalld.service"
One issue left is that after Nagios XI install, it installs wizrds and components, and I get messages such as this --
"<h3>Databse Error</h3>A database connection error has been detected, please follow the repair prompt below. If the issue persists, please contact Nagios support.<p>Run the following from the CLI as root to attempt to repair the DB:<br><pre>/usr/local/nagiosxi/scripts/repair_databases.sh</pre></p>Installing 'components/escalationwizard.zip'"
I ran "/usr/local/nagiosxi/scripts/repair_databases.sh" where it fixed a bunch of indexes and re-ran the install with no difference.
nagios database repair succeeded
nagiosql database repair skipped, no *.MYI files found
nagiosxi database repair skipped, no *.MYI files found
"The contents of /usr/local/nagiosxi/html/includes/components/nrdsconfigmanager/ were not automatically unzipped, did it manually from "unzip subcomponents/xicomponents/components/nrdsconfigmanager.zip"."
It continued and finished that script though.
And lastly (at this point), I don't know where to start with this:
Running './D-chkconfigalldaemons'...
error reading information on service nagios: No such file or directory
RESULT=1
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Supported OS during install
@jonathanklay, Most likely these commands are failing.
At this point, I recommend using CentOS or downloading an OVA.
Something got messed up during the installation and either the /init.d/nagios script did not get created, or the nagios user doesn't exist in /etc/passwd and /etc/group. Possibly something else could've gotten misconfigured as well.chkconfig --level 35 "nagios" on
chkconfig --level 01246 "nagios" off
At this point, I recommend using CentOS or downloading an OVA.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
jonathanklay
- Posts: 7
- Joined: Thu Feb 12, 2015 2:18 pm
Re: Supported OS during install
It must be the init scripts. I'm am starting to regret not using a VM, even if I have to deal with all the issues those can bring up. Will start over next week.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Supported OS during install
@jonathanklay, Sounds good. Keep us updated.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
jonathanklay
- Posts: 7
- Joined: Thu Feb 12, 2015 2:18 pm
Re: Supported OS during install
After catching up on other tasks, I took another look. After running
cp -r subcomponents/nagioscore/mods/nagios.init /etc/init.d/nagios
(which only seemed to be in an Update script) then
chkconfig --level 35 "nagios" on
chkconfig --level 01246 "nagios" off
then after another "not found" error, got the missing package
yum install php-mysqli
'./fullinstall -f' now completed, I could open the web interface and finish the install. It all looks good!
I think this edit early on would have helped:
vi init.sh
case "$distro" in
CentOS | RedHatEnterpriseServer | RedHatEnterpriseWorkstation | OracleServer | CloudLinux )
cp -r subcomponents/nagioscore/mods/nagios.init /etc/init.d/nagios
(which only seemed to be in an Update script) then
chkconfig --level 35 "nagios" on
chkconfig --level 01246 "nagios" off
then after another "not found" error, got the missing package
yum install php-mysqli
'./fullinstall -f' now completed, I could open the web interface and finish the install. It all looks good!
I think this edit early on would have helped:
vi init.sh
case "$distro" in
CentOS | RedHatEnterpriseServer | RedHatEnterpriseWorkstation | OracleServer | CloudLinux )
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Supported OS during install
Great!jonathanklay wrote:After catching up on other tasks, I took another look. After running
cp -r subcomponents/nagioscore/mods/nagios.init /etc/init.d/nagios
(which only seemed to be in an Update script) then
chkconfig --level 35 "nagios" on
chkconfig --level 01246 "nagios" off
then after another "not found" error, got the missing package
yum install php-mysqli
'./fullinstall -f' now completed, I could open the web interface and finish the install. It all looks good!
I think this edit early on would have helped:
vi init.sh
case "$distro" in
CentOS | RedHatEnterpriseServer | RedHatEnterpriseWorkstation | OracleServer | CloudLinux )
Glad you got it up and running!
Locking Thread