Nagios具备哪些主要功能(nagios)

 2024-01-02  阅读 10  评论 0

摘要:你们好,最近小极发现有诸多的小伙伴们对于Nagios具备哪些主要功能,nagios这个问题都颇为感兴趣的,今天小活为大家梳理了下,一起往下看看吧。1、  本人使用的是Centos 6.5 x86_64位系统,最小化安装。现在与大家分享一下如何安装nagios及相关依赖环境。2、rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-rel

你们好,最近小极发现有诸多的小伙伴们对于Nagios具备哪些主要功能,nagios这个问题都颇为感兴趣的,今天小活为大家梳理了下,一起往下看看吧。

1、  本人使用的是Centos 6.5 x86_64位系统,最小化安装。现在与大家分享一下如何安装nagios及相关依赖环境。

2、rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

3、rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

4、yum install -y traceroute bind-utils expect ntpdate mtr wget nc fping nmap mailx gcc gcc-c++ httpd php php-gd glibc glibc-common gd gd-devel perl perl-devel rrdtool wqy-zenhei-fonts wqy-zenhei-fonts-common perl-Time-HiRes

5、---------------------------------------

6、以上有些软件是我需要用到的,例如mtr fping 这些是没有必要,但我系统需要用到,所以我就安装上去,对我将来使用需要有帮助。

7、chmod 4755 `which mtr`

8、ntpdate time.apple.com

9、hwclock -w

10、setenforce 0

11、sed -i 's/^SELINUX=enforcing/SELINUX=disabled/' /etc/sysconfig/selinux

12、service iptables stop

13、chkconfig iptables off

14、chkconfig ip6tables off

15、mkdir -p /data/program

16、mkdir -p /data/source

17、cd /data/source

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

19、/usr/sbin/useradd -m nagios

20、echo ASDMM23*!sad3 | passwd nagios --stdin

21、/usr/sbin/groupadd nagcmd

22、/usr/sbin/usermod -a -G nagcmd nagios

23、/usr/sbin/usermod -a -G nagcmd apache

24、tar zxf nagios-4.0.8.tar.gz

25、cd nagios-4.0.8

26、./configure --prefix=/data/program/nagios --with-command-group=nagcmd

27、make all

28、make install

29、make install-init

30、make install-config

31、make install-commandmode

32、make install-webconf

33、htpasswd -c /data/program/nagios/etc/htpasswd.users nagiosadmin

34、然后输入nagiosadmin的密码即可

35、  

36、[root@localhost nagios-4.0.8]# chkconfig --add nagios

37、[root@localhost nagios-4.0.8]# chkconfig nagios on

38、[root@localhost nagios-4.0.8]# chkconfig httpd on

39、[root@localhost nagios-4.0.8]# service httpd start

40、然后在浏览器打开。http://ip/nagios 【IP要换成自己真实的IP,如图】

41、  小稿文笔不是很好,请不要踩哈,这只是写给初入门的参考参考,不适合大牛看。上面与大家介绍了安装nagios平台环境,还没有写nagios-plugins的安装,下一篇与大家介绍,一个篇幅太长了。觉得有需要的朋友可以往下浏览,谢谢。

以上就是nagios这篇文章的一些介绍,希望对大家有所帮助。

免责声明:本文由用户上传,如有侵权请联系删除!

版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。

原文链接:https://www.sast-sy.com/ead2dBj0CBgNUVgQA.html

发表评论:

管理员

  • 内容1434378
  • 积分0
  • 金币0

Copyright © 2022 四叶百科网 Inc. 保留所有权利。 Powered by ZFCMS 1.1.2

页面耗时0.0630秒, 内存占用1.72 MB, 访问数据库18次

粤ICP备21035477号