码迷,mamicode.com
首页 > 移动开发 > 详细

ubuntu Nagios 监控安装

时间:2015-05-27 15:52:59      阅读:218      评论:0      收藏:0      [点我收藏+]

标签:

一:添加用户:

useradd -m nagios
passwd nagios

添加用户组,(注意:Ubuntu8.04以后用户组已经存在)
groupadd nagios
usermod -G nagios nagios

二:下载

下载 Nagios Core、Nagios Plugins、Nagios Addons:

wget http://sourceforge.net/projects/nagios/files/latest/download\?source\=files

wget http://nagios-plugins.org/download/nagios-plugins-2.0.3.tar.gz

wget http://downloads.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz\?r\=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fnagios%2Ffiles%2Fnrpe-2.x%2Fnrpe-2.15%2F\&ts\=1432707148\&use_mirror\=heanet

三:安装


apt-get install apache2 php5 libssl0.9.8 libssl-dev openssl

安装nagios主程序:
tar -xzvf nagios-3.2.1.tar.gz 
cd nagios-3.2.1
./configure --prefix=/usr/local/nagios
make all
make install
make install-init # 安装初始化脚本可用/etc/init.d/nagios start启动

安装nagios-plugins:
tar -xzvf nagios-plugins-1.4.15.tar.gz 
mkdir /usr/local/nagios-plugins
cd nagios-plugins-1.4.15
./configure --prefix=/usr/local/nagios-plugins
make all
make install
mv /usr/local/nagios-plugins/libexec /usr/local/nagios

安装nrpe:
tar -xzvf nrpe-2.15.tar.gz 
cd nrpe-2.15
./configure --enable-ssl --enable-command-args
make all
cp src/check_nrpe /usr/local/nagios/libexec

ubuntu Nagios 监控安装

标签:

原文地址:http://blog.csdn.net/bugall/article/details/46046445

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!