侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

CentOS6.6 Install Nagios

2023-11-15 星期三 / 0 评论 / 0 点赞 / 37 阅读 / 3316 字

Install Nagios which is an enterprise open source monitioring system. Before Install Nagios , You sh

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 eth02: 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 nagiosnagios-plugins-1.4.16-10.el6.x86_64nagios-3.5.1-1.el6.x86_64nagios-plugins-load-1.4.16-10.el6.x86_64nagios-plugins-ssh-1.4.16-10.el6.x86_64nagios-plugins-users-1.4.16-10.el6.x86_64nagios-plugins-http-1.4.16-10.el6.x86_64nagios-common-3.5.1-1.el6.x86_64nagios-plugins-ping-1.4.16-10.el6.x86_64nagios-plugins-swap-1.4.16-10.el6.x86_64nagios-plugins-procs-1.4.16-10.el6.x86_64nagios-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 nagiosrootNew password:     #set your passwordRe-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

广告 广告

评论区