An open API service indexing awesome lists of open source software.

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

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