|
From: Enric J. <en...@nm...> - 2005-03-05 13:41:48
|
Hi Jason,
I am testing 0.29, and I get this error when I invoke an operation:
Use of uninitialized value in hash element at /usr/local/lib/openwbem/perlproviders/CFG_Nagios.pl line 52.
Use of uninitialized value in hash element at /usr/local/lib/openwbem/perlproviders/CFG_Nagios.pl line 55.
Use of uninitialized value in hash element at /usr/local/lib/openwbem/perlproviders/CFG_Nagios.pl line 57.
Use of uninitialized value in hash element at /usr/local/lib/openwbem/perlproviders/CFG_Nagios.pl line 59.
I am not an expert in Perl, but the problem I see in that code is that configfile in getNagios in initialized with a null argument, as getNagios is called without arguments:
sub getNagios
{
my $configfile = shift;
...
}
...
my $nagios = main::getNagios();
...
On the other, hand I have seen in version 0.30 that getNagios is sometimes called with one or none arguments (for example lines 315 and 392) which in my opinion this is incosistent.
I don't know how to get the configfile in those calls where there is not argument. How can this be solved?
I would really appreciate your comments.
-Enric
pd. I plan to test and run your provider for a practicum in a course of network management.
pd ii. I have CC the mail to the mailing list to refresh the project activity.
|