近日,准備給某一客戶企業部署nagios監控系統,於是在其IBM服務器上最小化安裝了CentOS 6.3(64bit),卻發現剛安裝完的系統yum倉庫更新不了。提示報錯信息:
[root@nagios-server ~]# yum update –y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Error: Cannot find a valid baseurl for repo: base
[root@nagios-server ~]# nslookup mirrorlist.centos.org
;; connection timed out; no servers couldbe reached
到這裡發現問題了,域名解析不了,yum的配置文件裡指向的域名就識別不了了。重新設置下dns指向。
[root@nagios-server ~]# vim /etc/resolv.conf
search 38forsbm
nameserver 8.8.8.8
nameserver 218.85.152.99
Nagios 的詳細介紹:請點這裡
Nagios 的下載地址:請點這裡
相關閱讀:
網絡監控器Nagios全攻略 http://www.linuxidc.com/Linux/2013-07/87067.htm
Nagios搭建與配置詳解 http://www.linuxidc.com/Linux/2013-05/84848.htm
Nginx環境下構建Nagios監控平台 http://www.linuxidc.com/Linux/2011-07/38112.htm
在RHEL5.3上配置基本的Nagios系統(使用Nagios-3.1.2) http://www.linuxidc.com/Linux/2011-07/38129.htm
RedHat Linux 本地yum源的配置 http://www.linuxidc.com/Linux/2013-08/88217.htm
RedHat 6.2 Linux修改yum源免費使用CentOS源 http://www.linuxidc.com/Linux/2013-07/87383.htm
更多CentOS相關信息見CentOS 專題頁面 http://www.linuxidc.com/topicnews.aspx?tid=14