Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 作品与服务 | Email

第 21 章 Munin

目录

21.1. Ubuntu
21.1.1. Installation Monitor Server
21.1.2. Installation Node
21.1.3. Additional Plugins
21.1.4. plugins
21.1.4.1. mysql
21.1.4.2. apache
21.2. CentOS
21.3. 用户认证
21.4. munin-node and plugins
21.4.1. munin-node.conf
21.4.2. mysql plugin
21.4.3. apache plugin
21.4.4. memcached plugin
21.5. munin.conf
21.6. munin-node
21.6.1. munin-node.conf

http://munin-monitoring.org/

21.1. Ubuntu

http://munin-monitoring.org/

21.1.1. Installation Monitor Server

$ sudo apt-get install munin

neo@monitor:~$ sudo vim /etc/munin/munin.conf
neo@monitor:~$ sudo service munin-node restart


[example.com]
        address 127.0.0.1
        use_node_name yes
        
[web2]
    address 172.16.1.2
    use_node_name yes

[web3]
    address 172.16.1.3
    use_node_name yes

[database]
    address 172.16.1.10
    use_node_name yes

		

21.1.2. Installation Node

sudo apt-get install munin-node

vim /etc/munin/munin-node.conf

allow ^172\.16\.1\.2$
		

21.1.3. Additional Plugins

sudo apt-get install munin-plugins-extra
		

21.1.4. plugins

21.1.4.1. mysql
ln -s /usr/share/munin/plugins/mysql_* /etc/munin/plugins/
			

/etc/munin/plugin-conf.d/munin-node

$ sudo vim /etc/munin/plugin-conf.d/munin-node

[mysql*]
user root
env.mysqlopts --defaults-file=/etc/mysql/debian.cnf
env.mysqluser debian-sys-maint
env.mysqlconnection DBI:mysql:mysql;mysql_read_default_file=/etc/mysql/debian.cnf

[mysql*]
env.mysqlopts -h 192.168.3.40 -uneo -pchen
			
21.1.4.2. apache
$ sudo vim /etc/munin/plugin-conf.d/munin-node
			
[apache_*]
env.url   http://127.0.0.1/server-status?auto
env.ports 80			
			
comments powered by Disqus