back to smartctl and drivedb.h as local database.
As my understand the database should provide HDD information and modified commands to access those HDDs, like the -d megaraid.
Exactly with those details commands i'm struggling, where to put those
i guess then this gets executed accordingly:
/openmediavault/engined/rpc/smart.inc: $cmd = new \OMV\System\Process("smartctl", $cmdArgs);
I've modified a downloaded drivedb.h and stored it in /etc/drivedb.h and restarted smartmontools service. The entry change was my drive:
{ "HGST Ultrastar He10", // tested with HGST HUH7210100ALE600/0F27452
"HGST HUH7210(08|10)AL[EN]60[014]",
"", "", "-d megaraid,04"
//"-v 22,raw48,Helium_Level"
},
{ "Western Digital Ultrastar (He10/12)", // WD white label, tested with
// WDC WD80EMAZ-00WJTA0/83.H0A83 (Easystore 0x1058:0x25fb),
// WDC WD80EZAZ-11TDBA0/83.H0A83, WDC WD100EMAZ-00WJTA0/83.H0A83,
// WDC WD100EZAZ-11TDBA0/83.H0A83, WDC WD120EMAZ-11BLFA0/81.00A81
// WDC WD140EDFZ-11A0VA0/81.00A81 (Easystore 0x1058:0x25fb)
// WDC WD140EDGZ-11B2DA2/85.00A85, WDC WD140EDGZ-11B1PA0/85.00A85
// WDC WD120EDAZ-11F3RA0/81.00A81, WDC WD80EDAZ-11TA3A0/81.00A81
// WDC WD40EDAZ-11SLVB0/80.00A80
"WDC WD(40EDA|(80|100|120|140)E([MZ]A|DA|DF|DG))Z-.*",
"", "", ""
//"-v 22,raw48,Helium_Level" // not: WD80EDAZ, WD40EDAZ
},
as you can see, i've added for a test a "-d megaraid,04"
but this doesn't lead to changes in the SMART area of omv web ui.
It still comes up with an "use smartctl with -d" to show stuff here....
when i create a file
/etc/smart_drivedb.h with only the above entries then nothing changes but syslog shows
smartd[159304]: /etc/smart_drivedb.h(3): Syntax error in preset option string
do you see my error?