Skip to content

Special characters in performance data #197

Description

@lgmu

Hey @bb-Ricardo
it's been a while, hope you're doing good!

I have a small issue with performance data and pnp4nagios.

This is the redfish data:

"MediaType": "SSD",
    "Model": "VR000480KXLXF",
    "Multipath": false,
    "NegotiatedSpeedGbs": 16.0,
    "PhysicalLocation": {
        "PartLocation": {
            "LocationOrdinalValue": 1,
            "LocationType": "Bay",
            "ServiceLabel": "Slot=23:Bay=1"
        }
    },
    "PredictedMediaLifeLeftPercent": 100.0,
    "Protocol": "NVMe",

This creates 'media_life_left_drive_480GB_16G_NVMe_SSD_Slot=23:Bay=1'=100%;10;5 in the performance metrics and pnp4nagios breaks when it sees the = in the label 😄

Maybe it would be a good idea to replace all kind of special chars with _ or - in the performance labels?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions