1
0
Fork 0
smartmontoolstopsql/README.md

17 lines
314 B
Markdown
Raw Normal View History

2021-11-06 20:02:09 +02:00
# Load smartmontools attrlog files to PostgreSQL
For luls and pretty Grafana graphs
2021-11-07 20:41:02 +02:00
# 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