-
Notifications
You must be signed in to change notification settings - Fork 18
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
incorrect fan status showing when running plugin from command line #37
Comments
Potential solutionThe issue seems to stem from a mismatch between the SNMP data interpretation in the plugin and the actual fan status as reported by the ILO interface. The solution involves ensuring that the SNMP data retrieved by the plugin accurately reflects the fan status and that the logic used to interpret this data aligns with the ILO's reporting. This can be achieved by verifying the SNMP OIDs, adjusting the logic for status interpretation, and ensuring that redundancy and custom thresholds are correctly handled. What is causing this bug?The bug is likely caused by one or more of the following issues:
CodeTo address these issues, consider the following code adjustments:
Example code snippet for adjusting status mapping: # Example adjustment in FanSubsystem.pm
sub check {
my $self = shift;
# Adjust the logic to accurately reflect fan status
if ($self->{cpqHeFltTolFanSpeed} eq 'high' && $self->{expected_condition}) {
# Adjust condition to match expected behavior
$self->set_status('OK');
} elsif ($self->{cpqHeFltTolFanSpeed} eq 'failed') {
$self->set_status('CRITICAL');
}
# Additional conditions as needed
} How to replicate the bugTo replicate the bug, follow these steps:
By following these steps, you should be able to replicate the issue and test the effectiveness of the proposed solution. Click here to create a Pull Request with the proposed solution Files used for this task: Changes on plugins-scripts/HP/Proliant/Component/FanSubsystem.pmBased on the provided code from the
Recommendations:
This analysis focuses on the logic within this file. Further investigation might be needed in other parts of the codebase, especially in how SNMP data is retrieved and processed. Changes on plugins-scripts/HP/Proliant/Component/FanSubsystem/SNMP.pmBased on the provided code, the Here are some potential causes for the discrepancy:
To address these potential issues, consider the following steps:
These steps should help identify and resolve the discrepancy between the command-line plugin output and the ILO interface. Changes on plugins-scripts/check_hpasm.plBased on the provided source code of the Analysis
Potential Causes for the Bug
Recommendations
This analysis focuses on the This comment was generated by AI. Information provided may be incorrect. Current plan usage: 8% Have feedback or need help? |
Run check_hpasm-vv to see what theilo board reports viia snmp. |
We are using check_hpasm plugin to check HP proliant hardware Monitoring, but when we run plugin from command line we are getting critical message even though in ILO there is no issue.
OMD[testworker@XXXX]:
$ /omd/plugins/check_hpasm --hostname testhost --community test --perfdata -t 600 --eventrange=1d/12h$CRITICAL - fan 3 (system) needs attention, fan 4 (system) needs attention, fan 5 (system) needs attention, fan 6 (system) needs attention, fan 7 (system) needs attention, System: 'proliant dl360 gen10', S/N: 'test', ROM: 'U32 v3.30' | pc_1=55;800;800 pc_2=28;800;800 fan_1=0% fan_2=0% fan_3=50% fan_4=50% fan_5=50% fan_6=50% fan_7=50% temp_1_ambient=21;42;42 temp_2_cpu=40;70;70 temp_6_memory=28;90;90 temp_12_system=35;60;60 temp_14_system=26;60;60 temp_15_ambient=24;60;60 temp_16_system=32;115;115 temp_18_system=27;115;115 temp_19_system=29;115;115 temp_22_system=38;100;100 temp_23_system=67;110;110 temp_24_system=39;90;90 temp_25_system=57;100;100 temp_26_system=40;85;85 temp_28_ioBoard=40;100;100 temp_29_system=31;90;90 temp_30_ioBoard=63;100;100 temp_31_ioBoard=37;90;90 temp_32_ioBoard=75;100;100 temp_33_ioBoard=33;90;90 temp_38_system=35;75;75 temp_43_powerSupply=23;100;100 temp_44_powerSupply=28;75;75
OMD[vieworker@XXXX]:
Kindly advice how to fix the issue to get the OK state in the output.
The text was updated successfully, but these errors were encountered: