Error installing fresh XI and NA

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Error installing fresh XI and NA

Post by BanditBBS »

have two fresh servers built, both are:

Code: Select all

+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name:   Red Hat Enterprise Linux Server
Product ID:     69
Version:        7.6
Arch:           x86_64
Status:         Subscribed
Status Details:
Starts:         07/12/2018
Ends:           07/12/2019
When tryign to run XI full install I get this and it hangs...

Code: Select all

========================
Nagios XI Full Installer
========================

This script will do a complete install of Nagios XI by executing all necessary sub-scripts.

IMPORTANT: This script should only be used on a 'clean' install of CentOS, RHEL, Ubuntu LTS, Debian, or Oracle. Do NOT use this on a system that has been tasked with other purposes
or has an existing install of Nagios Core. To create such a clean install you should have selected only the base package in the OS installer.
Do you want to continue? [Y/n] y
Proceeding with installation...
Checking MySQL credentials...
MySQL not yet installed - that's okay.
Running './0-repos'...
Configuring Repos...
Passed New Subscription Check
package centos-release is not installed
An error has occurred:
ERROR: can not find RHNS CA file: /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
See /var/log/up2date for more information
As for NA:

Code: Select all

ERROR: unable to read system id.
It looks like Nagios Network Analyzer is already installed.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Error installing fresh XI and NA

Post by tgriep »

The XI install, does the server have access to the internet?
The error is coming from a missing GPG key for the Redhat Repository so can you try and re-registering the system and then run
yum clean all
to clear out the yum cache and see if you can install after that.

The NA server.
Did you try and install it twice on the server?
The ERROR: unable to read system id. message is a Redhat yum issue so make sure the system is registered with Redhat and that is can update the packages before installing NA.

Both system need to be registered with Redhat and can run a yum update.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Error installing fresh XI and NA

Post by BanditBBS »

I asked my server admin team to re-register both and am waiting on that. Both are using yum without issue though.

NA: I have tried multiple times, but I got the same message the first time it ran as well.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Error installing fresh XI and NA

Post by tgriep »

After the NA server gets re-registered, delete this folder

Code: Select all

/usr/local/nagiosna
If it exists and then install NNA.
The installer checks for that folder and it is exists, it prints out that message.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Error installing fresh XI and NA

Post by BanditBBS »

tgriep wrote:After the NA server gets re-registered, delete this folder

Code: Select all

/usr/local/nagiosna
If it exists and then install NNA.
The installer checks for that folder and it is exists, it prints out that message.
Well, that would be the issue with NA, but I can't delete it, it is a special mount I had created during server build. Can I just remark out that check in the installer?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Error installing fresh XI and NA

Post by tgriep »

In the libinstall.sh script, comment out this section so the installer will stop checking for that folder.

Code: Select all

        if [ -d "/usr/local/nagiosna" ]; then
                echo "It looks like Nagios Network Analyzer is already installed." >&2
                exit 1
        fi
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Error installing fresh XI and NA

Post by BanditBBS »

OK, NagiosXI install completed! Woot!

NagiosNA latest status:

Code: Select all

chmod: cannot access ‘/usr/local/nagiosna/bin/rc.py’: No such file or directory

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).

If you require assistance in resolving the issue, please include install.log
in your communications with Nagios Enterprises technical support.

The step that failed was: 'backend'
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Error installing fresh XI and NA

Post by tgriep »

Check the permissions of the /usr/local/nagiosna folder to see if the nna user account can read and write to it.
And since it is a Special Mount, make sure it is writable.

If you still have issues, remove that directory, let the installer run and then move the data to the special mount.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Error installing fresh XI and NA

Post by BanditBBS »

Code: Select all

[root@xxxxxxxxx bin]# ll rc.py
-rwxrwxr-x. 1 nna nnacmd 4359 Mar 15 14:49 rc.py
[root@xxxxxxxx bin]# pwd
/usr/local/nagiosna/backend/bin
it can definitely write to it and the file exists that it was trying to chmod but there is an extra folder there "backend"
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
SteveBeauchemin
Posts: 524
Joined: Mon Oct 14, 2013 7:19 pm

Re: Error installing fresh XI and NA

Post by SteveBeauchemin »

Instead of Delete the Folder, can you just empty the folder instead? Does that count?

Instead of

Code: Select all

sudo rm -rf /usr/local/nagiosna
Would this be okay?

Code: Select all

sudo rm -rf /usr/local/nagiosna/*
Fyi - I have /usr/local as my mount and nagiosna is a dir under it. Similar, but different.

Hi Jim!

Steve B
XI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
Locked