安裝nrpe
成都創(chuàng)新互聯(lián)擁有一支富有激情的企業(yè)網(wǎng)站制作團(tuán)隊(duì),在互聯(lián)網(wǎng)網(wǎng)站建設(shè)行業(yè)深耕十余年,專業(yè)且經(jīng)驗(yàn)豐富。十余年網(wǎng)站優(yōu)化營(yíng)銷經(jīng)驗(yàn),我們已為成百上千中小企業(yè)提供了成都網(wǎng)站制作、成都做網(wǎng)站解決方案,按需制作網(wǎng)站,設(shè)計(jì)滿意,售后服務(wù)無(wú)憂。所有客戶皆提供一年免費(fèi)網(wǎng)站維護(hù)!
將以下軟件包上傳到相應(yīng)目錄,安裝步驟如下:
nagios-plugins-1.4.15.tar.gz
nrpe-2.12.tar.gz
pw useradd nagios -d /home/nagios -s /usr/sbin/nologin
tar zxvf nagios-plugins-1.4.15.tar.gz
cd nagios-plugins-1.4.15
./configure --prefix=/usr/local/nagios --with-nagios-user=nagios --with-nagios-group=nagios
make && make install
cd
tar zxvf nrpe-2.12.tar.gz
cd nrpe-2.12
./configure --enable-ssl --with-nrpe-user=nagios --with-nrpe-group=nagios --with-nagios-user=nagios --with-nagios-group=nagios
make all
make install-plugin
make install-daemon
make install-daemon-config
cd
vi /usr/local/nagios/etc/nrpe.cfg
修改內(nèi)容如下:
刪除199-203行
查找allowed_hosts=127.0.0.1,修改為allowed_hosts=127.0.0.1,115.182.59.202 //115.182.59.202為nagios echo 'command[check_swap]=/usr/local/nagios/libexec/check_swap -w 20% -c 10%' >> /usr/local/nagios/etc/nrpe.cfg echo 'command[check_root]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /' >> /usr/local/nagios/etc/nrpe.cfg echo 'command[check_data]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /data' >> /usr/local/nagios/etc/nrpe.cfg echo 'command[check_usr]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /usr' >> /usr/local/nagios/etc/nrpe.cfg echo 'command[check_var]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /var' >> /usr/local/nagios/etc/nrpe.cfg echo 'command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z' >> /usr/local/nagios/etc/nrpe.cfg echo 'command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 300 -c 450' >> /usr/local/nagios/etc/nrpe.cfg chown -R nagios:nagios /usr/local/nagios awk 'BEGIN{print "nrpe\t\t5666/tcp #NRPE"}' >> /etc/services /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d sockstat -4l|grep nrpe 重啟nrpe pkill nrpe /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d 配置開機(jī)自動(dòng)啟動(dòng) vi /etc/rc.local 內(nèi)容如下: #!/bin/sh /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
網(wǎng)站名稱:在FreeBSD下配置nrpe服務(wù)
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供標(biāo)簽優(yōu)化、ChatGPT、小程序開發(fā)、網(wǎng)站改版、外貿(mào)網(wǎng)站建設(shè)、關(guān)鍵詞優(yōu)化
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源:
創(chuàng)新互聯(lián)
網(wǎng)頁(yè)地址:http://jinyejixie.com/article32/pppdsc.html