Load smartmontools attrlog files to PostgreSQL
test | ||
.gitignore | ||
attrlogimport.py | ||
README.md | ||
requirements.txt |
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