新网创想网站建设,新征程启航

为企业提供网站建设、域名注册、服务器等服务

nagios如何安装-创新互联

这篇文章将为大家详细讲解有关nagios如何安装,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。

网页设计是网站建设的前奏,好的网页设计更深度的剖析产品和设计风格定位,结合最新的网页设计流行趋势,与WVI应用标准,设计出具企业表现力,大器而深稳的网站界面设。成都创新互联公司成立于2013年,是成都网站建设公司:提供企业网站设计,品牌网站设计,营销型企业网站建设方案,响应式网站,小程序开发,专业建站公司做网站。

nagios的功能:使用web网页进行监控其他服务器状态的工具

组成:
nagios Core ,即核心模块,不做具体的监视工作
Plugins, 与核心模块进行组合,进而实现对某个具体的对象监控
   
   
工作对象:
1、主机,交换机,路由器,虚拟机
2、服务/资源
3、联系人
4、时段
5、命令

安装:
# yum -y install httpd gcc glibc glibc-common gd gd-devel php php-mysql mysql mysql-server mysql-devel
创建组和用户
# groupadd -r nagcmd
# useradd -G nagcmd -r -s /sbin/nologin nagios
# echo 'redhat' | passwd --stdin nagios &> /dev/null
# usermod -a -G nagcmd apache

# tar zxf nagios-3.3.1.tar.gz
# cd nagios
编译安装:
# ./configure --sysconfdir=/etc/nagios --with-command-group=nagcmd --enable-event-broker --prefix=/usr/local/nagios
# make all
# make install
# make install-init
# make install-commandmode
# make install-config
# make install-webconf

修改 nagios 的默认联系人;(如果监控的服务器坏掉了要找的人)
# vim /etc/nagios/objects/contacts.cfg
email nagios@localhost

创建 nagios 监控服务的 web 接口的管理员;
# htpasswd -c /etc/nagios/htpasswd.users nagiosadmin
# cat /etc/httpd/conf.d/nagios.conf

# tar axf nagios-plugins-1.4.15.tar.gz
# cd nagios-plugins-1.4.15

编译安装选项:
# ./configure --with-nagios-user=nagios --with-nagios-group=nagios --with-mysql
# make && make install

# chown -R nagios.nagcmd /etc/nagios
# chown -R apache.nagcmd /etc/httpd
# chown -R nagios.nagcmd /usr/local/nagios
# chkconfig --add nagios
# chkconfig nagios on
# service nagios start
#service httpd start

关闭setenforce和context值:
# setenforce 0
# chcon -R -t httpd_sys_content_t /usr/local/nagios/sbin
# chcon -R -t httpd_sys_content_t /usr/local/nagios/share

关于“nagios如何安装”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。

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


本文标题:nagios如何安装-创新互联
文章URL:http://www.wjwzjz.com/article/dgppsd.html
在线咨询
服务热线
服务热线:028-86922220
TOP