第 25 章 Munin

  1. 云栖社区>
  2. Netkiller>
  3. 博客>
  4. 正文

第 25 章 Munin

玄学酱 2018-01-02 10:01:00 浏览881
展开阅读全文

目录

25.1. Ubuntu
25.1.1. Installation Monitor Server
25.1.2. Installation Node
25.1.3. Additional Plugins
25.1.4. plugins
25.1.4.1. mysql
25.1.4.2. apache
25.2. CentOS
25.3. 用户认证
25.4. munin-node and plugins
25.4.1. munin-node.conf
25.4.2. mysql plugin
25.4.3. apache plugin
25.4.4. memcached plugin
25.5. munin.conf
25.6. munin-node
25.6.1. munin-node.conf

http://munin-monitoring.org/

25.1. Ubuntu

http://munin-monitoring.org/

25.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

		

25.1.2. Installation Node

sudo apt-get install munin-node

vim /etc/munin/munin-node.conf

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

25.1.3. Additional Plugins

sudo apt-get install munin-plugins-extra
		

25.1.4. plugins

25.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
			
25.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			
	




原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

网友评论

登录后评论
0/500
评论
玄学酱
+ 关注
所属团队号: Netkiller