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

pdu-Raritan-OutletSensors the composant "onOff" seems to be wrong interpreted #348

Closed
sizeur opened this issue Feb 25, 2016 · 0 comments
Closed

Comments

@sizeur
Copy link

sizeur commented Feb 25, 2016

Hello,

I have noticed a problem with the plugin pdu-Raritan-OutletSensors, especially with the component "onOff".

The plugin seems to receive the right value but does'nt apply the right status:

./centreon_plugins.pl --plugin=hardware::pdu::raritan::snmp::plugin --mode=outlet-sensors --hostname 10.200.151.5 --snmp-version 2c --snmp-community xxx --component onOff --warning='onOff,.,0' --critical='onOff,.,1' --verbose

UNKNOWN: '1' onOff state is 'on' - '2' onOff state is 'on' - '3' onOff state is 'on' - '4' onOff state is 'on' - '5' onOff state is 'on' - '6' onOff state is 'on' - '7' onOff state is 'on' - '8' onOff state is 'on' - '9' onOff state is 'on' - '10' onOff state is 'on' - '11' onOff state is 'on' - '12' onOff state is 'on' - '13' onOff state is 'on' - '14' onOff state is 'on' - '15' onOff state is 'on' - '16' onOff state is 'on' - '17' onOff state is 'on' - '18' onOff state is 'on' - '19' onOff state is 'on' - '20' onOff state is 'on' |

Checking onOff
'1' onOff state is 'on' [instance: 1, value: 0, unit: , label: 1]
'2' onOff state is 'on' [instance: 2, value: 0, unit: , label: 2]
'3' onOff state is 'on' [instance: 3, value: 0, unit: , label: 3]
'4' onOff state is 'on' [instance: 4, value: 0, unit: , label: 4]
'5' onOff state is 'on' [instance: 5, value: 0, unit: , label: 5]
'6' onOff state is 'on' [instance: 6, value: 0, unit: , label: 6]
'7' onOff state is 'on' [instance: 7, value: 0, unit: , label: 7]
'8' onOff state is 'on' [instance: 8, value: 0, unit: , label: 8]
'9' onOff state is 'on' [instance: 9, value: 0, unit: , label: 9]
'10' onOff state is 'on' [instance: 10, value: 0, unit: , label: 10]
'11' onOff state is 'on' [instance: 11, value: 0, unit: , label: 11]
'12' onOff state is 'on' [instance: 12, value: 0, unit: , label: 12]
'13' onOff state is 'on' [instance: 13, value: 0, unit: , label: 13]
'14' onOff state is 'on' [instance: 14, value: 0, unit: , label: 14]
'15' onOff state is 'on' [instance: 15, value: 0, unit: , label: 15]
'16' onOff state is 'on' [instance: 16, value: 0, unit: , label: 16]
'17' onOff state is 'on' [instance: 17, value: 0, unit: , label: 17]
'18' onOff state is 'on' [instance: 18, value: 0, unit: , label: 18]
'19' onOff state is 'on' [instance: 19, value: 0, unit: , label: 19]
'20' onOff state is 'on' [instance: 20, value: 0, unit: , label: 20]

We have the exact same output even if we don't use the option --warning & --critical:
(./centreon_plugins.pl --plugin=hardware::pdu::raritan::snmp::plugin --mode=outlet-sensors --hostname 10.200.151.5 --snmp-version 2c --snmp-community xxx --component onOff --verbose)

For other components, the plugin seems to work differently:

./centreon_plugins.pl --plugin=hardware::pdu::raritan::snmp::plugin --mode=outlet-sensors --hostname 10.200.151.5 --snmp-version 2c --snmp-community xxx --warning='rmsVoltage,.,30' --critical='rmsVoltage,.,260' --component rmsVoltage --verbose

WARNING: '1' rmsVoltage value is 232 V - '10' rmsVoltage value is 232 V - '11' rmsVoltage value is 232 V - '12' rmsVoltage value is 232 V - '13' rmsVoltage value is 232 V - '14' rmsVoltage value is 232 V - '15' rmsVoltage value is 232 V - '16' rmsVoltage value is 232 V - '17' rmsVoltage value is 232 V - '18' rmsVoltage value is 232 V - '19' rmsVoltage value is 232 V | '1_rmsVoltage'=232V;0:30;0:260;; '2_rmsVoltage'=232V;:;:;; '3_rmsVoltage'=232V;:;:;; '4_rmsVoltage'=232V;:;:;; '5_rmsVoltage'=231V;:;:;; '6_rmsVoltage'=232V;:;:;; '7_rmsVoltage'=232V;:;:;; '8_rmsVoltage'=232V;:;:;; '9_rmsVoltage'=232V;:;:;; '10_rmsVoltage'=232V;0:30;0:260;; '11_rmsVoltage'=232V;0:30;0:260;; '12_rmsVoltage'=232V;0:30;0:260;; '13_rmsVoltage'=232V;0:30;0:260;; '14_rmsVoltage'=232V;0:30;0:260;; '15_rmsVoltage'=232V;0:30;0:260;; '16_rmsVoltage'=232V;0:30;0:260;; '17_rmsVoltage'=232V;0:30;0:260;; '18_rmsVoltage'=232V;0:30;0:260;; '19_rmsVoltage'=232V;0:30;0:260;; '20_rmsVoltage'=232V;:;:;;

Checking rmsVoltage
'1' rmsVoltage state is 'normal' [instance: 1, value: 232, unit: V, label: 1]
'2' rmsVoltage state is 'normal' [instance: 2, value: 232, unit: V, label: 2]
'3' rmsVoltage state is 'normal' [instance: 3, value: 232, unit: V, label: 3]
'4' rmsVoltage state is 'normal' [instance: 4, value: 232, unit: V, label: 4]
'5' rmsVoltage state is 'normal' [instance: 5, value: 231, unit: V, label: 5]
'6' rmsVoltage state is 'normal' [instance: 6, value: 232, unit: V, label: 6]
'7' rmsVoltage state is 'normal' [instance: 7, value: 232, unit: V, label: 7]
'8' rmsVoltage state is 'normal' [instance: 8, value: 232, unit: V, label: 8]
'9' rmsVoltage state is 'normal' [instance: 9, value: 232, unit: V, label: 9]
'10' rmsVoltage state is 'normal' [instance: 10, value: 232, unit: V, label: 10]
'11' rmsVoltage state is 'normal' [instance: 11, value: 232, unit: V, label: 11]
'12' rmsVoltage state is 'normal' [instance: 12, value: 232, unit: V, label: 12]
'13' rmsVoltage state is 'normal' [instance: 13, value: 232, unit: V, label: 13]
'14' rmsVoltage state is 'normal' [instance: 14, value: 232, unit: V, label: 14]
'15' rmsVoltage state is 'normal' [instance: 15, value: 232, unit: V, label: 15]
'16' rmsVoltage state is 'normal' [instance: 16, value: 232, unit: V, label: 16]
'17' rmsVoltage state is 'normal' [instance: 17, value: 232, unit: V, label: 17]
'18' rmsVoltage state is 'normal' [instance: 18, value: 232, unit: V, label: 18]
'19' rmsVoltage state is 'normal' [instance: 19, value: 232, unit: V, label: 19]
'20' rmsVoltage state is 'normal' [instance: 20, value: 232, unit: V, label: 20]

Thank you,

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

No branches or pull requests

1 participant