サーバーの更新をしようとyum updateしたら、
[root@server yum.repos.d]# yum update
Loaded plugins: downloadonly, fastestmirror, priorities
Loading mirror speeds from cached hostfile
* base: www.ftp.ne.jp
* extras: www.ftp.ne.jp
* updates: www.ftp.ne.jp
http://repo.zabbix.jp/zabbix/zabbix-1.8/rhel6/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 404 Not Found”
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: zabbix-jp. Please verify its path and try again
という感じでエラーになった。
/etc/yum.repos.d/zabbix-jp.repo
を覗いてみると、zabbix-jpとzabbix-jp-relatedpkgsの両方がenabled=1になってる。
[zabbix-jp]
name=ZABBIX-JP – $basearch
baseurl=http://repo.zabbix.jp/zabbix/zabbix-1.8/rhel6/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-JP<省略>
[zabbix-jp-relatedpkgs]
name=ZABBIX-JP relatedpkgs – $basearch
baseurl=http://repo.zabbix.jp/relatedpkgs/rhel6/$basearch/
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-JP
gpgcheck=1
・zabbix-jpの方のbaseurlは存在しない(or 認証が入る)
・zabbixサイトのインストール方法では、URLにrelatedpkgsが指定されている。
ということから、zabbix-jp-relatedpkgsの方だけを参照するようにしたら良いのかなということで、zabbix-jpのenabledを0に変更。以下のように。
[zabbix-jp]
name=ZABBIX-JP – $basearch
baseurl=http://repo.zabbix.jp/zabbix/zabbix-1.8/rhel6/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-JP<省略>
[zabbix-jp-relatedpkgs]
name=ZABBIX-JP relatedpkgs – $basearch
baseurl=http://repo.zabbix.jp/relatedpkgs/rhel6/$basearch/
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-JP
gpgcheck=1
するとエラーはでなくなりましたとさ。