成都创新互联网站制作重庆分公司

nagios-4.0.8安装-创新互联

1、下载nagios-4.0.8、nagios-plugins-2.0.3

成都创新互联专注于云浮企业网站建设,响应式网站,商城网站建设。云浮网站建设公司,为云浮等地区提供建站服务。全流程定制设计,专业设计,全程项目跟踪,成都创新互联专业和态度为您提供的服务

  wget http://jaist.dl.sourceforge.net/project/nagios/nagios-4.x/nagios-4.0.8/nagios-4.0.8.tar.gz

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

2、安装组件

  yum install -y wget httpd php gcc glibc glibc-common gd gd-devel make net-snmp

3、创建nagios用户与用户组

  useradd nagios

  groupadd nagcmd

  usermod -a -G nagcmd nagios

4、安装nagios-4.0.8

  tar zxvf nagios-4.0.8.tar.gz

  cd nagios-4.0.8

  ./configure --prefix=/usr/local/nagios --with-command-group=nagcmd --with-nagios-group=nagcmd

  make all

  make install

  make install-init

  make install-config

  make install-commandmode

  make install-webconf

  cp -R contrib/eventhandlers/ /usr/local/nagios/libexec/

  chown -R nagios:nagcmd /usr/local/nagios/libexec/eventhandlers

  /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

  service nagios start

5、配置httpd

  1)配置web登陆用户名和密码

   htpasswd -c /usr/local/nagios/etc/htpasswd nagiosadmin

   vi /etc/httpd/conf/httpd.conf  加入以下内容

  2)找到

   user apache

   group apache

   修改为

    user nagios

   group nagcmd

  3)找到

   #ServerName www.example.com:80

   将前面的#删除

6、安装nagios-plugins

  tar zxvf nagios-plugins-2.0.3.tar.gz

  cd nagios-plugins-2.0.3

  ./configure --prefix=/usr/local/nagios --with-nagios-user=nagios --with-nagios-group=nagcmd --with-command-user=nagios --with-command-group=nagcmd

  make

  make install

7、设置开机启动 

  chkconfig nagios on

  service nagios start

  chkconfig httpd on

  service httpd start

8、访问

  http://IP/nagios 输入用户名密码

nagios-4.0.8安装

nagiosadmin:$apr1$CZJUFBRq$TBWA4x8B6nbH0nA4ekHg7.  http://tool.oschina.net/htpasswd

另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


网站栏目:nagios-4.0.8安装-创新互联
文章分享:http://cxhlcq.com/article/jijid.html

其他资讯

在线咨询

微信咨询

电话咨询

028-86922220(工作日)

18980820575(7×24)

提交需求

返回顶部