溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

ubuntu安裝nrpe無法安裝問題

發(fā)布時間:2020-07-30 23:09:07 來源:網(wǎng)絡 閱讀:712 作者:libao2235 欄目:移動開發(fā)

ubuntu無法安裝nrpe的原因:

1,沒有安裝libssl-dev 請使用apt-get install libssl-dev 來安裝

2. 沒有安裝openssl 請使用apt-get install openssl 來安裝

3,安裝nrpe時請到http://sourceforge.net/projects/nrpe/?source=directory 國內(nèi)有可能下載不了,這個可能屏蔽了,http://sourceforge.net/projects/nagios/files/nrpe-2.x/nrpe-2.14/nrpe-2.14.tar.gz/download  

放到/usr/src/目錄下,tar-zxvf nrpe-2.14.tar.gz 解壓縮,

運行./configure --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/x86_64-linux-gnu(64位)

運行./configure --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/i386-linux-gnu(32位)

查看軟件是否安裝 dpkg -l 軟件名稱

查看軟件安裝路徑 dpkg -L 軟件名稱

安裝nrpe服務使之能夠通信
#tar zxvf nagios-nrpe_2.8.1.orig.tar.gz
#cd nagios-nrpe_2.8.1
#./configure --enable-ssl --with-ssl-lib=/usr/lib/
#make all
#make install-plugin
#make install-daemon
#make install-daemon-config

#make install-xinetd
4、配置nrpe信息
#vim /usr/local/nagios/etc/nrpe.cfg
allowed_host=192.168.85.207,127.0.0.1   //允許192.168.85.207服務器端對其監(jiān)控
#/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg –d
//檢測nrep配置文件的正確性
#netstat -an | grep 5666    //是否監(jiān)聽5666用于nrpe通信的端口
//在服務端執(zhí)行檢測工作站nrpe信息
#/usr/local/nagios/libexec/check_nrpe -H 192.168.85.208
NRPE v2.8.1
//在工作站執(zhí)行檢測自己的nrpe信息
#/usr/local/nagios/libexec/check_nrpe -H 127.0.0.1
NRPE v2.8.1



nagios-plugins無法安裝原因

In file included from localcharset.c:28:0:

./stdio.h:456:1: error: ‘gets’ undeclared here (not in a function)
make[4]: *** [localcharset.o] Error 1
make[4]:Leaving directory `/root/nagios-plugins-1.4.16/gl'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/nagios-plugins-1.4.16/gl'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/nagios-plugins-1.4.16/gl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/nagios-plugins-1.4.16'

make: *** [all] Error 2

解決辦法:

在gl目下執(zhí)行:sed -i -e '/gets is a security/d' ./stdio.in.h就搞定了


啟動NRPE守護進程
/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d

設置隨機啟動

/etc/rc.local里添加如下:

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


準備工作:
apt-get install openssl
apt-get install libcurl4-openssl-dev
apt-get install xinetd

apt-get install libssl-dev

apt-get install libssl0.9.8

下載:

只能在linux下載

wget http://prdownloads.sourceforge.net/sourceforge/nagios/nrpe-2.13.tar.gz







向AI問一下細節(jié)

免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權內(nèi)容。

AI