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

network::brocade::snmp::plugin missing argument line 168 #2843

Closed
gbin2265 opened this issue Jun 2, 2021 · 3 comments
Closed

network::brocade::snmp::plugin missing argument line 168 #2843

gbin2265 opened this issue Jun 2, 2021 · 3 comments
Labels

Comments

@gbin2265
Copy link

gbin2265 commented Jun 2, 2021

hello,

I have the following error message for the plugin network::brocade::snmp::plugin , mode hardware.

Missing argument in sprintf at network/brocade/snmp/mode/hardware.pm line 168.

Line 168:
$self->{output}->output_add(severity => $exit,
short_msg => sprintf("%s sensor '%s' status is '%s'", $result->{swSensorType}, $result->{swSensorInfo}));

I think argument 3 is not there !?

See here the output :

centreon_plugins.pl --plugin="network::brocade::snmp::plugin" --mode="hardware" --snmp-community="public" --filter-uom="(none)" --hostname= xxx.xxx.xxx.xxx

Missing argument in sprintf at /dstpol/icinga2/config_plugin_external/gpi/gpi_plugin_centreon/network/brocade/snmp/mode/hardware.pm line 168.
CRITICAL: power-supply sensor 'Power Supply #2' status is '' | 'sensor_SLOT #0: TEMP #1'=24;;;; 'sensor_SLOT #0: TEMP #2'=8;;;; 'sensor_SLOT #0: TEMP #3'=15;;;; 'sensor_FAN #1'=4821;;;; 'sensor_FAN #2'=4560;;;; 'sensor_FAN #3'=4687;;;; 'count_sensor'=8;;;; 'count_switch'=1;;;;

regards,
Geert

@Sims24 Sims24 added the bug label Jun 2, 2021
@Sims24
Copy link
Contributor

Sims24 commented Jun 2, 2021

Hey @gbin2265

Thanks for tracking this one.

Indeed, I guess that if you add $result->{swSensorStatus} it will output what you want right?

            $self->{output}->output_add(severity => $exit,
                                        short_msg => sprintf("%s sensor '%s' status is '%s'", $result->{swSensorType}, $result->{swSensorInfo}, $result->{swSensorStatus}));

Simon

@gbin2265
Copy link
Author

gbin2265 commented Jun 2, 2021

Simon,

thank you for the quick response and solution.

manually modified and tested and it works!

regards,
Geert

@garnier-quentin
Copy link
Contributor

Fixed in last version.

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

No branches or pull requests

3 participants