Monitorix
跳转到导航
跳转到搜索
Monitorix是一套系统监测的软体。
安装
目前在Ubuntu上20.04 focal后的版本有支援:
sudo apt install -y monitorix; sudo apt clean
设定
设定档在/etc/monitorix/monitorix.conf
内,预设值就可以用了,但如果需要透过nginx服务的话,需要修改本来因为localhost
的设定(通常是为了HTTPS):
url_prefix_proxy = //rpi.gslin.com/
另外网路介面预设用eth0
,但这可能不存在,要改成实际的的介面名称:
<net>
max = 10
list = enp1s0
<desc>
enp1s0 = GigaEthernet LAN, 0, 100000000
</desc>
gateway = enp1s0
</net>
常见会额外启动的:
- gensens(其他温度、CPU频率、...)
- lmsens(CPU温度、CPU电压、风扇转速、...)
nginx
然后nginx内的设定会将/monitorix/
与/monitorix-cgi/
导进去:
location /monitorix/ {
proxy_pass http://127.0.0.1:8080/monitorix/;
}
location /monitorix-cgi/ {
proxy_pass http://127.0.0.1:8080/monitorix-cgi/;
}
外部连结
- 官方网站 (英文)