serverapps:monitor:smokeping
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
serverapps:monitor:smokeping [2025/05/26 14:38] – [general] hayashi | serverapps:monitor:smokeping [2025/05/26 15:41] (現在) – hayashi | ||
---|---|---|---|
行 3: | 行 3: | ||
===== install ===== | ===== install ===== | ||
- | # pkg install smokeping nginx | + | # pkg install smokeping nginx fcgiwrap |
===== smokeping の設定 ===== | ===== smokeping の設定 ===== | ||
行 18: | 行 18: | ||
imgurl | imgurl | ||
datadir | datadir | ||
- | piddir | + | piddir |
cgiurl | cgiurl | ||
smokemail = / | smokemail = / | ||
行 28: | 行 28: | ||
# concurrentprobes = no | # concurrentprobes = no | ||
</ | </ | ||
+ | ==== Presentation ==== | ||
+ | |||
+ | template = / | ||
+ | |||
+ | ==== Probes ==== | ||
+ | |||
+ | + FPing | ||
+ | | ||
+ | binary = / | ||
+ | |||
+ | ==== Slaves ==== | ||
+ | |||
+ | secrets=/ | ||
+ | |||
+ | |||
==== dir関連 ==== | ==== dir関連 ==== | ||
- | < | + | < |
mkdir -p / | mkdir -p / | ||
mkdir -p / | mkdir -p / | ||
- | mkdir -p /var/run/smokeping | + | mkdir -p /usr/local/var/smokeping |
+ | chown smokeping: | ||
+ | chmod 600 / | ||
+ | chown smokeping: | ||
+ | chown smokeping: | ||
</ | </ | ||
行 50: | 行 70: | ||
# | # | ||
- | location = / | + | location = / |
fastcgi_intercept_errors on; | fastcgi_intercept_errors on; | ||
- | fastcgi_param SCRIPT_FILENAME / | + | fastcgi_param SCRIPT_FILENAME / |
fastcgi_param QUERY_STRING | fastcgi_param QUERY_STRING | ||
fastcgi_param REQUEST_METHOD | fastcgi_param REQUEST_METHOD | ||
行 71: | 行 91: | ||
fastcgi_param HTTPS | fastcgi_param HTTPS | ||
- | fastcgi_pass unix:/ | + | fastcgi_pass unix:/ |
} | } | ||
location ^~ /smokeping/ { | location ^~ /smokeping/ { | ||
- | alias / | + | |
- | index smokeping.cgi; | + | alias / |
+ | index smokeping.fcgi; | ||
gzip off; | gzip off; | ||
} | } | ||
location / { | location / { | ||
- | return 301 http:// | + | return 301 http:// |
} | } | ||
} | } | ||
</ | </ | ||
+ | ===== fcgiwrap ===== | ||
+ | |||
+ | mkdir / | ||
+ | |||
+ | ===== 参考 ===== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
serverapps/monitor/smokeping.1748270314.txt.gz · 最終更新: by hayashi