kk的blog
2026/11/23
2026/11/20
2026/11/15
2026/11/12
2026/11/08
2026/11/04
2026/10/28
cloudflare 提供免費靜態網頁的使用
講一下流程
先註冊或直使用google或其他帳號 (無需信用卡)
https://dash.cloudflare.com/login
登入後依照以下擷圖操作
使用上傳放式如果網頁內容有修改
不能只上傳修改部分
要砍掉重傳
snmp從windows server 2012 開始就被棄用
最近剛好看到 ncpa
nagios 出的工具
記錄一下安裝使用流程 被監控端以windows 為例
下載 windows agent 安裝
安裝過程中 token 記得要修改
監控端下載 check_ncpa.py
撈取被控端資料語法如下
# 1. 檢查 CPU 使用率 (5分鐘平均)
python3 check_ncpa.py -H 192.168.1.100 -t 'mytoken' -M 'cpu/percent' -q "aggregate=avg" -w 80 -c 90
# 2. 檢查記憶體使用率 (%)
python3 check_ncpa.py -H 192.168.1.100 -t 'mytoken' -M 'memory/virtual/percent' -w 80 -c 90
# 3. 檢查根目錄 / (Linux) 或 C: 磁碟空間 (Windows)
# Linux:
python3 check_ncpa.py -H 192.168.1.100 -t 'mytoken' -M 'disk/logical/|/percent' -w 80 -c 90
# Windows:
python3 check_ncpa.py -H 192.168.1.100 -t mytoken -M disk/logical/C:\|/used_percent -w 80 -c 90
查看所有可撈的指標
python3 check_ncpa.py -H 192.168.1.100 -t 'mytoken' -M 'disk/logical/C:|'
https://www.nagios.org/projects/ncpa/
https://assets.nagios.com/downloads/ncpa3/
https://github.com/NagiosEnterprises/ncpa/tree/master
https://github.com/NagiosEnterprises/ncpa/tree/master/client







