Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

161 total results found

Synology 使用2.5G網卡

Synology

安裝網卡驅動 確認網卡型號,大多都適用bb-qq作者的RTL8152/8153/8156/8157/8159套件 套件架構代號 對應 CPU 處理器平台 代表型號範例 v1000 AMD Ryzen V1000 / R1000 系列 DS923+, DS723+, DS1522+, RS2423+ r1000 AMD Ryzen R1600 雙核處理器 DS1621+, DS1821+, RS2421+ epyc7003 AMD EPYC 7003 系列企...

SYNOLOGY

Linux 建立限制指令的使用者

Linux 相關

要建立一個限制極高的專用帳號,使其只能執行 smartctl -a,最安全且乾淨的做法是利用 Linux 的 SSH Command Restriction (Force Command) 機制,搭配 sudoers 最小權限設定。 以下是完整的設定步驟: 步驟 1:建立受限使用者 在目標 Linux 機器上建立一個專門用於監控的帳號(例如命名為 smartmon),並停用密碼登入: # 建立使用者 smartmon,禁用密碼並停用標準 shell sudo useradd -m -s /bin/...

LINUX

LibreNMS SMART 監控

LibreNMS LibreNMS 應用程式設定

安裝 SMART SNMP Extend 安裝套件 Debian/Ubuntu apt-get install smartmontools libjson-perl libmime-base64-perl wget https://github.com/librenms/librenms-agent/raw/master/snmp/smart-v1 -O /etc/snmp/smart chmod +x /etc/snmp/smart 查詢硬碟 fdisk -l | grep "Disk /dev" ...

LIBRENMS

LibreNMS ICMP 監控警報

LibreNMS LibreNMS 警報相關設定

新增警報規則 若ICMP 5分鐘沒恢復則發送告警 Transport選擇要發送的位置 若不選擇設備則預設全部設備套用 新增警報範本 {{ $alert->title }} 設備名稱: {{ $alert->display }} @if (!empty($alert->uptime_short)) 運行時間: {{ $alert->uptime_short }} @endif @if ($alert->state == 0) 持續時間: {{ $alert->elapsed }} 恢復時...

LIBRENMS

LibreNMS 自訂 LVM-Thin Pool 監控

LibreNMS LibreNMS 警報相關設定

傳統 LVM: 當您建立傳統的 LV(Logical Volume)並格式化掛載(例如 /dev/mapper/vg-lv 掛載到 /data),它在作業系統中是一個標準的「掛載檔案系統」。LibreNMS 透過標準的 SNMP(HOST-RESOURCES-MIB)就能直接抓到這個掛載點的磁碟容量與使用率。 LVM-Thin Pool: LVM-Thin Pool 是一個「區塊層級的儲存池」(如 Proxmox VE 上的 local-lvm)。它本身沒有檔案系統,也沒有掛載到任何目錄上。因為它在系統中沒有 m...

LIBRENMS

OpenWrt 安裝NUT (Network UPS Tools)監控UPS

OpenWrt

安裝nut-upsmon 搜尋nut-upsmon和luci-app-nut安裝 重新登入網頁會顯示NUT設定側欄 設定NUT監控 我的UPS server在Synology上,所以設定UPS 從裝置 CLI確認可以讀取UPS並啟用 root@OpenWrt:~# upsc ups@192.168.0.250 battery.charge: 100 battery.charge.low: 10 battery.charge.warning: 50 battery.date:...

OPENWRT

LibreNMS 自訂CPU溫度監控警報

LibreNMS LibreNMS 警報相關設定

自訂OID 確認已經建立OID,名稱統一為CPU溫度,後續只要自訂CPU 監控OID都能統一套用 建立警報規則 選擇Create rule from collection,選擇CustomOID over warning limit Add rule放在上面,讓descr匹配CPU溫度 建立警報範本 {{ $alert->title }} 設備名稱: {{ $alert->display }} @if (!empty($alert->uptime_short)) 運行時間...

LIBRENMS

OpenWrt 安裝 syslog-ng

OpenWrt

安裝syslog-ng 在網頁上搜尋安裝 設定syslog-ng 編輯/etc/syslog-ng.conf ,在source src裡的unix-dgram補上時區 若未設定,大部分服務寫入/dev/log 的時間都不會+8 source src { internal(); unix-dgram("/dev/log" keep-timestamp(no) time-zone("+08:00")); }; 修改開機順序 預設syslog-ng順序在50順位...

OPENWRT

LibreNMS 轉發網頁IP帶PORT

LibreNMS

librenms架在路由器後方需要轉送並帶PORT 在librenms主機的nginx裡新增fastcgi_param HTTP_HOST $http_host; location ~ [^/]\.php(/|$) {        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;        fastcgi_param PATH_INFO $fastcgi_path_info;        fastcgi_pass unix...

LIBRENMS