手机版
你好,游客 登录 注册
背景:
阅读新闻

纯净Ubuntu系统上Nagios安装使用

[日期:2013-05-20] 来源:Linux社区  作者:hongqishi [字体:大 中 小]

一、安装环境

1.系统 Ubuntu-12.04.1-desktop-amd64.iso

2.虚拟机 VMware® Workstation 8.0.4 build-744019

3.远程工具 xshell4

二、安装步骤

1.apt-get install ssh
2.创建nagiios用户和用户组
root@ubuntu:~# useradd -s /sbin/nologin nagios
root@ubuntu:~# mkdir /usr/local/nagios
root@ubuntu:~# chown -R nagios.nagios /usr/local/nagios
3.开启sendmail服务
4.编译安装 nagios
cd /usr/local/src #切换到软件安装目录
#上传所有的安装文件
tar -zxvf nagios-3.2.0.tar.gz
cd nagios-3.2.0/
./configure --prefix=/usr/local/nagios
make all
make install #安装主程序和CGI、HTML文件
make install-init #在/etc/rc.d/init.d目录下创建nagios启动脚本
make install-commandmode #配置目录权限
make install-config #安装示例文件
 
#设置开机自启动
apt-get install chkconfig
$sudo ln -s /usr/lib/insserv/insserv /sbin/insserv
chkconfig --add nagios
chkconfig --level 35 nagios on
chkconfig --list nagios
纯净Ubuntu系统上Nagios安装使用
5.安装nagios插件
tar -xzvf nagios-plugins-1.4.14.tar.gz
cd nagios-plugins-1.4.14/
./configure --prefix=/usr/local/nagios
make
make install
6.安装配置apache
tar -xzvf httpd-2.0.63.tar.gz
cd httpd-2.0.63/
./configure --prefix=/usr/local/apache2
make
make install
7.安装php
apt-get install libxml2
apt-get install libxml2-dev
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs
apt-get install libxml2-dev
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs
make
make install
linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款