Errors importing cfg files into Nagios XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Errors importing cfg files into Nagios XI

Post 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
rickwilson7425
Posts: 125
Joined: Tue Mar 18, 2014 3:20 pm

Re: Errors importing cfg files into Nagios XI

Post 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.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Errors importing cfg files into Nagios XI

Post 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)
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
rickwilson7425
Posts: 125
Joined: Tue Mar 18, 2014 3:20 pm

Re: Errors importing cfg files into Nagios XI

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Errors importing cfg files into Nagios XI

Post 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.
Siverfoot
Posts: 2
Joined: Fri Jun 13, 2014 5:51 am

Re: Errors importing cfg files into Nagios XI

Post 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,
rickwilson7425
Posts: 125
Joined: Tue Mar 18, 2014 3:20 pm

Re: Errors importing cfg files into Nagios XI

Post 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.
Siverfoot
Posts: 2
Joined: Fri Jun 13, 2014 5:51 am

Re: Errors importing cfg files into Nagios XI

Post by Siverfoot »

Okay, I will still if maybe that won't work for me too

Thanks,
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Errors importing cfg files into Nagios XI

Post by scottwilkerson »

You definately need to make sure the templates you are using are imported BEFORE importing their hosts/service definitions.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked