View FAQ

[ Return To FAQ Index | Search The FAQs ]


FAQ Database : Nagios : Configuration

Title:How do I convert Nagios 1.x configuration files to the Nagios 2.x format?
FAQ ID:F0407
Submitted By:Ethan Galstad 
Last Updated:04/10/2007

Description:User wants to upgrade from Nagios 1.x to Nagios 2.x and needs to upgrade their legacy/flat configuration file format to the newer template format. 

Solution:You have two options: 1. Brush up on your typing skills and recreate the config file from scratch 2. Use the handy convertcfg utility to do the work for you I would recommend the second option. If you look in the contrib/ folder of the Nagios distribution you'll see a file called convertcfg.c - that's the conversion utility. You'll need to compile it by typing "make convertcfg" before you can use it. The utility is capable of converting object config files (host and service definitions, etc.), as well as the extended information definitions in the CGI config file. Run the utility without any command-line arguments to get helpful information on how to use it.  

Related FAQs:
F0089How do I convert my NetSaint config files to work with Nagios?
Keywords:convertcfg config files nagios