亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 2377 | 回復(fù): 2
打印 上一主題 下一主題

[求助]nagios 安裝時候出現(xiàn)的問題 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2009-05-10 02:35 |只看該作者 |倒序瀏覽
小弟最近在裝nagios

平臺是Centos4,軟件版本是:     nagios‐3.0.6        nagios‐plugins‐1.4.13    nrpe-2.12   
=========================================

安裝順序是

yum install gd gd-devel httpd gcc glibc glibc-common

useradd nagios && passwd nagios

groupadd nagcmd

usermod -G nagcmd nagios

usermod -G nagcmd apache

cd /tmp/


wget http://nchc.dl.sourceforge.net/s ... nagios-3.0.6.tar.gz
wget http://nchc.dl.sourceforge.net/s ... ugins-1.4.13.tar.gz

tar -zxvf nagios-3.0.6.tar.gz

cd nagios-3.0.6

./configure --with-command-group=nagcmd --prefix=/usr/local/nagios

make all
make install
make install-init
make install-config
make install-commandmode


ls /usr/local/nagios/

tar -zxvf nagios-plugins-1.4.13.tar.gz

cd nagios-plugins-1.4.13

./configure --with-nagios-user=nagios --with-nagios-group=nagios -prefix=/usr/local/nagios

make && make install

vi /usr/local/apache2/conf/httpd.conf


/usr/local/apache2/bin/htpasswd -c /usr/local/nagios/etc/htpasswd nagadmin


chkconfig --add nagios

chkconfig --level 3 nagios  on

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

service nagios start

service httpd restart

http://localhost/nagios

wget http://nchc.dl.sourceforge.net/s ... os/nrpe-2.12.tar.gz


tar -zxvf nrpe-2.12.tar.gz

cd nrpe-2.12

./configure --enable-ssl --enable-command-args

make all

make install-plugin && make install-daemon && make install-daemon-config


/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d


/usr/local/nagios/libexec/check_nrpe -H 127.0.0.1

此時能正確顯示出監(jiān)控端的版本號

##被監(jiān)控機

useradd nagios

passwd nagios


wget http://nchc.dl.sourceforge.net/s ... ugins-1.4.13.tar.gz

tar -zxvf nagios-plugins-1.4.13.tar.gz

cd nagios-plugins-1.4.13

./configure

make

make install

chown -R nagios. /usr/local/nagios/

tar -zxvf nrpe-2.12.tar.gz

cd nrpe-2.12

./configure --enable-ssl --enable-command-args

make all

make install-plugin && make install-daemon && make install-daemon-config

vi /usr/local/nagios/etc/nrpe.cfg

allowed_hosts=127.0.0.1,192.168.1.91

/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d

/usr/local/nagios/libexec/check_nrpe -H 127.0.0.1

此時被監(jiān)控端也能正確顯示版本號
================================

此時我在監(jiān)控端使用


/usr/local/nagios/libexec/check_nrpe -H  $被監(jiān)控端IP


結(jié)果出現(xiàn)了
CHECK_NRPE: Error - Could not complete SSL handshake.



我曾經(jīng)對比過官方的錯誤分析,但沒有發(fā)現(xiàn)我犯過如下錯誤,而且防火墻我也沒有設(shè)置規(guī)則,諸位能不能幫我分析解決一下,拜謝。。。


     1.  確認check_nrpe 和 nrpe daemon的版本一定要一致。
     2.  確認 check_nrpe和nrpe deamon端同時啟用或者禁用ssl支持。
     3.  確認nrep.cfg可以被nrpe(或者nagios,反正是執(zhí)行nrep或者xinetd/inetd程序的)用戶正常讀取。
     4.  有關(guān)偽隨機設(shè)備的問題。這個只會在solaris 8上出現(xiàn),需要一個補丁Sun patch 112438。
     5.  確定nagios主機在xinetd的 only_from中,如果沒有使用xinetd,則要確認nrpe.cfg中的配置。

論壇徽章:
0
2 [報告]
發(fā)表于 2009-05-11 09:36 |只看該作者
/etc/hosts.allow加
nrpe:192.168.1.91

確認iptables的順序沒有錯誤

論壇徽章:
0
3 [報告]
發(fā)表于 2009-05-15 10:34 |只看該作者
allowed_hosts=127.0.0.1,192.168.1.91

/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d

/usr/local/nagios/libexec/check_nrpe -H 127.0.0.1

此時被監(jiān)控端也能正確顯示版本號
================================

此時我在監(jiān)控端使用


/usr/local/nagios/libexec/check_nrpe -H  $被監(jiān)控端IP


你的監(jiān)控機的ip不是192.168.1.91吧
改一下:
allowed_hosts=127.0.0.1,192.168.1.91,“監(jiān)控機ip”
應(yīng)該能解決問題,祝你好運!
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP