![](https://secure.gravatar.com/avatar/546c8639cc67d9c10f2f07c2ebb646d9.jpg?s=120&d=mm&r=g)
Temperature is not what Im looking for. Im interested in such things like “Reallocated Sector Count”, which I can get from smartmontools/smartctl. Hddtemp only delivers temperature.
Von: observium [mailto:observium-bounces@observium.org] Im Auftrag von Colin Stubbs Gesendet: Mittwoch, 23. Dezember 2015 12:22 An: Observium Network Observation System Betreff: Re: [Observium] HDD SMART Monitoring
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.demailto: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.orgmailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium