Page 3 of 3

Re: Errors importing cfg files into Nagios XI

Posted: Mon May 05, 2014 4:57 pm
by lmiltchev
I sent you a possible "workaround" via PM. Let me know if this worked out for you.

Please, post on the forum. Let's not use PM unless we need to send sensitive info, etc. Thanks!

Re: Errors importing cfg files into Nagios XI

Posted: Tue May 06, 2014 11:31 am
by rickwilson7425
The workaround got me past that problem

Went ahead and tried to import the rest of the files.

For some reason the "generic" hosts and services defined in my original "templates.cfg" are not importing even though the import routine says it imported the file successfully. As a consequence, I am getting another error now when trying to verify the config.

The error is:

Error: Template 'generic-service-5' speError: Template 'generic-service-5' specified in service definition could not be not found (config file '/usr/local/nagios/etc/services/denichrt02p.cfg', starting on line 14)

I don't know if it is significant but the "servicetemplates.cfg" file that the import creates is empty.

Re: Errors importing cfg files into Nagios XI

Posted: Tue May 06, 2014 11:42 am
by sreinhardt
Could you pm one of us that file as well please? There are a couple of things that might make a standard core template not quite import correctly, that will be far easier if we just take a look. ( I didn't see it in the files from past PMs)

Re: Errors importing cfg files into Nagios XI

Posted: Wed May 14, 2014 8:38 am
by rickwilson7425
I sent the files a week ago so somebody could look at it and give me a clue as to what is going on but I haven't heard anything on this thread or in a PM.

Could somebody please let me know what is going on?

Also, There is a PM stuck in my Outbox since yesterday.

Re: Errors importing cfg files into Nagios XI

Posted: Wed May 14, 2014 5:00 pm
by slansing
Yeah for some reason you are having a heck of a time getting these files to prep properly, it looks like someone had tried to send you a PM but it was actually never sent.

To get passed this particular error, go to:

/usr/local/nagios/etc/services/denichrt02p.cfg

And remove the mention of that template, it should be a line that looks roughly like this:

Code: Select all

use generic-service-5
If the config was actually imported, you can change it in the Core Config Manager in XI. Then try to verify again, unfortunately we might need to track down more service templates if that file was really empty, which it sounds like it is.

Re: Errors importing cfg files into Nagios XI

Posted: Wed Jun 18, 2014 8:06 am
by Siverfoot
Hi,

Has this error been sorted? I am new to Nagios but I am receiving the same error and can't seem to find why it is giving me that error.

Any help would be great

Thanks,

Re: Errors importing cfg files into Nagios XI

Posted: Wed Jun 18, 2014 9:05 am
by rickwilson7425
I sort of fixed it by manually adding the service to the servicetemplates.cfg file.

This is just a work around, but it is working so far.

Re: Errors importing cfg files into Nagios XI

Posted: Wed Jun 18, 2014 9:51 am
by Siverfoot
Okay, I will still if maybe that won't work for me too

Thanks,

Re: Errors importing cfg files into Nagios XI

Posted: Wed Jun 18, 2014 2:42 pm
by scottwilkerson
You definately need to make sure the templates you are using are imported BEFORE importing their hosts/service definitions.