1
0
Fork 0
Load smartmontools attrlog files to PostgreSQL
You cannot 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 2 years ago
test Add test attrlog 2 years ago
.gitignore Imports 2 years ago
README.md Add more instructions to README 2 years ago
attrlogimport.py Support importing only new data from end 2 years ago
requirements.txt Handle timezones correctly 2 years 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