Coder Social home page Coder Social logo

Comments (5)

hpcitdude avatar hpcitdude commented on June 2, 2024

I generated the mockup and checked. On our nodes there are no ctrl installed. Just a simple disk, so the disk is not available under:
/redfish/v1/Systems/Self/Storage

But we can find it under:
/redfish/v1/Systems/Self/SimpleStorage

instead.

from check_redfish.

bb-Ricardo avatar bb-Ricardo commented on June 2, 2024

Hi,

The script checks both path Storage and SimpleStorage. All I get from the SimpleStorage path is this:

{
    "@odata.context": "/redfish/v1/$metadata#SimpleStorage.SimpleStorage",
    "@odata.etag": "W/\"1620375527\"",
    "@odata.id": "/redfish/v1/Systems/Self/SimpleStorage/1",
    "@odata.type": "#SimpleStorage.v1_2_2.SimpleStorage",
    "Description": "This resource shall be used to represent a storage controller and its directly-attached devices.",
    "Devices": [
        {
            "CapacityBytes": 503424483328,
            "Model": "INTEL SSDSC2KB480G8",
            "Name": "INTEL SSDSC2KB480G8"
        }
    ],
    "Id": "1",
    "Links": {
        "Chassis": {
            "@odata.id": "/redfish/v1/Chassis/Self"
        }
    },
    "Name": "Simple Storage"
}

But since there is no id or status the script ignores it. I don't think this is helpful in any way.

Cheers
Ricardo

from check_redfish.

hpcitdude avatar hpcitdude commented on June 2, 2024

Hi,

Ok. That is to bad. Hm, so we can only check if there is a device attached or not ...

If there would have been a "status" to check for each member in SimpleStorage, would the script work then? Even though there is no controller card installed?

I will also check with Gigabyte about this.

Regards,
Pierre

from check_redfish.

bb-Ricardo avatar bb-Ricardo commented on June 2, 2024

If the output would look like this:

{
    "@odata.context": "/redfish/v1/$metadata#SimpleStorage.SimpleStorage",
    "@odata.etag": "W/\"1620375527\"",
    "@odata.id": "/redfish/v1/Systems/Self/SimpleStorage/1",
    "@odata.type": "#SimpleStorage.v1_2_2.SimpleStorage",
    "Description": "This resource shall be used to represent a storage controller and its directly-attached devices.",
    "Devices": [
        {
            "CapacityBytes": 503424483328,
            "Model": "INTEL SSDSC2KB480G8",
            "Name": "INTEL SSDSC2KB480G8",
            "Status": {
                "State": "Enabled",
                "Health": "OK"
            }
        }
    ],
    "Id": "1",
    "Links": {
        "Chassis": {
            "@odata.id": "/redfish/v1/Chassis/Self"
        }
    },
    "Status": {
        "State": "Enabled",
        "Health": "OK"
    },
    "Name": "Simple Storage"
}

The plugin would pick up the storage controller and the output would change to this:

-[UNKNOWN]: No storage controller and disk drive data found in system
+[OK]: All storage controllers (1) are in good condition (No system drives found)
+[OK]: Simple Storage status: OK
+[OK]: None INTEL SSDSC2KB480G8 INTEL SSDSC2KB480G8 (size: 503.42 GiB) status: OK

This means:

  • The simple storage needs a status and State must be Enbaled
  • Each drive needs a status and State must be Enabled

Maybe you can have a chat with the Gigabyte engineers. It would not be the prettiest output but at least something.

Cheers
Ricardo

from check_redfish.

bb-Ricardo avatar bb-Ricardo commented on June 2, 2024

can I close this issue?

from check_redfish.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.