1
0
Load smartmontools attrlog files to PostgreSQL
Go to file
2021-11-07 20:41:02 +02:00
test Add test attrlog 2021-11-07 20:38:57 +02:00
.gitignore Imports 2021-11-06 20:02:09 +02:00
attrlogimport.py Support importing only new data from end 2021-11-07 20:38:26 +02:00
README.md Add more instructions to README 2021-11-07 20:41:02 +02:00
requirements.txt Handle timezones correctly 2021-11-06 23:51:58 +02:00

Load smartmontools attrlog files to PostgreSQL

For luls and pretty Grafana graphs

Setup

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Create tables

./attrlogimport.py

Importing data

find /var/lib/smartmontools -name 'attrlog.*' | xargs -n1 -P8 ./attrlogimport.py