「Monitorix」:修訂間差異
跳至導覽
跳至搜尋
(未顯示同一使用者於中間所作的 10 次修訂) | |||
第3行: | 第3行: | ||
== 安裝 == | == 安裝 == | ||
目前在[[Ubuntu]] | 目前在[[Ubuntu]]上20.04 focal後的版本有支援: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
第11行: | 第11行: | ||
== 設定 == | == 設定 == | ||
設定檔在<code>/etc/monitorix/monitorix.conf</code>內,預設值就可以用了,但如果需要透過[[nginx]]服務的話(通常是為了HTTPS): | 設定檔在<code>/etc/monitorix/monitorix.conf</code>內,預設值就可以用了,但如果需要透過[[nginx]]服務的話,需要修改本來因為<code>localhost</code>的設定(通常是為了HTTPS): | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="ini"> | ||
url_prefix_proxy = | url_prefix_proxy = //rpi.gslin.com/ | ||
</syntaxhighlight> | </syntaxhighlight> | ||
另外網路介面預設用<code>eth0</code>,但這可能不存在,要改成實際的的介面名稱: | |||
<syntaxhighlight lang="apache"> | |||
<net> | |||
max = 10 | |||
list = enp1s0 | |||
<desc> | |||
enp1s0 = GigaEthernet LAN, 0, 100000000 | |||
</desc> | |||
gateway = enp1s0 | |||
</net> | |||
</syntaxhighlight> | |||
常見會額外啟動的: | |||
* gensens(其他溫度、CPU頻率、...) | |||
* lmsens(CPU溫度、CPU電壓、風扇轉速、...) | |||
=== nginx === | |||
然後nginx內的設定會將<code>/monitorix/</code>與<code>/monitorix-cgi/</code>導進去: | 然後nginx內的設定會將<code>/monitorix/</code>與<code>/monitorix-cgi/</code>導進去: | ||
<syntaxhighlight lang="nginx | <syntaxhighlight lang="nginx"> | ||
location /monitorix/ { | location /monitorix/ { | ||
proxy_pass http://127.0.0.1:8080/monitorix/; | proxy_pass http://127.0.0.1:8080/monitorix/; |
於 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/;
}
外部連結
- 官方網站 (英文)