centreon / nagiosToCentreon

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

Can't locate object method "members" via package "allhosts" #32

Closed pepitomuler closed 7 years ago

pepitomuler commented 7 years ago

Can't locate object method "members" via package "allhosts" (perhaps you forgot to load "allhosts"?) at nagios_reader_to_centreon_clapi.pl line 381.

The hosts and the services ar not exported in the txt file, it's stop after Host Templates

tsingletonacic commented 7 years ago

Not a solution to the issue, but I found a workaround by commenting the "all" hostgroup definition

pepitomuler commented 7 years ago

Where do you comment the "all" hostgroup definition ? In the nagios .cfg files ?

tsingletonacic commented 7 years ago

Yes, I commented in the nagios file prior to running the convert tool

pepitomuler commented 7 years ago

Could you tell me wich cfg file ? I do not find it

tsingletonacic commented 7 years ago

Sure, My version of nagios is quite old, but I commented these lines : define hostgroup { hostgroup_name all alias All Servers members * }

in the file /etc/nagios2/conf.d/hostgroups_nagios2.cfg

Best

pepitomuler commented 7 years ago

Yes it works ! Thanks a lot