Fresh install

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: Fresh install

Post by bosecorp »

[root@usvanagiosdev8 ~]# yum-config-manager --enable rhel-7-server-optional-rpms
Loaded plugins: amazon-id, rhui-lb, versionlock
[root@usvanagiosdev8 ~]# yum-config-manager --enable rhel-7-server-optional-rpms
Loaded plugins: amazon-id, rhui-lb, versionlock
[root@usvanagiosdev8 ~]#
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Fresh install

Post by avandemore »

What about the output from:

Code: Select all

# subscription-manager repos --list
Did you read your vendor's documentation?

https://access.redhat.com/documentation ... positories
Previous Nagios employee
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: Fresh install

Post by bosecorp »

[root@usvanagiosdev8 ~]# subscription-manager repos --list
This system has no repositories available through subscriptions.
User avatar
tgriep
Madmin
Posts: 9179
Joined: Thu Oct 30, 2014 9:02 am

Re: Fresh install

Post by tgriep »

Can you login as root to the server and run the following commands to scribe to the Redhat Optional Channel repos?
Please post the output when you run the commands.

Code: Select all

subscription-manager repos --enable 
subscription-manager repos --enable rhel-7-server-optional-rpms
If the optional repo is installed on the server successfully, try installing XI again.

If not, run the following and post the output.

Code: Select all

yum repolist
Be sure to check out our Knowledgebase for helpful articles and solutions!
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: Fresh install

Post by bosecorp »

here is the output


subscription-manager: error: --enable option requires an argument
[root@usvanagiosdev8 ~]#
[root@usvanagiosdev8 ~]#
[root@usvanagiosdev8 ~]# subscription-manager repos --enable rhel-7-server-optional-rpms
Error: 'rhel-7-server-optional-rpms' does not match a valid repository ID. Use "subscription-manager repos --list" to see valid repositories.
[root@usvanagiosdev8 ~]#


[root@usvanagiosdev8 ~]# subscription-manager repos --list
This system has no repositories available through subscriptions.
Last edited by bosecorp on Thu Jun 08, 2017 1:23 pm, edited 1 time in total.
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: Fresh install

Post by bosecorp »

[root@usvanagiosdev8 ~]# yum repolist
Loaded plugins: amazon-id, rhui-lb, search-disabled-repos, versionlock
repo id repo name status
!chef-stable/x86_64 Chef Software Inc chef-stable repository 373
!epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 11,771
!nagios-base Nagios 80
!nagiosxi-deps Nagios XI Dependencies 26
!rhui-REGION-client-config-server-7/x86_64 Red Hat Update Infrastructure 2.0 Client Configuration Server 7 6
!rhui-REGION-rhel-server-releases/7Server/x86_64 Red Hat Enterprise Linux Server 7 (RPMs) 14,447
!rhui-REGION-rhel-server-rh-common/7Server/x86_64 Red Hat Enterprise Linux Server 7 RH Common (RPMs) 228
repolist: 26,931
User avatar
tgriep
Madmin
Posts: 9179
Joined: Thu Oct 30, 2014 9:02 am

Re: Fresh install

Post by tgriep »

You need to register your server with Redhat before you can install the optional repositories.
The links below should help you out in doing that.
https://access.redhat.com/documentation ... g-cmd.html
https://access.redhat.com/solutions/253273
If you have problems registering your server, you will have to contact Redhat for support.
Be sure to check out our Knowledgebase for helpful articles and solutions!
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: Fresh install

Post by bosecorp »

yes, that was the problem the server wasnt register. but we do that on purpose because we use AWS license rather than RHEL, so therefore we dont have RHEL subscription. do you have an alternative or do you really need to have a subscription.

for now what I did is register the server on RHEL, but I dont supposed to be doing that.

now I seem to be getting this error

Creating product directory...
Adding password for user nagiosadmin
xidb already initialized - skipping.
Patching NDOUtils...
<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/updating XI wizards...
Backing up existing wizards to /tmp/xiwizards_backup...
Installing 'wizards/autodiscovery.zip'
^[[28~<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 'wizards/bpiwizard.zip'
User avatar
tgriep
Madmin
Posts: 9179
Joined: Thu Oct 30, 2014 9:02 am

Re: Fresh install

Post by tgriep »

With all of the times that XI was installed on the system, one of them corrupted the system.
Follow these instructions to un-install XI

Code: Select all

https://assets.nagios.com/downloads/nagiosxi/docs/Uninstalling_Nagios_XI.pdf
Then delete the XI install folder in the server by running

Code: Select all

rm -fr /tmp/nagiosxi
Then use the manual instructions to install it.
https://assets.nagios.com/downloads/nag ... Server.pdf
Run the fullinstall script once and if it fails, upload the install.log file from the installation folder.
Be sure to check out our Knowledgebase for helpful articles and solutions!
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: Fresh install

Post by bosecorp »

this doesn't seem straight forward

uninstalled nagios, but now I am getting this

ote: If you want to update the RPMs installed on this system, run your package manager's update command
RESULT=0
Running './2-usersgroups'...
Adding users and groups...
useradd: group nagios exists - if you want to add this user to that group, use -g.
groupadd: group 'nagios' already exists
groupadd: group 'nagcmd' already exists
usermod: user 'nagios' does not exist
usermod: user 'nagios' does not exist
ERROR: User 'nagios' was not created - exiting.
RESULT=1

===================
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 XI technical support.

The script that failed was: './2-usersgroups'
Locked