「Monitorix」:修訂間差異
跳至導覽
跳至搜尋
第15行: | 第15行: | ||
<syntaxhighlight lang="ini"> | <syntaxhighlight lang="ini"> | ||
url_prefix_proxy = //rpi.gslin.com/ | url_prefix_proxy = //rpi.gslin.com/ | ||
</syntaxhighlight> | |||
另外網路介面預設用<code>eth0</code>,但這可能不存在,要改成實際的的介面名稱: | |||
<syntaxhighlight lang="apache"> | |||
<net> | |||
max = 10 | |||
list = enp1s0 | |||
<desc> | |||
enp1s0 = GigaEthernet LAN, 0, 100000000 | |||
</desc> | |||
gateway = enp1s0 | |||
</net> | |||
</syntaxhighlight> | </syntaxhighlight> | ||
於 2025年2月14日 (五) 18:54 的最新修訂
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/;
}
外部連結
- 官方網站 (英文)