Oxygem / canaryd

The Service Canary daemon.
https://servicecanary.com
MIT License
8 stars 0 forks source link

Hardware plugin: investigate lshw output inconsistency #18

Closed Fizzadar closed 6 years ago

Fizzadar commented 7 years ago

Example:

initial event:

{
    "/dev/sda": {
        "description": [
            "ATA Disk", 
            "SCSI Disk"
        ], 
        "product": [
            "INTEL DSCFA23630", 
            null
        ], 
        "serial": [
            "PHDV8345713421BPT", 
            null
        ], 
        "version": [
            "0112", 
            null
        ]
    }
}

And next sync 15s later:

{
    "/dev/sda": {
        "description": [
            "SCSI Disk", 
            "ATA Disk"
        ], 
        "product": [
            null, 
            "INTEL DSCFA23630"
        ], 
        "serial": [
            null, 
            "PHDV8345713421BPT"
        ], 
        "version": [
            null, 
            "0112"
        ]
    }
}
Fizzadar commented 7 years ago

Potential info sources:

# Disk serials:
cat /dev/.udev/db/block\:sda

# Mapping block/network devices -> data
tree /sys/class/X
Fizzadar commented 6 years ago

Waiting to see if this reappears in the next few hours with v0.3dev4.

Fizzadar commented 6 years ago

Unfortunately still ongoing, but has inspired this bugfix: https://github.com/Oxygem/canaryd/commit/0fc78db6c758285e4fbdd0886ebd3a3e4f25515e