在Ubuntu上设置Munin进行温度监控

在Ubuntu上设置Munin进行温度监控

在服务器端:

sudo apt -y install munin apache2 libapache2-mod-fcgid

在/etc/munin/munin.conf中启用以下设置:

graph_strategy cgi
html_strategy cgi

在/etc/munin/apache24.conf中启用以下设置:

# Alias /munin /var/cache/munin/www
ScriptAlias /munin /usr/lib/munin/cgi/munin-cgi-html

现在运行:

sudo a2enconf munin
sudo systemctl reload apache2

在客户端启用munin-node:

chroot /storage/spins/u20-x86/
apt -y update
apt -y upgrade
apt -y install munin-node

在/etc/munin/munin-node.conf中添加以下配置:

allow ^192\.168\.11\.1$

将所有节点添加到munin.conf:

sudo su -
cd /etc/munin
for d in `seq 10 250` ; do echo -e "[$d.localdomain]\n  address 192.168.11.$d\n  use_node_name yes\n"; done >> munin.conf