Skip to content

SMART Application URLs Broken when Slashes are in Device Names #499

@bnerickson

Description

@bnerickson

@VVelox for visibility

When the SMART application is used to parse MegaRAID devices, the device names returned are in the format bus/x,y where I believe x is number designated to the RAID card on Linux and y is the attachment point number of an HDD on said card assigned by Linux. Here's partial output of /etc/snmp/smart -g on a system with a single attached RAID card with 6 hard drives connected to the card.

...
bus/0,0 /dev/bus/0 -d sat+megaraid,18
bus/0,1 /dev/bus/0 -d sat+megaraid,19
bus/0,2 /dev/bus/0 -d sat+megaraid,20
bus/0,3 /dev/bus/0 -d sat+megaraid,21
bus/0,4 /dev/bus/0 -d sat+megaraid,22
bus/0,5 /dev/bus/0 -d sat+megaraid,23

Everything is parsed by the application appropriately, however, the individual URLs for the bus devices are broken. Here's a sample URL to load the bus/0,0 device: https://librenms/device/device=73/tab=apps/app=smart/disk=bus%2F0%2C0/

There might need to be some logic handling the case where device names have forward-slashes or weird characters in their names.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions