中国网络水泥 发表于 2015-7-10 11:07:12

在CENTOS上安装APACHE,MUNIN(对MONGODB的PLUGIN未成功)

  最近公司忙死,
  为了配合大家公司,在ESX上的CENTOS里,再上一个作网站资源监控的MUNIN。
  (NTOP,在考虑当中,测试已通过)
  由于对APACHE执行CGI不甚清楚,搞了很久的这些权限问题。
  最后,在一篇最简单的参考文档里搞定。
  看来,PYTHON和APACHE的CGI,FASTCGI也要去了解一下了。。
  URL:
  http://www.tecmint.com/install-munin-network-monitoring-in-rhel-cent-6-3-fedora-17/

Installing Munin in RHEL, CentOS & Fedora
  Installing Munin is very simple, just follow my below step-by-step commands to install it on your server.

Step 1: Installing EPEL Repository for RHEL & CentOS
  Munin can be installed by using Fedora‘s EPEL repository under RHEL 6.3/6.2/6.1/6/5.8 and CentOS 6.3/6.2/6.1/6/5.8. Just, run the following commands as root user to install it using wget.

RHEL/CentOS 6

# wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm
# rpm -ivh epel-release-6-5.noarch.rpm
RHEL/CentOS 5

# wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
# rpm -ivh epel-release-5-4.noarch.rpm
  Note : Fedora users don’t need to install EPEL repository, because munin is included in Fedora and can be installed using yum.

Step 2: Installing Munin
  Just run the following command as root user.

# yum --enablerepo=epel -y install munin munin-node
  By default the above installation creates following directories.


[*]/etc/munin/munin.conf : Munin master configuration file.
[*]/etc/cron.d/munin : Munin cron file.
[*]/etc/httpd/conf.d/munin.conf : Munin Apache configuration file.
[*]/var/log/munin : Munin log directory.
[*]/var/www/munin : Munin web directory.
[*]/etc/munin/munin-node.conf : Munin Node master configuration file.
[*]/etc/munin/plugins.conf : Munin plugins configuration file.
[*]/etc/rc.d/init.d/munin-node : Munin start-up service daemon.

Step 3: Configuring Munin
  Open file /etc/httpd/conf/httpd.conf file and add the following lines of code at the bottom.

Alias /munin /var/www/munin

Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all

  Restart Apache and then create system start-up links for Munin and start it.

# /etc/init.d/httpd restart
# chkconfig --levels 235 munin-node on
# /etc/init.d/munin-node start
Step 4: Accessing Munin Web Interface
  Wait for 30 minutes so that Munin can generate graphs and displayed it. To see first output of graphs, open your browser and navigate to http://www.example.com/munin.
  For more information and usage please visit at http://munin-monitoring.org/wiki/Documentation.
  
  ~~~~~~~
  上个图,自赏一下。:

  
页: [1]
查看完整版本: 在CENTOS上安装APACHE,MUNIN(对MONGODB的PLUGIN未成功)