Munin:修订间差异
跳到导航
跳到搜索
此页面具有访问限制。如果您看见此消息,则说明您没有权限访问此页面。
(→設定) |
(→設定) |
||
第27行: | 第27行: | ||
另外是systemd的設定檔,包含了<code>/lib/systemd/system/munin-cgi-graph.service</code>: | 另外是systemd的設定檔,包含了<code>/lib/systemd/system/munin-cgi-graph.service</code>: | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="ini"> | ||
# | # | ||
[Unit] | [Unit] |
2021年4月25日 (日) 21:45的版本
Munin是一套Perl撰寫的監控軟體。
安裝
Munin目前已經算成熟,更新幅度不會太大,加上Ubuntu內的版本都還算夠新[1],可以直接安裝Ubuntu內的版本:
sudo apt install -y munin; sudo apt clean
節點只需要安裝munin-node:
sudo apt install -y munin-node; sudo apt clean
設定
伺服器端的設定,先將Munin設定為CGI模式(事實上會是FastCGI模式),這需要修改/etc/munin/munin-conf.d/cgi.conf
:
graph_strategy cgi
html_strategy cgi
cgiurl_graph /munin-cgi/munin-cgi-graph
另外是systemd的設定檔,包含了/lib/systemd/system/munin-cgi-graph.service
:
#
[Unit]
Description=Munin CGI Graph FastCGI daemon
After=remote-fs.target
[Service]
ExecStart=/usr/bin/spawn-fcgi -s /var/run/munin/fastcgi-graph.sock -P /var/run/munin/fastcgi-graph.pid -U www-data -u munin -g munin /usr/lib/munin/cgi/munin-cgi-graph
PIDFile=/var/run/munin/fastcgi-graph.pid
Restart=always
RestartSec=1
Type=simple
[Install]
WantedBy=multi-user.target
參考資料
- ↑ Ubuntu – Package Search Results -- munin. [2021-04-26] (English).
外部連結
- 官方网站 (英文)