教你在Ubuntu 11.10中搭建和配置Nagios
|
结束之后,执行 echo $? 查看返回值,如果是0说明没有问题,可以进行下一步,如果是 非0说明没有成功,需找原因重新执行 因为3.3.1版本在configure完成以configure后执行下一步安装的时候有点儿问题,所以 得修改一下 生成的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工作流程
需要在服务器端和被监控端安装 (编辑:佛山站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |



