开源监控解决方案Nagios+Cacti+PNP4Nagios+NConf+NDOUtils+Nagvis(二)nagios安装-成都快上网建站

开源监控解决方案Nagios+Cacti+PNP4Nagios+NConf+NDOUtils+Nagvis(二)nagios安装

1.nagios安装

创新互联是专业的新安网站建设公司,新安接单;提供成都做网站、网站设计,网页设计,网站设计,建网站,PHP网站建设等专业做网站服务;采用PHP框架,可快速的进行新安网站开发网页制作和功能扩展;专业做搜索引擎喜爱的网站,专业的做网站团队,希望更多企业前来合作!


groupadd nagios
 
useradd -g nagios nagios

mkdir -p /usr/local/nagios/

passwd nagios
 
tar -xvf nagios-4.0.8.tar.gz
 
cd nagios-4.0.8
 
./configure --prefix=/usr/local/nagios/ --with-command-group=nagios --with-nagios-user=nagios --with-nagios-group=nagios
 
make all
make install
make install-init
make install-commandmode
make install-config
make install-webconf
 
2.nagios-plugins安装
tar -xvf nagios-plugins-2.1.1.tar.gz
cd nagios-plugins-2.1.1
./configure --prefix=/usr/local/nagios/ --with-nagios-user=nagios --with-nagios-group=nagios
make && make install
 
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

3.配置验证用户
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin

chown -R nagios.nagios /usr/local/nagios/etc/htpasswd.users

4.安装NRPE
tar -xvf nrpe-2.12.tar.gz
cd nrpe-2.12
./configure --prefix=/usr/local/nagios --enable-command-args
make all
make install-plugin
make install-daemon
make install-daemon-config

 
/etc/init.d/httpd start
/etc/init.d/nagios start


当前名称:开源监控解决方案Nagios+Cacti+PNP4Nagios+NConf+NDOUtils+Nagvis(二)nagios安装
标题来源:http://kswjz.com/article/jjhico.html
扫二维码与项目经理沟通

我们在微信上24小时期待你的声音

解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流