Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng

Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng (http://quantrinet.com/forum/index.php)
-   Linux Applications (http://quantrinet.com/forum/forumdisplay.php?f=160)
-   -   Install Munin to see server's status! on CentOS 5 (http://quantrinet.com/forum/showthread.php?t=4045)

hoctinhoc 18-10-2009 11:11 PM

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 :

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.




:battay:

N:QTN


Bây giờ là 04:07 AM. Giờ GMT +7

Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.