本文共 1204 字,大约阅读时间需要 4 分钟。
http://munin-monitoring.org/
$ sudo apt-get install muninneo@monitor:~$ sudo vim /etc/munin/munin.confneo@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
sudo apt-get install munin-nodevim /etc/munin/munin-node.confallow ^172\.16\.1\.2$
sudo apt-get install munin-plugins-extra
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 rootenv.mysqlopts --defaults-file=/etc/mysql/debian.cnfenv.mysqluser debian-sys-maintenv.mysqlconnection DBI:mysql:mysql;mysql_read_default_file=/etc/mysql/debian.cnf[mysql*]env.mysqlopts -h 192.168.3.40 -uneo -pchen
$ sudo vim /etc/munin/plugin-conf.d/munin-node [apache_*]env.url http://127.0.0.1/server-status?autoenv.ports 80
原文出处:Netkiller 系列 手札
本文作者:陈景峯 转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。