CentOS6.6 Install Nagios

Install Nagios which is an enterprise open source monitioring system.

Before Install Nagios , You should had installed Httpd and PHP .About this you can my other blogs:

http://ultraera.blog.51cto.com/6640392/1681519


0.Test system

[Alex@Test01 ~]$ uname -a 
Linux Test01 2.6.32-504.el6.x86_64 #1 SMP Wed Oct 15 04:27:16 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
[Alex@Test01 ~]$ ip addr | grep eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    inet 10.0.2.128/24 brd 10.0.2.255 scope global eth0


1.Install Nagios.(Also Install basic plugins to monitor nagios server itself.)

[Alex@Test01 ~]$ sudo yum --enablerepo=epel -y install nagios nagios-plugins-{ping,disk,users,procs,load,swap,ssh,http}
[Alex@Test01 ~]$ rpm -qa | grep nagios
nagios-plugins-1.4.16-10.el6.x86_64
nagios-3.5.1-1.el6.x86_64
nagios-plugins-load-1.4.16-10.el6.x86_64
nagios-plugins-ssh-1.4.16-10.el6.x86_64
nagios-plugins-users-1.4.16-10.el6.x86_64
nagios-plugins-http-1.4.16-10.el6.x86_64
nagios-common-3.5.1-1.el6.x86_64
nagios-plugins-ping-1.4.16-10.el6.x86_64
nagios-plugins-swap-1.4.16-10.el6.x86_64
nagios-plugins-procs-1.4.16-10.el6.x86_64
nagios-plugins-disk-1.4.16-10.el6.x86_64

2.Configure Nagios.

# line 15-19 and 32-36 , change settings to access permissionlike follows
# Order allow,deny
# Allow from all
  Order deny,allow
  Deny from all
  Allow from 127.0.0.110.0.2.0/24

# add nagios admin user
[Alex@Test01 ~]$ sudo htpasswd /etc/nagios/passwd nagiosroot
New password:     #set your password
Re-type new password: 
Adding password for user nagiosroot
[Alex@Test01 ~]$ sudo chkconfig nagios on

3. Access to the "http://(Nagios server's doamin or ip address)/nagios/" from a client which in the network allowed by nagios server adn authenticate with teh nagios admin user "nagiosroot" to login.

    test Page.

4. After successing authentication, the nagios admin site id displayed .

    test Page .

5. It's possible to view system status to click "Tactical Overiew" and so on .

    test Page .






本文出自 “一杯白开水” 博客,请务必保留此出处http://ultraera.blog.51cto.com/6640392/1681566

转载于:https://my.oschina.net/samzong/blog/885635

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值