Big error editing config files from Nagios 2 to Nagios 3

Dear Experts,

I need to move Nagios 2 to a new server installation nagios 3.

The server where nagios is install now needs to go away.

I made a huge mistake by pasting the config files from the nagios 2 insattlation in the nagios 3 installation.

I am getting this:

Error: Unexpected token or statement in file '/etc/nagios3/conf.d/cmpny.cfg' on line 2.
   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.

 * errors in config!

It does not like any of the config files.

The config files are a copy from the old server... ( I know a big mistake)

What will be the best plan of action for me. Reinstall Nagios 3?

We have Ubuntu server 14 by the way.
marceloNYCMiddle-Tier AdministratorAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dan CraciunIT ConsultantCommented:
Restore from the last backup/snapshot before you pasted the config files.

Nagios 2 and 3 (and 3 and 4) are very different and not backward compatible, AFAIK.
You'll need to check each config file.

BTW, any reason you're not using Nagios 4? You're starting from scratch anyway, so starting with the latest version seems like the sensible choice.

HTH,
Dan
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
marceloNYCMiddle-Tier AdministratorAuthor Commented:
I am going to move Nagios from an old server then change to Icinga 2.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.