若要運用Nagios監控遠端主機的系統狀況(尤其是伺服器的磁碟容量),必須在本機和遠端主機安裝nrpe模組

遠端主機安裝與設定:(ex CentOS)

yum install nagios-nrpe                                                       

必須要注意,nrpe是運用xinetd service來服務
所以nrpe相關的設定檔是放在 /etc/xinetd.d下面

vim /etc/xinetd.d/nrpe                                                         

把Nagios監控伺服器的IP加進去
only_from = 127.0.0.1 xxx.xxx.xxx.xxx                                

注意: ip之間以空白區隔

將NRPE daemon的port 加入/etc/services
nrpe 5666/tcp # NRPE                                                        

重新啟動 xinetd 服務
/etc/init.d/xinetd restart                                                     

OK,這樣應該可以了

nagios的check_nrpe待續....... 

arrow
arrow
    全站熱搜

    yuic123 發表在 痞客邦 留言(0) 人氣()