View Single Post
Tuổi 18-10-2009, 11:11 PM   #1
hoctinhoc
Guest
 
Trả Lời: n/a
Install Munin to see server's status! on CentOS 5
Install Munin to see server's status!



Installation on CentOS 5


The easiest way to go about this is to install a YUM repository that contains it. The two most popular are the EPEL YUM Repository from the Fedora Core team, and the Dag Wieers YUM repository
Once the repository is installed, just use YUM to install both the munin and munin-node RPMs as required.
Installing the EPEL YUM Repository


Just execute this command as root :

Trích dẫn:

rpm -Uvh http://download.fedora.redhat.com/pu...5-3.noarch.rpm
That is of course if you are running CentOS 5.3. Change the file name to 5.2 if you are running that release, and so on.

Installing the Dag Wieers YUM Repository


Just create the following file with the contents show : /etc/yum.repos.d/dag.repo



Trích dẫn:
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
gpgkey=http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
enabled=1
Installing Client and Server

On the server, just do :



Trích dẫn:
yum -y install munin

And on each client (or "node" as munin calls them) :



Trích dẫn:
yum -y install munin-node
Note that the node install can take a really long time to complete - just be patient and it will.



Configuration on CentOS 5


Trích dẫn:

[root@ns ~]# vi /etc/munin/munin.conf

htmldir /var/www/munin // line 7: change

[server1.quantrinet.com] // line 27: change to hostname
address 127.0.0.1
use_node_name yes

[root@ns ~]# vi /etc/munin/munin-node.conf

server1.quantrinet.com // line 29: specify hostname

[root@ns ~]#chown munin. /var/www/munin
[root@ns ~]#/etc/rc.d/init.d/httpd restart

Stopping httpd:[ OK ]
Starting httpd: [ OK ]

[root@ns ~]#/etc/rc.d/init.d/munin-node start
Starting Munin Node: [ OK ]

[root@ns ~]#chkconfig munin-node on
Access to "http://(hostname)/munin/" with web browser. Next, Click a link of hostname.






N:QTN
  Trả lời ngay kèm theo trích dẫn này