ubuntu Nagios 监控安装
一:添加用户:
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
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。