Closed adhaussy closed 7 years ago
Have you fixed your error ? i have the same ?
Hi @nountevo and @ErrafayM, Can you please try the v3-sims branch that fix your problem ? Thanks.
Be advise that the --config option now needs the path to the configuration files objects directory, not the nagios.cfg.
Hello,
I have the same issue that has been fixed on contactgroups (https://github.com/centreon/nagiosToCentreon/commit/34044703a7238dc3b5e785149c3cb1747cde39b7)
But this time on contacts.
$ perl nagios_reader_to_centreon_clapi.pl -C /etc/nagios/nagios.cfg > centreon_clapi_import.txt Can't locate object method "name" via package "exploitation_suiviprod" (perhaps you forgot to load "exploitation_suiviprod"?) a t nagios_reader_to_centreon_clapi.pl line 358.
I tried to patch the same way, but i still have problems. (not sure why there's a hash in contacts??)
patch.txt
With the patch it fixes the error, but results in centreon_clapi_import.txt :
HTPL;setcontact;SAN_NAS;exploitation_suiviprod|exploitation_systeme HTPL;setcontact;Windows;exploitation_suiviprod|exploitation_systeme HOST;setcontact;3560-DMZ1;Nagios::Contact=HASH(0x1038b400)|Nagios::Contact=HASH(0x1038aea0)|Nagios::Contact=HASH(0x10392920)
Regards