I've installed Nconf 1.3.0 to CentOS 6.2 (compiled from source code), imported commands.cfg contactgroups.cfg contacts.cfg hostextinfo.cfg hostgroups.cfg hosts.cfg templates.cfg timeperiods.cfg.
But for services.cfg I have a trouble:
Code: Select all
$ ./add_items_from_nagios.pl -c service -f /usr/local/nagios/etc/objects/services.cfg -s [ Initializing NConf perl-API (library version 0.3, written by A. Gargiulo) ] [ Copyright (c) 2006 - 2012 Sunrise Communications AG, Zurich, Switzerland ] [INFO] Running in simulation mode. No modifications will be made to the database! [INFO] Started executing ./add_items_from_nagios.pl [ERROR] Could not locate 'host_name' attr for service (starting at line 13). Aborting.
Here is my services.cfg http://pastebin.ru/5eW8M0dP
Here is output for ./add_items_from_nagios.pl -c service -f /usr/local/nagios/etc/objects/services.cfg -s -x5 http://pastebin.ru/5eW8M0dP