Apply Config fails - Import configs from Nagios 3.0.6

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
shanepainter
Posts: 2
Joined: Thu Feb 17, 2011 11:36 am

Apply Config fails - Import configs from Nagios 3.0.6

Post by shanepainter »

Hello all,

I've followed the PDFs in the Nagios Library to both prep and import my configs from 3.0.6. This went well - no errors. However, when I go and apply the configuration I recieve the following:

Processing object config file '/usr/local/nagios/etc/services/rw3-2.meq.corenap.com.cfg'...
Error: Template '' specified in contact definition could not be not found (config file '/usr/local/nagios/etc/contacts.cfg', starting on line 148)
Error processing object config files!

***> One or more problems was encountered while processing the config files...

Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.

So I checked my config files - Line 148 is the EOF for contacts.cfg and rw3-2.meq.corenap.com has a nice big warning not to edit by hand. I've removed the contacts.cfg file and tried to re-apply the config - but this file gets regenerated!?!

Any help here would be greatly appreciated. I'm down to 40 days on the demo and am trying to get all our servers/services working well as a proof of concept to get funding to purchase XI for our datacenter. Please advise - Thanks in advance!

Cheers,
-Shane
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Apply Config fails - Import configs from Nagios 3.0.6

Post by mguthrie »

Something must have slipped through the import prep tool that's an improper format or bad syntax. Its saying:
Template '' specified
-ie, template <emptystring?> was not found in this config file contacts.cfg

You'll have to actually find and fix the issue in the CCM (Core Config Manager). Then Apply the configuration. Instead of deleting the file, change or delete the config in the CCM, and then use the Write Config Tool in the CCM to see if you fixed the problem. Every time you Apply Configuration, the CCM overwrites the actual config files with the data it has in the database.

Here's a FAQ on finding configuration errors when the Apply fails.
http://support.nagios.com/wiki/index.ph ... leshooting
Locked