歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> nagios nrpe進程不能啟動問題

nagios nrpe進程不能啟動問題

日期:2017/3/2 9:53:40   编辑:關於Linux

nagios服務器ip地址突然更換,導致所有的機器監控不到了,(只剩下之前兩台通過寫nagios域名地址的機器幸免)

然而在我把被監控機器的nagios地址更改為nagios服務器的域名後,nagios還是不能監控到,很是吃驚。麼有理由啊!

後來發現,原來是xinetd把nrpe的的5666端口占用了。

解決方法


# netstat -anp | grep 5666
tcp 0 0 :::5666 :::* LISTEN 2036/xinetd

# kill -9 2036


# netstat -anp | grep 5666


(結果為空,表示沒有程序使用5666端口)

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


(啟動nrpe進程)

# ps -ef | grep nrpe
root 1722 1712 0 10:26 pts/1 00:00:00 vim nrpe.cfg
nagios 2128 1 0 10:34 ? 00:00:00 /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
root 2131 1848 0 10:34 pts/2 00:00:00 grep nrpe


ok,已經可以看到nrpe的進程了。

Copyright © Linux教程網 All Rights Reserved