加入收藏 | 设为首页 | 会员中心 | 我要投稿 源码网 (https://www.900php.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

而bubuntu11.10 ma站长网 aspzz.cnil脚本的路径是/usr/bin/mail

发布时间:2016-11-15 20:51:15 所属栏目:Linux 来源:站长网
导读:副标题#e# 各类体系题目,以及日记等等,同时提供非常关照成果等,然其后监控他们的http处事;假如这些跑着http处事的server上有运行着smtp处事。 假如没有安装chkconfig则先安装chkconfig sudo apt-get install chkconfig sudo update-rc.d apache2 default
竣事之后,假如你有139的邮箱,到篇尾,还必要编辑 /etc/xinted.d/nrpe sudo vim /etc/xinetd.d/nrpe only_from = 127.0.0.1 10.1.10.23(添加nagios的ip地点) 退出并生涯 sudo chkconfig nrpe on sudo /etc/init.d/xinetd restart 搜查nrpe处事是否正常 sudo netstat -at | grep nrpe 假如返回tcp 0 0 *:nrpe *:* LISTEN,添加nrpe的处事端口 sudo vim /etc/services 在尾行添加如下设置 nrpe 5666/tcp # NRPE Service Port 假如是被监控端,键入呼吁: sudo apt-get install apache2 sudo apt-get install build-essential sudo apt-get install libgd2-xpm-dev sudo apt-get install openssl sudo apt-get install libssl-dev sudo apt-get install php5 sudo apt-get install libapache2-mod-php5 (这个也许在安装php5的时辰就已经安装,以及日记等等 - 可以通过手机查察体系监控信息 本日我们就首要先容如安在Unbuntu下安装安装Nagios,假如和当前界说的有 斗嘴则以当前优先 hostgroup_name是在引用之前界说好的主机组,先安装vim,, POP3,以是 得修改一下 天生的makefile文件 sudo sed -i 's:for file in includes/rss/*;:for file in includes/rss/*.*;:g' ./html/Makefile sudo sed -i 's:for file in includes/rss/extlib/*;:for file in includes/rss/extlib/*.*;:g' ./html/Makefile sudo make all 初始化 sudo make install-init 天生设置文件 sudo make install-config 天生呼吁文件 sudo make install-command 设置web接口 sudo make install-webconf 建设一个nagiosadmin的用户用于nagios的web接口 sudo htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin 回车后会提醒你输入暗码并确认暗码 编译安装Nagios插件 再次回到/usr/local/src目次 cd /usr/local/src 解压 nagios-plugins-HEAD.tar.gz sudo tar zxvf nagios-plugins-HEAD.tar.gz 进入到解压后的目次 cd nagios-plugins-1.4.15-39-gd796c 编译nagios-plugins sudo ./configure --prefix=/usr/local/nagios --with-nagios-user=nagios --with-nagios-group=nagios 安装 sudo make sudo make install 编译安装nrpe (非必需步调) 不该用nrpe的nagios事变流程 行使nrpe的nagios事变流程 必要在处事器端和被监控端安装

(编辑:源码网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读