Hello,
I'm running Centreon and trying to use the plugin hardware::hds::csu::rest::plugin
(internally developed but issue is not related to the plugin) to monitor an HDS storage system via REST. However, I'm getting the following error when executing the plugin manually:
UNKNOWN: Can't call method "add_options" on an undefined value at /usr/lib/centreon/plugins/centreon-plugins/src/centreon/plugins/http.pm line 32.
Here's the command I'm running:
perl /usr/lib/centreon/plugins/centreon-plugins/src/centreon_plugins.pl \
--plugin=hardware::hds::csu::rest::plugin \
--mode=alerts \
--custommode=api \
--hostname=xxxxxx \
--username='localhost\xxxxx' \
--password='xxxx' \
--csuid='4c4c4544-0046-4210-8033-b8c04f335732' \
--ssl-opt='SSL_verify_mode => SSL_VERIFY_NONE'
Additional notes:
-
All required Perl packages (e.g.
perl-libwww-perl
,perl-LWP-Protocol-https
, etc.) are installed. -
Basic plugin tests like
check_ping
orcheck_memory
work fine using the same Perl binary and environment. -
This issue seems specific to the
http.pm
module inside Centreon plugins.
Any idea what might be causing $self->{options}
to be undefined in this context? Is there something missing in the plugin initialization for hardware::hds::csu::rest::plugin
?