Page 2 of 4

Re: install nagios issue.

Posted: Thu Oct 20, 2016 12:44 pm
by avandemore
Please see this article for information about Problems Using Nagios XI With Proxies.

Re: install nagios issue.

Posted: Thu Oct 20, 2016 12:45 pm
by tgriep
For some reason, your server is not downloading the newer Nagios repo information and that is causing the error.
Try running the following

Code: Select all

yum clean all
yum makecache
Then try to run the install again.

Re: install nagios issue.

Posted: Thu Oct 20, 2016 1:29 pm
by vy3734
i'm using nagios-6.repo and still getting errors when running yum makecache

[nagios-base]
name=Nagios
baseurl=http://repo.nagios.com/nagios/6/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NAGIOS

[nagiosxi-deps]
name=Nagios XI Dependencies
baseurl=http://repo.nagios.com/nagiosxi-deps/6/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NAGIOS
####################################################

nagiosxi]# yum makecache
Loaded plugins: product-id, rhnplugin, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
epel/metalink | 13 kB 00:00
epel | 4.3 kB 00:00
epel/filelists_db | 7.9 MB 00:11
epel/primary_db | 5.9 MB 00:03
epel/other_db | 2.9 MB 00:01
nagios-base | 1.5 kB 00:00
nagios-base/filelists | 216 kB 00:00
nagios-base/primary | 11 kB 00:00
nagios-base/other | 3.6 kB 00:00
nagios-base 76/76
nagios-base 76/76
nagios-base 76/76
nagiosxi-deps | 1.5 kB 00:00
http://repo.nagios.com/nagiosxi-deps/6/ ... sts.xml.gz: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://repo.nagios.com/nagiosxi-deps/6/ ... ary.xml.gz: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: failure: repodata/e0c22bc59fdedcd278c35dfca73b4de0a95fdaa12ac6355ccd4c0e4d3b5777f5-primary.xml.gz from nagiosxi-deps: [Errno 256] No more mirrors to try.

Re: install nagios issue.

Posted: Thu Oct 20, 2016 2:36 pm
by tgriep
Can you run the following on the server and post the output?

Code: Select all

ls -l /var/cache/yum/x86_64/6/nagiosxi-deps/

Re: install nagios issue.

Posted: Thu Oct 20, 2016 2:54 pm
by ssax
What is the output of these commands:

Code: Select all

yum repolist all
yum info pymssql

Thank you

Re: install nagios issue.

Posted: Thu Oct 20, 2016 4:57 pm
by vy3734
[root@~]# yum repolist all
Loaded plugins: product-id, rhnplugin, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
repo id repo name status
rhel-x86_64-server-6.7.z RHEL EUS Server (v. 6.7.z for 64-bit x86_64) enabled: 16,940
rhel-x86_64-server-optional-6.7.z RHEL EUS Server Optional (v. 6.7.z 64-bit x86_64) enabled: 9,567
rhel-x86_64-server-supplementary-6.7.z RHEL EUS Server Supplementary (v. 6.7.z 64-bit x86_64) enabled: 614
repolist: 27,121
[root@~]# yum info pymssql
Loaded plugins: product-id, rhnplugin, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
Error: No matching Packages to list
[root@~]#

Re: install nagios issue.

Posted: Fri Oct 21, 2016 10:58 am
by dwhitfield
Can you run the following on the server and post the output?

Code: Select all

ls -l /var/cache/yum/x86_64/6/nagiosxi-deps/

Re: install nagios issue.

Posted: Fri Oct 21, 2016 1:03 pm
by vy3734
[root@nagiosxi]# ls -l /var/cache/yum/x86_64/6Server/nagiosxi-deps/
total 8
-rw-r--r-- 1 root root 0 Oct 21 11:19 cachecookie
-rw-r--r-- 1 root root 0 Oct 21 11:19 e0c22bc59fdedcd278c35dfca73b4de0a95fdaa12ac6355ccd4c0e4d3b5777f5-primary.xml.gz
drwxr-xr-x 2 root root 4096 Oct 21 11:19 packages
-rw-r--r-- 1 root root 1507 Oct 13 2015 repomd.xml

Re: install nagios issue.

Posted: Fri Oct 21, 2016 1:58 pm
by dwhitfield
Please run remove (rm) everything in /var/cache/yum/x86_64/6/nagiosxi-deps/

I have no idea why yum clean all did not remove the xml file. You can see the appropriate repo timestamps at http://repo.nagios.com/nagiosxi-deps/6/repodata/

Re-run the install and you should be good.

If you run into an error, please post the contents of /var/cache/yum/x86_64/6/nagiosxi-deps/ again. I will want to make sure there isn't something weird going on with your install script populating old repo data.

Re: install nagios issue.

Posted: Fri Oct 21, 2016 3:06 pm
by vy3734
after manually cleaning up as you suggested

[root@nagiosxi]# ls -lrt /var/cache/yum/x86_64/6Server/nagiosxi-deps/
total 8
-rw-r--r-- 1 root root 1507 Oct 13 2015 repomd.xml
drwxr-xr-x 2 root root 4096 Oct 21 15:16 packages
-rw-r--r-- 1 root root 0 Oct 21 15:16 cachecookie
-rw-r--r-- 1 root root 0 Oct 21 15:16 e0c22bc59fdedcd278c35dfca73b4de0a95fdaa12ac6355ccd4c0e4d3b5777f5-primary.xml.gz
[root@nagiosxi]#
'
and when i run the fullinstall


[root@nagiosxi]# ./fullinstall -n -p nagiosxi
Checking MySQL credentials...
MySQL not yet installed - that's okay.
Running './0-repos'...
Configuring Repos...
package centos-release is not installed
Enabling Nagios repo...
Installing Nagios Repo PKG: packages/nagios-repo-6-2.el6.noarch.rpm
warning: packages/nagios-repo-6-2.el6.noarch.rpm: Header V4 RSA/SHA1 Signature, key ID 1e924cb3: NOKEY
Preparing... ##################################################
nagios-repo ##################################################
Loaded plugins: product-id, rhnplugin, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
http://repo.nagios.com/nagiosxi-deps/6/ ... ary.xml.gz: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://repo.nagios.com/nagiosxi-deps/6/ ... ary.xml.gz: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: failure: repodata/e0c22bc59fdedcd278c35dfca73b4de0a95fdaa12ac6355ccd4c0e4d3b5777f5-primary.xml.gz from nagiosxi-deps: [Errno 256] No more mirrors to try.
epel-release RPM installed OK
Repo configured OK
RESULT=0
Running './1-prereqs'...
Installing prerequisites...
Loaded plugins: product-id, rhnplugin, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Local Package Process
Examining /www/nagios/nagiosxi/packages/php-pear-HTML-Template-IT-1.3.0-2.el5.noarch.rpm: php-pear-HTML-Template-IT-1.3.0-2.el5.noarch
Marking /www/nagios/nagiosxi/packages/php-pear-HTML-Template-IT-1.3.0-2.el5.noarch.rpm to be installed
http://repo.nagios.com/nagiosxi-deps/6/ ... ary.xml.gz: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: failure: repodata/e0c22bc59fdedcd278c35dfca73b4de0a95fdaa12ac6355ccd4c0e4d3b5777f5-primary.xml.gz from nagiosxi-deps: [Errno 256] No more mirrors to try.
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: './1-prereqs'