1
0
Fork 0
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.

314 B

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