serverapps:monitor:smokeping
差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
| serverapps:monitor:smokeping [2025/05/26 09:28] – [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 = / |
| - | tmail = / | + | tmail = / |
| # specify this to get syslog logging | # specify this to get syslog logging | ||
| syslogfacility = local0 | syslogfacility = local0 | ||
| 行 28: | 行 28: | ||
| # concurrentprobes = no | # concurrentprobes = no | ||
| </ | </ | ||
| + | ==== Presentation ==== | ||
| + | template = / | ||
| + | |||
| + | ==== Probes ==== | ||
| + | |||
| + | + FPing | ||
| + | | ||
| + | binary = / | ||
| + | |||
| + | ==== Slaves ==== | ||
| + | |||
| + | secrets=/ | ||
| + | |||
| + | |||
| + | |||
| + | ==== dir関連 ==== | ||
| + | |||
| + | <code bash> | ||
| + | mkdir -p / | ||
| + | mkdir -p / | ||
| + | mkdir -p / | ||
| + | chown smokeping: | ||
| + | chmod 600 / | ||
| + | chown smokeping: | ||
| + | chown smokeping: | ||
| + | |||
| + | </ | ||
| ===== nginx の設定 ===== | ===== nginx の設定 ===== | ||
| + | |||
| + | |||
| + | |||
| + | <code ini> | ||
| + | server { | ||
| + | listen 80; | ||
| + | listen [::]:80; | ||
| + | server_name smokeping.example.com; | ||
| + | |||
| + | #auth_basic " | ||
| + | # | ||
| + | |||
| + | location = / | ||
| + | fastcgi_intercept_errors on; | ||
| + | |||
| + | fastcgi_param SCRIPT_FILENAME / | ||
| + | fastcgi_param QUERY_STRING | ||
| + | fastcgi_param REQUEST_METHOD | ||
| + | fastcgi_param CONTENT_TYPE | ||
| + | fastcgi_param CONTENT_LENGTH | ||
| + | fastcgi_param REQUEST_URI | ||
| + | fastcgi_param DOCUMENT_URI | ||
| + | fastcgi_param DOCUMENT_ROOT | ||
| + | fastcgi_param SERVER_PROTOCOL $server_protocol; | ||
| + | fastcgi_param GATEWAY_INTERFACE CGI/ | ||
| + | fastcgi_param SERVER_SOFTWARE nginx/ | ||
| + | fastcgi_param REMOTE_ADDR | ||
| + | fastcgi_param REMOTE_PORT | ||
| + | fastcgi_param SERVER_ADDR | ||
| + | fastcgi_param SERVER_PORT | ||
| + | fastcgi_param SERVER_NAME | ||
| + | fastcgi_param HTTPS | ||
| + | |||
| + | fastcgi_pass unix:/ | ||
| + | } | ||
| + | |||
| + | location ^~ /smokeping/ { | ||
| + | #alias / | ||
| + | alias / | ||
| + | index smokeping.fcgi; | ||
| + | gzip off; | ||
| + | } | ||
| + | |||
| + | location / { | ||
| + | return 301 http:// | ||
| + | } | ||
| + | } | ||
| + | |||
| + | </ | ||
| + | ===== fcgiwrap ===== | ||
| + | |||
| + | mkdir / | ||
| + | |||
| + | ===== 参考 ===== | ||
| + | |||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | |||
| + | |||
serverapps/monitor/smokeping.1748251734.txt.gz · 最終更新: by hayashi
