ok, i understand
if i create a probe as in the attachement.
probe is ok when is Healthy, but return error when is "not equal" Healthy.
correct?
thank you
Probably.. yes... but I do not have any device to test directly simulating not-healt status...
The string (non raw) values can be Healthy / Normal / Risky / Dangerous / Bad
ehm.. sorry for my english...
Healty = like new disk
Normal = like used, but with full functionality
Risky = Something on S.M.A.R.T. pre advise problems like end of expected lifetime
Dangerous = near broken disk (from S.M.A.R.T. or too many bad sectors)
Bad = the disk is gone
iso.org.dod.internet.private.enterprises.asustor.asustorDisk.diskTable.diskEntry.diskStatus.1 = disk 1 (1.1.3.6.1.4.1.44738.4.1.1.5.1)
iso.org.dod.internet.private.enterprises.asustor.asustorDisk.diskTable.diskEntry.diskStatus.2 = disk 2 (1.1.3.6.1.4.1.44738.4.1.1.5.2)
some other values can be see for volumes (iso.org.dod.internet.private.enterprises.asustor.asustorVolume.volumeTable.volumeEntry.volumeStatus.x):
Healthy
Clean
Active
Resyncing
Recovering
Reshaping
Appending
Migrating
fsExpanding
fsIniting
Degraded
Failed
Inactive
the respective volume name can be read with iso.org.dod.internet.private.enterprises.asustor.asustorVolume.volumeTable.volumeEntry.volumeName.x
with
iso.org.dod.internet.private.enterprises.asustor.1.sysAsustorID.0
you can check is is available new version of internal ADM
Possible string values: Available / Unavailable
and you can put on device appearance / label the function:
[Device.Name]
[device_performance()][rex_adm_available()]
[Device.ServicesDown]
(your must differ for mine because I replace original)
function name: rex_adm_available()
function:
if ( oid("iso.org.dod.internet.private.enterprises.asustor.1.sysAsustorID.0") = "Available"
, "Aggiornamento ADM disponibile"
, ""
)