Look a little deeper.
The hddtemp and temperature scripts for the agent look like a good basis to achieve what you want.
You just need to run the daemon, or copy and modify temperature for your specific disks.
$ cat hddtemp #!/bin/sh
# hddtemp sensor readings # needs hddtemp daemon listening on (at least) localhost # requires netcat to be installed and in the path # (c) 2012, Tom Laermans for Observium
hostname="localhost" port=7634 nc=`which nc`
if [ $? -eq 0 ] && [ `$nc -zv $hostname $port 2>&1 | awk '{print $5}'` = "open" ] then echo '<<<hddtemp>>>' $nc $hostname $port echo fi $
$ cat temperature #!/bin/bash # example to output some temperatures #echo "<<<temperature>>>" #echo "/dev/sda:" `hddtemp /dev/hda -n` $
On 23 December 2015 at 21:09, Daniel Wandrei Daniel.Wandrei@shaghafi.de wrote:
I have a few Linux Server running Debian which I want to monitor with Observium.
Most important HDD SMART data. Ive already smartd running but like to have all data in one place (Observium).
Ive have found no way to collect the SMART values, either with SNMP nor with the Unix Agent. Is there any way not documented or which I may have overseen?
Regards
Daniel
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium