首页 > 代码库 > centos6.5安装nagios
centos6.5安装nagios
- 安装依赖包
yum install httpd php gcc glibc glibc-common gd gd-devel
- 创建账号信息
useradd -s /sbin/nologin nagiospasswd nagiosgroupadd nagcmdusermod -a -G nagcmd nagiosusermod -a -G nagcmd apache
- 编译软件
./configure --with-command-group=nagcmdmake allmake installmake install-initmake install-configmake install-commandmode
make install-webconf
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
- 编译安装插件
./configure --with-nagios-user=nagios --with-nagios-group=nagiosmakemake install
chown -R nagios.nagcmd /usr/local/nagios
- 设置开机启动
chkconfig --add nagioschkconfig --add httpdchkconfig nagios onchkconfig httpd onservice httpd startservice nagios start
http://localhost/nagios/
centos6.5安装nagios
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。