Skip to content

storage::dell::me4::restapi::plugin does not show valid interface port status (OK/Disconnected) #6360

Description

@stefanotoro

Quick description

We cannot see if the interface port is disconnected, the plugin does not show different status
Plugins are the latest one, Global Version: 20260800

How to reproduce

I use the plugin with default settings and get metrics for interface ports A0 to A3 and B0 to B3.
On port A3 I disconnected the SFP to see if we got alarm, this is the command and the result

/usr/lib/centreon-plugins/src/centreon_plugins.pl --plugin storage::dell::me4::restapi::plugin --mode interfaces --hostname zhfer-sto-faro-t1-ca.mydomain --api-username blablabla --api-password 'blablabla' --insecure --digest-sha256 --filter-port-name A3 --warning-port-status --critical-port-status

OK: port 'A3' read iops: 0.00, write iops: 0.00, read traffic: 0.00 b/s

This is the command and result for another port (A2), that is correclty connected:

/usr/lib/centreon-plugins/src/centreon_plugins.pl --plugin storage::dell::me4::restapi::plugin --mode interfaces --hostname zhfer-sto-faro-t1-ca.mydomain --api-username blablabla --api-password 'blablabla' --insecure --digest-sha256 --filter-port-name A2 --warning-port-status --critical-port-status

OK: port 'A2' status: up [health: ok], read iops: 0.18, write iops: 2.69, read traffic: 811.67 b/s

Expected result

We would like to get status: Disconnected, as we see it in debug mode

Below the debug output for the command, it include all ports

{
"object-name":"ports",
"meta":"/meta/port",
"durable-id":"hostport_A2",
"controller":"A",
"controller-numeric":1,
"port":"A2",
"url":"/ports/A2",
"port-type":"FC",
"port-type-numeric":6,
"media":"FC(P)",
"target-id":"227000c0ff68c3fe",
"status":"Up",
"status-numeric":0,
"actual-speed":"32Gb",
"actual-speed-numeric":16,
"configured-speed":"Auto",
"configured-speed-numeric":3,
"fan-out":1,
"health":"OK",
"health-numeric":0,
"health-reason":"",
"health-recommendation":"",
"fc-port":[
{
"object-name":"port-details",
"meta":"/meta/fc-port",
"configured-topology":"PTP",
"configured-topology-numeric":1,
"primary-loop-id":"N/A",
"sfp-status":"OK",
"sfp-status-numeric":3,
"sfp-present":"Present",
"sfp-present-numeric":1,
"sfp-vendor":"Dell",
"sfp-part-number":"LTF8508-BE+-DEN1",
"sfp-revision":"13",
"sfp-supported-speeds":"8G,16G,32G",
"sfp-supported-speeds-numeric":104
}
]
},
{
"object-name":"ports",
"meta":"/meta/port",
"durable-id":"hostport_A3",
"controller":"A",
"controller-numeric":1,
"port":"A3",
"url":"/ports/A3",
"port-type":"FC",
"port-type-numeric":6,
"media":"FC(-)",
"target-id":"237000c0ff68c3fe",
"status":"Disconnected",
"status-numeric":6,
"actual-speed":"",
"actual-speed-numeric":255,
"configured-speed":"Auto",
"configured-speed-numeric":3,
"fan-out":1,
"health":"OK",
"health-numeric":0,
"health-reason":"",
"health-recommendation":"",
"fc-port":[
{
"object-name":"port-details",
"meta":"/meta/fc-port",
"configured-topology":"PTP",
"configured-topology-numeric":1,
"primary-loop-id":"N/A",
"sfp-status":"Not present",
"sfp-status-numeric":2,
"sfp-present":"Not Present",
"sfp-present-numeric":0,
"sfp-vendor":"",
"sfp-part-number":"",
"sfp-revision":"",
"sfp-supported-speeds":"N/A",
"sfp-supported-speeds-numeric":0
}
]
},

We tried to get more accurate information with custom variables like theses, without any success
--unknown-port-status='%{health} =~ /unknown/i'
--warning-port-status='%{health} =~ /degraded/i'
--critical-port-status='%{health} =~ /fault/i' \

Can you please help us?
Thank you so much in advance

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