nagios

Nagios安装与配置

https://blog.csdn.net/jc_benben/article/details/84565077

 

 

安装的nagios 所出现的问题

http://blog.chinaunix.net/uid-29703091-id-4379841.html

 

./configure --with-command-group=nagcmd

报下面这个错,可能是没有安装Perl

执行 yum -y install perl

 

//

//用这个方法安装Perl,但是源码编译安装nagios,./configure --with-command-group=nagcmd【这个命令还报错,因此选了:yum -y install perl】,之后,./configure --with-command-group=nagcmd正常,继续make all

在linux中安装perl详细步骤:

yum install -y gcc

 

 

 

wget http://www.cpan.org/src/5.0/perl-5.16.0.tar.gz

解压:

tar -xzf perl-5.16.0.tar.gz

配置安装(一行一行执行):

cd perl-5.16.0
./Configure -des -Dprefix=/usr/local/perl
make && make test && make instal

 

 

 

校验是否安装成功:
perl -v

 

 

5.为nagios创建登录web界面的密码

htpasswd -c /usr/local/nagios/etc/htpasswd.users admin

【nagios】

 

 

posted on 2020-09-27 11:33  arrows  阅读(143)  评论(0编辑  收藏  举报

导航