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!
Errors importing cfg files into Nagios XI
Re: Errors importing cfg files into Nagios XI
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
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.
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
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
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.
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
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:
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.
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-5Re: Errors importing cfg files into Nagios XI
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,
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
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.
This is just a work around, but it is working so far.
Re: Errors importing cfg files into Nagios XI
Okay, I will still if maybe that won't work for me too
Thanks,
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
You definately need to make sure the templates you are using are imported BEFORE importing their hosts/service definitions.