Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin(hardware::pdu::raritan::snmp): fix sensors state for PDU > 4.x when an outlet sensor is off #5397

Draft
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

itoussies
Copy link
Contributor

@itoussies itoussies commented Jan 21, 2025

Refs: CTOR-1082

Centreon team (internal PR)

Description

Since Raritan PDU > to 4.x, the powerFactor value is missing when:

  • the outlet sensors is off
  • the outlet sensors is not drawing any power

This is causing the plugin to return an unknown status.
The fix here is to update for an instance the powerFactor state to absent (state name still TDB) when its onOff state is equal to off OR if its activePower value is equal to 0 when its onOff is equal to on.

Type of change

  • Patch fixing an issue (non-breaking change)
  • New functionality (non-breaking change)
  • Functionality enhancement or optimization (non-breaking change)
  • Breaking change (patch or feature) that might cause side effects breaking part of the Software

Fix powerFactor output when the sensor is off

Refs: CTOR-1082
Refs: CTOR-1082
Fix powerFactor output when the sensor is off

Refs: CTOR-1082
@itoussies itoussies marked this pull request as draft January 22, 2025 16:43
Fix powerFactor output when the sensor is off

Refs: CTOR-1082
Refs: CTOR-1082
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant