电子文档交易市场
安卓APP | ios版本
电子文档交易市场
安卓APP | ios版本

进入tar包解压路径(targz

4页
  • 卖家[上传人]:M****1
  • 文档编号:511916205
  • 上传时间:2023-12-19
  • 文档格式:DOCX
  • 文档大小:17.36KB
  • / 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/

      5、bin/htpasswd-c /usr/local/nagios/etc/htpasswd nagios9 )修改/usr/local/nagios/etc/cgi.cfgdefault_user_name=nagios更改文件内的nagiosadmin 为 nagiosadmin,nagios10)chmod 777 /usr/local/nagios/var/rw/nagios.cmd chmod 777 /usr/local/nagios/var/rw11)启动 apache/usr/local/apache/bin/apachectl start通过 http:/192.168.1.12/nagios 访问 nagios12)添加开机自启动echo “/usr/local/apache/bin/apachectl start” /etc/rc.localecho /usr/local/nagios/bin/nagios-d/usr/local/nagios/etc/nagios.cfg /etc/rc.local http:/www.monitoringexchange.org

      6、/cgibin/page.cgi2dn1女口缺少监控脚本可在此站下载客户端安装配置在客户端只需安装nagios-plugin nrpe安装步骤与服务端相同安装完成之后修改其相关配置Vi/etc/xinetd.d/nrpe 修改 only_from 添加服务端IPonly_from= 127.0.0.1192.168.6.252 (服务端IP)vi $nagioshome/etc/nrpe.cfg 添加相关command 命令重启 xinetd 服务从服务端测试nrpe通信/usr/local/nagios/libexec/check_nrpe -H IP(客户端 IP)配置相关cfg文件(可参考田逸相nagios文档) 手动添加 hosts.cfg define hosthost_name254-testaddresscheck_commandcheck-host-alivecontact_groups max_check_attempts notification_interval notification_period notification_optionstest1024x7d

      7、,u,r添加 hostgroups.cfgdefine hostgrouphostgroup_name game-hosts; The name of the hostgroup192.168.6.254membershm1-1,hm5-1,hm9-1,hm7-1,hm8-1 ; Comma separated list ofhosts that belong to this group添加服务services.cfg*trafficcheck_nrpe_traffic test24x7432test1define servicehost_name service_description check_command contact_groups check_period max_check_attempts normal_check_interval retry_check_interval contact_groups notifications_enabled添加 servicegroups.cfg define servicegroupservicegroup_name game

      8、_services alias GAServicesmembers hm1-1,GmApache,hm5-1,GmApache,hm9-1,GmApache,hm7-1,GmApache,hm8- 1,GmApache (主 机名,服务名)添加联系人contacts.cfgdefine contactcontact_nametest3; Short name ofuseraliasNagios; Full name of userservice_notification_period24x7host_notification_period24x7service_notification_optionsw,u,c,rhost_notification_optionsd,u,rservice_notification_commandsservice-notify-by-emailhost_notification_commandshost-notify-by-; * CHANGETHIS TO YOUR EMAIL ADDRESS *添加联系人组contactgroups.cfgdefine contactgrouptestNagios test1,test2contactgroup_name alias members添加相关commands 命令在commands.cfgdefine commandcommand_name check_nrpe_trafficcommand_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_traffic

      《进入tar包解压路径(targz》由会员M****1分享,可在线阅读,更多相关《进入tar包解压路径(targz》请在金锄头文库上搜索。

      点击阅读更多内容
    最新标签
    监控施工 信息化课堂中的合作学习结业作业七年级语文 发车时刻表 长途客运 入党志愿书填写模板精品 庆祝建党101周年多体裁诗歌朗诵素材汇编10篇唯一微庆祝 智能家居系统本科论文 心得感悟 雁楠中学 20230513224122 2022 公安主题党日 部编版四年级第三单元综合性学习课件 机关事务中心2022年全面依法治区工作总结及来年工作安排 入党积极分子自我推荐 世界水日ppt 关于构建更高水平的全民健身公共服务体系的意见 空气单元分析 哈里德课件 2022年乡村振兴驻村工作计划 空气教材分析 五年级下册科学教材分析 退役军人事务局季度工作总结 集装箱房合同 2021年财务报表 2022年继续教育公需课 2022年公需课 2022年日历每月一张 名词性从句在写作中的应用 局域网技术与局域网组建 施工网格 薪资体系 运维实施方案 硫酸安全技术 柔韧训练 既有居住建筑节能改造技术规程 建筑工地疫情防控 大型工程技术风险 磷酸二氢钾 2022年小学三年级语文下册教学总结例文 少儿美术-小花 2022年环保倡议书模板六篇 2022年监理辞职报告精选 2022年畅想未来记叙文精品 企业信息化建设与管理课程实验指导书范本 草房子读后感-第1篇 小数乘整数教学PPT课件人教版五年级数学上册 2022年教师个人工作计划范本-工作计划 国学小名士经典诵读电视大赛观后感诵读经典传承美德 医疗质量管理制度 2
    关于金锄头网 - 版权申诉 - 免责声明 - 诚邀英才 - 联系我们
    手机版 | 川公网安备 51140202000112号 | 经营许可证(蜀ICP备13022795号)
    ©2008-2016 by Sichuan Goldhoe Inc. All Rights Reserved.