檢視 SmokePing 的原始碼
←
SmokePing
跳至導覽
跳至搜尋
由於以下原因,您無權編輯此頁面:
您請求的操作只有這個群組的使用者能使用:
使用者
您可以檢視並複製此頁面的原始碼。
'''SmokePing'''是一套監控網路品質的軟體。 == 安裝 == 在[[Ubuntu]]下可以直接透過系統內的套件安裝: <syntaxhighlight lang="bash"> sudo apt install -y smokeping; sudo apt clean </syntaxhighlight> == 設定 == 目前[[Ubuntu]]內建的[[systemd]]有兩個問題會透過drop-in設定修正: * 有dependency的問題,不能保證開機後會正確啟動(可能會在網路還沒起來的時候就先啟動了)。 * 在發生問題後不會自動重啟的問題。 <syntaxhighlight lang="bash"> sudo mkdir -p /etc/systemd/system/smokeping.service.d; echo -e "#\n[Unit]\nRequires=network-online.target\n\n[Service]\nRestart=on-failure" | sudo tee /etc/systemd/system/smokeping.service.d/override.conf; sudo systemctl daemon-reload </syntaxhighlight> 這邊為了在網頁上可以看,會另外安裝[[FastCGI]]相關的套件以及相關的設定: <syntaxhighlight lang="bash"> sudo apt install -y spawn-fcgi; sudo apt clean; sudo ln -s ../smokeping.cgi /usr/share/smokeping/www/smokeping.fcgi </syntaxhighlight> 使用[[nginx]]時可以這樣設定: <syntaxhighlight lang="nginx"> location /smokeping/ { alias /usr/share/smokeping/www/; index smokeping.fcgi; location ~ \.fcgi$ { include fastcgi_params; fastcgi_intercept_errors on; fastcgi_pass unix:/var/run/smokeping-fcgi.sock; } } </syntaxhighlight> 另外[[systemd]]的設定可以放在<code>/etc/systemd/system/smokeping-fcgi.service</code>下: <syntaxhighlight lang="ini"> # # Install into /lib/systemd/system [Unit] Description=Smokeping FastCGI daemon Requires=remote-fs.target smokeping.service [Service] ExecStart=/usr/bin/spawn-fcgi -s /var/run/smokeping-fcgi.sock -P /var/run/smokeping-fcgi.pid -u www-data -g www-data -- /usr/share/smokeping/www/smokeping.fcgi PIDFile=/run/smokeping-fcgi.pid Restart=always RestartSec=60 Type=simple [Install] WantedBy=multi-user.target </syntaxhighlight> == 站台 == === 我自己的 === * https://home.gslin.org/smokeping/ * https://rent-hinet.gslin.com/smokeping/ * https://rpi.gslin.com/smokeping/ === 其他 === * https://smokeping.kkbox.com.tw/ == 外部連結 == * {{Official|https://oss.oetiker.ch/smokeping/}} {{en}} [[Category:軟體]]
此頁面使用了以下模板:
Template:En
(
檢視原始碼
)
Template:En icon
(
檢視原始碼
)
Template:ISO 639 name en
(
檢視原始碼
)
Template:Lan
(
檢視原始碼
)
Template:Language icon
(
檢視原始碼
)
Template:Official
(
檢視原始碼
)
Template:Official website
(
檢視原始碼
)
Module:Arguments
(
檢視原始碼
)
Module:Lan
(
檢視原始碼
)
Module:Official website
(
檢視原始碼
)
Module:URL
(
檢視原始碼
)
返回到「
SmokePing
」。
導覽選單
個人工具
登入
命名空間
頁面
討論
臺灣正體
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
臺灣正體
視圖
閱讀
檢視原始碼
檢視歷史
更多
搜尋
導覽
首頁
近期變更
隨機頁面
MediaWiki說明
工具
連結至此的頁面
相關變更
特殊頁面
頁面資訊