https://bugs.koozali.org/show_bug.cgi?id=12189
Bug ID: 12189
Summary: NFR: read hddtemp
Classification: Contribs
Product: SME Contribs
Version: 10.0
Hardware: ---
OS: ---
Status: CONFIRMED
Severity: normal
Priority: P3
Component: smeserver-sysmon
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Target Milestone: ---
sysmon does not provides temperature logging for hdd
we could take benefit of hddtemp as does smeadmin
one limit in smeadmin is using the dev index to store
we should use the output to fill the same disk over and over if they are at a
diffrent order at boot
# hddtemp
/dev/sda: KINGSTON SA400S37240G: 24°C
/dev/sdb: WDC WD1002FAEX-00Z3A0: 31°C
/dev/sdc: WDC WD1502FAEX-007BA0: 34°C
/dev/sdd: WDC WD60EFZX-68B3FN0: 27°C
/dev/sde: WDC WD60EFZX-68B3FN0: 29°C
my @sensordata = `/usr/bin/hddtemp 2> /dev/null`;
foreach(@sensordata) {
if(/([a-z0-9\/]+): ([ A-Za-z0-9\-_]+): ([0-9]*)/) {
$datahash->{sensors}->{$2} = $1; print "$2=$1, "}
}
need testing for the regex ;)
this could be a new graph or added to the sensor graph
--
You are receiving this mail because:
You are the QA Contact for the bug._______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/