centreon / nagiosToCentreon

Import your nagios config files into Centreon DB... And it rocks !
Apache License 2.0
9 stars 13 forks source link

Use of uninitialized value $name in exists at ../Nagios/Object/Config.pm #9

Closed btassite closed 8 years ago

btassite commented 8 years ago

I get 9 of these lines (right before the errors in issue #6 an #7):

Use of uninitialized value $name in exists at /usr/local/share/perl/5.20.2/Nagios/Object/Config.pm line 367.

lpinsivy commented 8 years ago

Hi btassite,

I never seen this issue. I need a complete Nagios configuration to perform tests.

Can you send my your by MP to reproduce issue ? Your configuration will be used only for debug.

Regards,

lpinsivy commented 8 years ago

Hi, you can use thi patch

--- /usr/local/share/perl5/Nagios/Object/Config.pm.orig 2016-02-01 09:54:12.926460291 +0000 +++ /usr/local/share/perl5/Nagios/Object/Config.pm 2016-02-01 13:22:03.047330943 +0000 @@ -364,7 +364,7 @@

 if ( $type && $type =~ /^Nagios::(.*)/ ) {
     my $index_type = lc($1) . '_index';