HDD SMART Monitoring
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
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
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
On 12/23/2015 1:29 PM, Daniel Wandrei wrote:
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.
Colin's suggestion is to make it yourself, basing your work on the existing infrastructure used to get hard disk temperatures.
Writing my own Handler-Script would be my last resort. But I really can't imagine that nobody ever came with a solution for getting smartmontools/smartctl data to Observium and Im the first one who wants to do this. "Reinventing the Wheel", you know :)
Von: observium [mailto:observium-bounces@observium.org] Im Auftrag von Brendan Hide Gesendet: Mittwoch, 23. Dezember 2015 12:34 An: Observium Network Observation System Betreff: Re: [Observium] HDD SMART Monitoring
On 12/23/2015 1:29 PM, Daniel Wandrei wrote: 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. Colin's suggestion is to make it yourself, basing your work on the existing infrastructure used to get hard disk temperatures.
--
__________
Brendan Hide
Yaaarp.
e.g. hddtemp is polled using includes/polling/unix-agent/hddtemp.inc.php
as a place to start looking at how to process the info and get it into a graph.
includes/polling/unix-agent.inc.php is also useful to work out how polling of unix-agent data happens via includes in the includes/polling/unix-agent folder.
Looks like there is a couple of variations on the <<<header>>> format, e.g. <<<name>>> and <<<app-name>>>, with <<<app-name>>> now being preferred because there’s less manual coding required to add new agent handlers.
High level steps,
1) Create agent script to do get the raw data 2) Get Observium poller to interpret and process the data 3) Get Observium to graph it
On 23 December 2015 at 21:34, Brendan Hide brendan@swiftspirit.co.za wrote:
On 12/23/2015 1:29 PM, Daniel Wandrei wrote:
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.
Colin's suggestion is to make it yourself, basing your work on the existing infrastructure used to get hard disk temperatures.
-- __________ Brendan Hidehttp://swiftspirit.co.za/http://www.webafrica.co.za/?AFF1E97
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
frontpage dashboard - replace google map with something useful im just looking at this map and i dont understand why we all need it?
maybe better to display there some devices stats or mini cards with minimum but important information? like traffic, cpu and ram percentage ,etc while geolocation can be there also.
you are very good at minimalistic design, so i know it will fit there very well
thanks
participants (4)
-
Brendan Hide
-
Colin Stubbs
-
Daniel Wandrei
-
MagenX