Page 1 of 1

New installation error

Posted: Mon Mar 12, 2018 9:54 am
by bosecorp
I'm not able to install new network analyzer.

Getting below error.

[root@ip-10-144-1-90 nagiosna]# ./fullinstall
ERROR: unable to read system id.
It looks like Nagios Network Analyzer is already installed.
[root@ip-10-144-1-90 nagiosna]# rhn_check -v
ERROR: unable to read system id.


After this i uncommented the below lines from /tmp/nagiosna/libinstall.sh

# If the system is Red Hat, make sure it's registered & has the appropriate
# channels enabled.
#valid_rhel() {
# if [ -x /usr/sbin/rhn_check ] && ! /usr/sbin/rhn_check 2>/dev/null; then
# if [ -x /usr/bin/subscription-manager ] && [[ ! -z $(subscription-manager list | grep Status: | grep -qF Subscribed) ]]; then
# error "your Red Hat installation is not registered or does" \
# "not have proper entitlements. Please register or" \
# "enable entitlements at rhn.redhat.com."
# fi
# fi
#}

#valid_rhel

After this i got below error.

[root@ip-10-144-1-90 nagiosna]# ./fullinstall
It looks like Nagios Network Analyzer is already installed.

Need assistance on urgent basis

Below the server details

[root@ip-10-144-1-90 nagiosna]# df -lh
Filesystem Size Used Avail Use% Mounted on
/dev/xvda2 60G 1.7G 59G 3% /
devtmpfs 7.8G 0 7.8G 0% /dev
tmpfs 7.8G 0 7.8G 0% /dev/shm
tmpfs 7.8G 25M 7.8G 1% /run
tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup
/dev/mapper/vgapp-lvnagiosna_local 150G 60M 144G 1% /usr/local/nagiosna
/dev/mapper/vgapp-lvnagiosna_var 9.8G 37M 9.2G 1% /var/www/html/nagiosna
tmpfs 1.6G 0 1.6G 0% /run/user/0

[root@ip-10-144-1-90 nagiosna]# uname -a
Linux ip-10-144-1-90.bose.com 3.10.0-693.21.1.el7.x86_64 #1 SMP Fri Feb 23 18:54:16 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Re: New installation error

Posted: Mon Mar 12, 2018 10:02 am
by bosecorp
Please note that this server is not registered, we need a work around for this so that we could go ahead with the installation.

Re: New installation error

Posted: Mon Mar 12, 2018 3:47 pm
by lmiltchev
Is this a brand new install of Nagios Network Analyzer or you had a previous version already installed on this machine?

The system needs to be registered to RedHat, so that you would have access to all required repos. Technically, if you had access to all of the packages, you could comment out the section where it checks if RHEL is registerd, and proceed with the NNA install.

Have you installed any of the prerequisites manually? Do you have any local repos set up?

Re: New installation error

Posted: Tue Mar 13, 2018 6:43 am
by bosecorp
The server has access to internet, below are the list of yum repo

[root@ip-10-144-1-90 ~]# yum repolist
Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
repo id repo name status
!rhui-REGION-client-config-server-7/x86_64 Red Hat Update Infrastructure 2.0 Client Configuration Server 7 1
!rhui-REGION-rhel-server-releases/7Server/x86_64 Red Hat Enterprise Linux Server 7 (RPMs) 18,250
!rhui-REGION-rhel-server-rh-common/7Server/x86_64 Red Hat Enterprise Linux Server 7 RH Common (RPMs) 231
repolist: 18,482

Re: New installation error

Posted: Tue Mar 13, 2018 9:55 am
by scottwilkerson
bosecorp wrote:It looks like Nagios Network Analyzer is already installed.
This error is displayed and the fullinstall exists if the following directory exists

Code: Select all

/usr/local/nagiosna
There is no reason this directory should ever exist on a clean minimal install system before installing

Re: New installation error

Posted: Tue Mar 13, 2018 11:31 am
by bosecorp
I have created a partition with that name

[root@ip-10-144-1-90 ~]# df -lh
Filesystem Size Used Avail Use% Mounted on
/dev/xvda2 60G 1.7G 59G 3% /
devtmpfs 7.8G 0 7.8G 0% /dev
tmpfs 7.8G 0 7.8G 0% /dev/shm
tmpfs 7.8G 25M 7.8G 1% /run
tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup
/dev/mapper/vgapp-lvnagiosna_local 150G 60M 144G 1% /usr/local/nagiosna
/dev/mapper/vgapp-lvnagiosna_var 9.8G 37M 9.2G 1% /var/www/html/nagiosna
tmpfs 1.6G 0 1.6G 0% /run/user/0

Re: New installation error

Posted: Tue Mar 13, 2018 11:51 am
by scottwilkerson
I can see the benefit of what you did, so this is how to get around it, open libinstall and find this section

Code: Select all

	# Check if NNA is already installed
	if [ -d "/usr/local/nagiosna" ]; then
		echo "It looks like Nagios Network Analyzer is already installed."
		exit 0
	fi
and comment out the exit 0 like so

Code: Select all

	# Check if NNA is already installed
	if [ -d "/usr/local/nagiosna" ]; then
		echo "It looks like Nagios Network Analyzer is already installed."
		#exit 0
	fi
Then run fullinstall again

Re: New installation error

Posted: Wed Mar 14, 2018 5:54 am
by bosecorp
Thanks for the update, i was able to get pass that step.

Now i see a different error (backend), attaching the installation log

Running 'backend'...
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'


=========================================

Below is the listing for /usr/local/nagiosna/

[root@ip-10-144-1-90 nagiosna]# ls -l /usr/local/nagiosna/
total 20
drwxrwxr-x 7 nna nnacmd 4096 Mar 14 06:38 backend
drwxrwxr-x 2 nna nnacmd 16384 Feb 28 17:33 lost+found

Re: New installation error

Posted: Wed Mar 14, 2018 8:58 am
by scottwilkerson
This is quite bizarre and maybe it is somehow because of the mounted directories, but the contents of that backend folder is supposed to be copied, not the folder itself..

Lets do this

Code: Select all

cd /tmp/nagiosna
cp-r backend/* /usr/local/nagiosna
./fullinstall
At this point I am a little nervous of what other parts of the install may not have went as expected. This same install process has worked on thousands of systems without issue for many years.

Re: New installation error

Posted: Wed Mar 14, 2018 9:44 am
by bosecorp
it worked, installation done. You can lock the thread now