Monitorix:修订间差异

来自Gea-Suan Lin's Wiki
跳到导航 跳到搜索
此页面具有访问限制。如果您看见此消息,则说明您没有权限访问此页面。
 
第3行: 第3行:
== 安裝 ==
== 安裝 ==


 目前在[[Ubuntu]] 上只有20.04 focal版本有支援:
 目前在[[Ubuntu]] 上20.04 focal 後的 版本有支援:


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">

2024年1月3日 (三) 16:05的最新版本

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/

常见会额外启动的:

  • 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/;
    }

外部连结