您的位置:首页 > 运维架构 > Linux

CentOS6.6 Install Nagios

2015-08-04 14:15 615 查看
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 .
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  nagios