Load smartmontools attrlog files to PostgreSQL
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Arti Zirk 770d13a77a Add more instructions to README 4 weeks ago
test Add test attrlog 4 weeks ago
.gitignore Imports 4 weeks ago
README.md Add more instructions to README 4 weeks ago
attrlogimport.py Support importing only new data from end 4 weeks ago
requirements.txt Handle timezones correctly 4 weeks ago

README.md

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