Import nagios cfg

Support requests, bug reports, questions etc.

Import nagios cfg

Postby Tomatos » Tue Apr 03, 2012 14:20

Hello! Sorry for my bad english :-(
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.

I have no idea why i got this error. I have host_name attribute in my services.cfg

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
Tomatos
starter
starter
 
Posts: 3
Joined: Tue Apr 03, 2012 14:07
Location: Russia, Moscow

Re: Import nagios cfg

Postby Tomatos » Wed Apr 04, 2012 11:54

I could not find anything similar on the forum or in Google.
Tomatos
starter
starter
 
Posts: 3
Joined: Tue Apr 03, 2012 14:07
Location: Russia, Moscow

Re: Import nagios cfg

Postby Tomatos » Fri Apr 13, 2012 16:08

I've solved this problem. There are two different classes "Services" for hosts and "Advanced services" for hostgroups.
I think you may close this thread.
Tomatos
starter
starter
 
Posts: 3
Joined: Tue Apr 03, 2012 14:07
Location: Russia, Moscow


Return to Support (NConf 1.3.0)

Who is online

Users browsing this forum: No registered users and 2 guests

cron