![](https://www.jinchutou.com/images/s.gif)
进入tar包解压路径(targz
4页1、www.nagios.org 下载 nagios nagios-plugs nrpe www.apache.org 下载 apache1)安装 apache进入tar包解压路径tar.gz zxvf选项解压tar.bz jxvf选项解压)cd /usr/httpd-2.2.11安装./configure -prefix=/usr/local/apache & make & make install在安装完nagios 后在/usr/local/apache/conf/httpd.conf 添加ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbinAuthType BasicOptions ExecCGIAllowOverride NoneOrder allow,denyAllow from allAuthName Nagios AccessAuthUserFile /usr/local/nagios/etc/htpasswdRequire valid-userAlias /nagios /usr/local/nagios/share Aut
2、hType BasicOptions NoneAllowOverride NoneOrder allow,denyAllow from allAuthName nagios AccessAuthUserFile /usr/local/nagios/etc/htpasswdRequire valid-user或者用 Include/usr/nagios-3.06/sample-config/httpd.conf 方式添加2)安装 nagioscd /usr/nagios-3.0.6 (nagios 3.1 版本 tar 包有些问题,安装后不能访问目前建议使用低 版本) 安装a丿添加nagios用户adduser nagiosb)执行安装命令./configure -prefix=/usr/local/nagiosmake allmake installmake install-init #This installs the initmake install-commandmodemake install-config#将初始的配置文件安装到usr/local/nagios/etcB)安装
3、 nagios-plugs./configure -prefix=/usr/local/nagios/-enable-redhat-pthread-workaround(此选项针Mredhat) make allmake install4)安装nrpe测试本地# ./configure -prefix=/usr/local/nagios -enable-sslmake allmake install-pluginmake install-daemonmake install-daemon-configInstall the NRPE daemon as a service under xinetd.make install-xinetdEdit the /etc/xinetd.d/nrpe file and add the IP address of the monitoring server to the only_from directive.only_from = 127.0.0.1 210.51.4.114 Add the following entry for the NRP
4、E daemon to the /etc/services file.nrpe 5666/tcp # NRPERestart the xinetd service.service xinetd restart5)测nrpe情况# netstat -at|grep nrpetcp 00 *:nrpe*:*LISTEN# netstat -an|grep 5666tcp 00 0.0.0.0:56660.0.0.0:*LISTEN可以看到 5666 端口已经在监听了6)执行/usr/local/nagios/libexec/check_nrpe -H localhost测试nrpe是否正常工作7)执行下面命令检查nagios配置/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg刀执行下面命令启动nagios/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg 8)为 nagios 登录界面添加用户及密码/usr/local/apache/
《进入tar包解压路径(targz》由会员M****1分享,可在线阅读,更多相关《进入tar包解压路径(targz》请在金锄头文库上搜索。
![2022年县城乡医疗救助工作报告](https://union.152files.goldhoe.com/2024-1/19/1706b6e1-1f6a-4851-9404-ab430ee22f80/pic1.jpg)
2022年县城乡医疗救助工作报告
![2022实用的大学社团活动总结模板汇总八篇](https://union.152files.goldhoe.com/2023-3/16/1a1b6074-5794-4edf-a868-83c04d3e2b65/pic1.jpg)
2022实用的大学社团活动总结模板汇总八篇
![2023年专科自我鉴定8.docx](https://union.152files.goldhoe.com/2022-9/30/6da856f1-e40b-45f6-b3b9-461225d69cca/pic1.jpg)
2023年专科自我鉴定8.docx
![学生会竞选学习部部长演讲稿](https://union.152files.goldhoe.com/2022-10/21/72a10db6-20cc-4723-b2dd-8b24a2578ae3/pic1.jpg)
学生会竞选学习部部长演讲稿
![白芒河雨污分流关键工程综合施工组织设计](https://union.152files.goldhoe.com/2022-8/18/d6a8d76f-fef6-44fd-9220-d68edd7a8141/pic1.jpg)
白芒河雨污分流关键工程综合施工组织设计
![药理学考试试题及答案.doc](https://union.152files.goldhoe.com/2022-9/12/558434c4-834c-4037-8212-320a19f880eb/pic1.jpg)
药理学考试试题及答案.doc
![淘宝客服工作简历模板.docx](https://union.152files.goldhoe.com/2022-9/23/2a405ba7-8d9d-4bdf-9288-864e5d41ad4c/pic1.jpg)
淘宝客服工作简历模板.docx
![2023年在局机关党委成立大会上的致辞.docx](https://union.152files.goldhoe.com/2023-5/2/9a994ef6-a368-40da-a5b5-8e3e080a3bbc/pic1.jpg)
2023年在局机关党委成立大会上的致辞.docx
![国科金发计200266号.doc](https://union.152files.goldhoe.com/2024-2/4/302e80b5-56cc-4c4b-aa31-2901b7a37bdf/pic1.jpg)
国科金发计200266号.doc
![三级干部大会精神贯彻落实工作汇报.docx](https://union.152files.goldhoe.com/2024-3/15/b68799cd-c429-4901-83a3-0e2dce2d294c/pic1.jpg)
三级干部大会精神贯彻落实工作汇报.docx
![如何用纸折百合.doc](https://union.152files.goldhoe.com/2024-2/15/9d37dbc2-a2f6-4a3a-822b-33afe096cc2d/pic1.jpg)
如何用纸折百合.doc
![西师大版二年级下学期语文形近字同步专项练习题含答案](https://union.152files.goldhoe.com/2023-6/22/f2506b6e-fd8a-4247-a03f-fefc22fa0416/pic1.jpg)
西师大版二年级下学期语文形近字同步专项练习题含答案
![学前班教师日常生活总结范文五篇.doc](https://union.152files.goldhoe.com/2023-6/7/f8590fc3-9ed9-410b-be61-ec830c1965e5/pic1.jpg)
学前班教师日常生活总结范文五篇.doc
![如何实现计算机技术与语文学科的整合.doc](https://union.152files.goldhoe.com/2023-4/6/5dee85eb-d57c-4b16-8542-8bb0c221f3b4/pic1.jpg)
如何实现计算机技术与语文学科的整合.doc
![孔乙己(知识点总结).doc](https://union.152files.goldhoe.com/2023-4/13/ea7d383e-a8bc-4181-b846-5f771bb35827/pic1.jpg)
孔乙己(知识点总结).doc
![2023年社区上半年双拥工作总结.doc](https://union.152files.goldhoe.com/2022-8/28/0d63d695-b684-4951-8317-77537974f4d5/pic1.jpg)
2023年社区上半年双拥工作总结.doc
![电力系统征文--争创金牌业绩争当企业尖兵.docx](https://union.152files.goldhoe.com/2023-1/3/9dd3506b-b97b-4718-8e64-9d45430e9620/pic1.jpg)
电力系统征文--争创金牌业绩争当企业尖兵.docx
![第6章 耐火建筑材料-习题.doc](https://union.152files.goldhoe.com/2022-8/25/85df1d40-a079-4079-8fe6-f06222d3331b/pic1.jpg)
第6章 耐火建筑材料-习题.doc
![廉洁合作协议书.doc](https://union.152files.goldhoe.com/2023-11/17/b5e5f48b-a39d-4fa7-bdd0-39a6e5249d35/pic1.jpg)
廉洁合作协议书.doc
![《现代商贸服务企业管理》复习思考题.doc](https://union.152files.goldhoe.com/2023-5/9/9c2ce7d0-c33b-468f-afae-edfd8167a163/pic1.jpg)
《现代商贸服务企业管理》复习思考题.doc
![新材料研发中心建设项目可行性研究报告](/Images/s.gif)
2024-01-16 77页
![检察院控申科工作总结(2篇)](/Images/s.gif)
2022-10-25 13页
![船舶防污染题目](/Images/s.gif)
2023-07-06 76页
![2020年师德标兵发言稿范文.doc](/Images/s.gif)
2024-01-16 4页
![计算机专业毕业论文](/Images/s.gif)
2024-02-08 45页
![本科毕业论文-大学生手机购买行为研究与营销策略选择.doc](/Images/s.gif)
2023-09-19 22页
![(完整版)弯道跑公开课教案](/Images/s.gif)
2023-04-07 4页
![投资学第版TestBank答案.doc](/Images/s.gif)
2024-01-21 26页
![ABB机器人码垛程序](/Images/s.gif)
2023-02-09 40页
![专项资金收支使用的账处理](/Images/s.gif)
2023-11-17 9页