Skip to main content
Question

Netapp Restapi FRU error

  • January 27, 2023
  • 1 reply
  • 66 views

Forum|alt.badge.img

Hello,

We monitor netapp stockage with the Netapp Ontap Restapi.

We have an error on Hardware when all fru are not populated.

Here a part of the command return with the debug flag:

"frus": [
        {
          "type": "module",
          "id": 0,
          "state": "ok",
          "part_number": "XXXXXXXXXXX",
          "serial_number": "XXXXXXXXX",
          "firmware_version": "XXXX",
          "installed": true
        },
        {
          "type": "module",
          "id": 1,
          "state": "error",
          "installed": false
        },
        {

 

I don’t seem to be able to filter out the fru module without disabling completly the fru check with the --filter=”fru”. To disable the check on one instance, the plugin seem to check with the instance id eg: the serial_number for the fru. But with no fru installed, there’s no serial number…

 

Conclusion: to continue to monitor correctly this netapp, I have modded the script “centreon_netapp_ontap_restapi.pl” and added the line “next if not ($fru->{installed});” at line 9362.

I know that’s not a best practice to modify files that comes with a plugin pack, so I open this topic to know if it’s possible to update the plugin pack so that modification (or another that solve this problem) could be done by centreon.

Sorry for my poor english

 

 

1 reply

ltirand
Centreonian
Forum|alt.badge.img+10
  • Centreonian
  • December 9, 2024

Hello :)

Thank you very much for this feedback, we'll be able to take a closer look at the debug you've suggested and the proposed solution you've come up with :)

Best regards.