install nagios issue.
-
avandemore
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: install nagios issue.
Please see this article for information about Problems Using Nagios XI With Proxies.
Previous Nagios employee
Re: install nagios issue.
For some reason, your server is not downloading the newer Nagios repo information and that is causing the error.
Try running the following
Then try to run the install again.
Try running the following
Code: Select all
yum clean all
yum makecacheBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: install nagios issue.
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.
[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.
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/Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: install nagios issue.
[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@~]#
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@~]#
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: install nagios issue.
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.
[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
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
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: install nagios issue.
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.
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.
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'
[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'