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. |
From: dams <da...@tu...> - 2005-03-06 14:29:00
|
Hi, it seems the config4gnu project is not really active. If you fail achieving what you want to do with it, you might want to look at libconf (libconf.net), especially the slides of FOSDEM 2005. best regards, dams Enric Jaen wrote: >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. > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Config4gnu-developer mailing list >Con...@li... >https://lists.sourceforge.net/lists/listinfo/config4gnu-developer > > |
From: Enric J. <en...@nm...> - 2005-03-06 21:35:45
|
Thank you Dams, but what I look is a wbem solution. I looked at your slides and seems that libconf is not wbem oriented.. Best regards, -Enric On Sun, 6 Mar 2005, dams wrote: > Hi, > > it seems the config4gnu project is not really active. If you fail > achieving what you want to do with it, you might want to look at libconf > (libconf.net), especially the slides of FOSDEM 2005. > > best regards, > dams > > Enric Jaen wrote: > > >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. > > > > > > > >------------------------------------------------------- > >SF email is sponsored by - The IT Product Guide > >Read honest & candid reviews on hundreds of IT Products from real users. > >Discover which products truly live up to the hype. Start reading now. > >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > >_______________________________________________ > >Config4gnu-developer mailing list > >Con...@li... > >https://lists.sourceforge.net/lists/listinfo/config4gnu-developer > > > > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Config4gnu-developer mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/config4gnu-developer > > |
From: Justin Y. <ju...@ya...> - 2005-03-06 23:26:50
|
Enric, I don't have a direct answer for you since Jason has been doing most of the stuff related to WBEM, but I am fairly sure he'll respond to your question. Just thought I'd let you know. Justin On Sun, 6 Mar 2005 22:25:31 +0100 (CET) Enric Jaen <en...@nm...> wrote: > Thank you Dams, but what I look is a wbem solution. I looked at your > slides and seems that libconf is not wbem oriented.. Best regards, > -Enric > > > On Sun, 6 Mar 2005, dams wrote: > > > Hi, > > > > it seems the config4gnu project is not really active. If you fail > > achieving what you want to do with it, you might want to look at > > libconf(libconf.net), especially the slides of FOSDEM 2005. > > > > best regards, > > dams > > > > Enric Jaen wrote: > > > > >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. > > > > > > > > > > > >------------------------------------------------------- > > >SF email is sponsored by - The IT Product Guide > > >Read honest & candid reviews on hundreds of IT Products from real > > >users. Discover which products truly live up to the hype. Start > > >reading now. > > >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click___________ > > >____________________________________ Config4gnu-developer mailing > > >list Con...@li... > > >https://lists.sourceforge.net/lists/listinfo/config4gnu-developer > > > > > > > > > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from real > > users. Discover which products truly live up to the hype. Start > > reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > > _______________________________________________ > > Config4gnu-developer mailing list > > Con...@li... > > https://lists.sourceforge.net/lists/listinfo/config4gnu-developer > > > > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real > users. Discover which products truly live up to the hype. Start > reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Config4gnu-developer mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/config4gnu-developer > > -- Justin Yackoski http://justin.yackoski.name |
From: Jason L. <ja...@lo...> - 2005-03-07 12:14:21
|
Enric Jaen wrote: >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: > > >I don't know how to get the configfile in those calls where there is not argument. How can this be solved? > > getNagios() should always be called with a path to the nagios.cfg config file. Cases where you see it without an argument are old code and can be considered bugs. I see the places that this happens are in enumInstances handlers. Since no Nagios instance is specified, you'll need to iterate through all possible Nagios instances... something like foreach my $configfile (grep(-f $_, @CONFIG_FILES)) { my $nagios = main::getNagios($configfile); # enum instances for this Nagios # ... } >pd ii. I have CC the mail to the mailing list to refresh the project activity. > > That's good... it's been ages since I've sent out a status update or posted a news item... perhaps this will motivate me to do that... Jason |