https://github.com/nlm/collectd-smartmon
script for collectd exec plugin for monitoring disks smart attributes under linux
https://github.com/nlm/collectd-smartmon
Last synced: 3 months ago
JSON representation
script for collectd exec plugin for monitoring disks smart attributes under linux
- Host: GitHub
- URL: https://github.com/nlm/collectd-smartmon
- Owner: nlm
- License: mit
- Created: 2015-11-17T14:57:18.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-09T08:51:46.000Z (about 10 years ago)
- Last Synced: 2026-01-01T23:18:26.177Z (7 months ago)
- Language: Python
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
collectd-smartmon
=================
a tool to collect local disks smart attributes raw values
using collectd plain-text protocol
requirements
------------
- python
- smartmontools
- sudo
install
-------
clone repo and copy script:
git clone https://github.com/nlm/collectd-smartmon.git
cd collectd-smartmon
cp collectd-smartmon.py /usr/local/bin
add new system user for privilege separation:
useradd -r collectd-smartmon
add to sudoers file:
collectd-smartmon ALL = (ALL) NOPASSWD: /usr/sbin/smartctl -f brief -A /dev/sd[a-z]
add snippet to collectd config file:
LoadPlugin exec
Exec "collectd-smartmon" "/usr/local/bin/collectd-smartmon.py" "sda" "sdb" "sdc" "sdd"
restart collectd