2026/02/25
2025/11/04
graylog 7 昨天發布
比較大的改變是不再使用 opensearch 而改用 graylog-datanode
照著官方文件安裝沒什麼問題
如果是在PVE上安裝
因為 mongodb 必須使用到cpu的 avx 功能
所以cpu type 至少要選 x86-64-v3 以上
這個在graylog 5 安裝時就有這個要求了
特別要注意的是以下流程跟之前不同
安裝完後必須 cat /var/log/graylog-server/server.log
找到首次進入系統的帳號密碼及連結
如下範例
http://admin:ghWgeIAkKl@10.0.0.1:9000按照畫面上的流程步驟 使用預設值一直下一步即可
目前先把netflow轉到新版了 觀察一陣子看看
https://go2docs.graylog.org/current/setting_up_graylog/web_interface.htm#Prefligh
https://go2docs.graylog.org/current/downloading_and_installing_graylog/red_hat_installation.htm
2025/08/12
2025/06/01
解決的方法就是cpu不要使用預設的 x86-64-v2-AES
也不要用 x86-64-v2
使用 x86-64-v3 或 x86-64-v4 就沒問題了
不過要注意的是 比較舊的host 可能無法支援這二個type 而無法 migrate
2024/09/24
2024/09/19
2024/09/17
2024/09/16
最近因為換冷氣 所以要觀察 raspberry 的cpu溫度
來調整冷氣的設定溫度
先前已經利用設定snmp把值放在librenms上畫圖
今天想到grafana可以取值來畫圖
而且應該比snmp librenms 方便
首先把日期跟溫度存成csv 檔 格式如下 放在web server上
格式如下
time,temperature
Sun Sep 15 09:15:01 CST 2024,46.2
Sun Sep 15 09:20:01 CST 2024,46.2
接下來只要定時更新這個csv檔就可以了
grafana 要add new datasource
yesoreyeram-infinity-datasource
Add visualization
select data source
type 選擇csv 修改csv檔的url
要把columns 依照數字及時間 設定好
時間的格式一定要依照cvs檔裡的時間格式設定好才能畫圖
完成後就能看到如下的圖了
2024/09/05
2024/06/15
2023/04/20
2017/11/29
速度很慢
加了 Disk Journal 還有cpu的個數
還是很慢
buffers常常爆表
而且cpu的使用率還是很高
今天再仔細看了一下
發現 / 的使用率已經 99% 了 XD
再找找是那裡吃掉了
2012/02/06
有一個新的需求 要知道cpu的溫度
查了一下資料
可以使用lm-sensors來得到資料
步驟如下
apt-get install lm-sensors
(yum install lm-sensors)
#sensors-detect
一直按Enter直到看到
#----cut here----
#...................................
#....................
i2c-i801
# Chip drivers
# no driver for Winbond W83L785R/G yet
lm85
#----cut here----
在二個cut here 中間找到的就是必需insert的module
以上為例
# modprobe i2c-i801
# modprobe lm85
接下來輸入
# sensors
就會出現cpu溫度之類的監控訊息
adm1027-i2c-3-2e
Adapter: SMBus I801 adapter at e000
V1.5: +1.31 V (min = +0.00 V, max = +3.32 V)
VCore: +1.49 V (min = +0.00 V, max = +2.99 V)
V3.3: +3.30 V (min = +0.00 V, max = +4.38 V)
V5: +5.08 V (min = +0.00 V, max = +6.64 V)
V12: +11.97 V (min = +0.00 V, max = +15.94 V) ALARM
CPU_Fan: 3941 RPM (min = 0 RPM)
fan2: 0 RPM (min = 0 RPM)
fan3: 0 RPM (min = 0 RPM)
fan4: 1882 RPM (min = 0 RPM)
CPU Temp: +48.8°C (low = -127.0°C, high = +127.0°C)
Board Temp: +46.0°C (low = -127.0°C, high = +127.0°C)
Remote Temp: +45.5°C (low = -127.0°C, high = +127.0°C)
cpu0_vid: +1.525 V
但在hp的机器中出現的是
#----cut here----
# You must also install and load the IPMI modules
ipmi-si
# Chip drivers
# Warning: the required module ipmisensors is not currently installed
# on your system. For status of 2.6 kernel ports check
# http://www.lm-sensors.org/wiki/Devices. If driver is built
# into the kernel, or unavailable, comment out the following line.
ipmisensors
#----cut here----