Failed cfg import
Posted: Mon Oct 10, 2011 1:00 pm
Hi,
I'm trying to import some cfg files that have been prepped with the nagios import tool. i've imported commands, timeperiods, and all contact information. I wanted to make sure this applied cleanly before importing host and service information. However, the configuration cannot be applied. I receive this error message: "Error: Unexpected start of object definition in file '/usr/local/nagios/etc/commands.cfg' on line 949. Make sure you close preceding objects before starting a new one.
Error processing object config files!"
When I look at any of the commands.cfg that I have, I cannot find a line 949. None of the files are that long. I gather that NagiosXI is building this file during the 'Apply Configuration' and running into problems when doing that. How do I fix this? Is there something i need to do in the db? I can't find a way to reset so I can do the import over. Using the reset scripts in nagiosxi/scripts/ leads to the same error.
Thanks,
Bryant
I'm trying to import some cfg files that have been prepped with the nagios import tool. i've imported commands, timeperiods, and all contact information. I wanted to make sure this applied cleanly before importing host and service information. However, the configuration cannot be applied. I receive this error message: "Error: Unexpected start of object definition in file '/usr/local/nagios/etc/commands.cfg' on line 949. Make sure you close preceding objects before starting a new one.
Error processing object config files!"
When I look at any of the commands.cfg that I have, I cannot find a line 949. None of the files are that long. I gather that NagiosXI is building this file during the 'Apply Configuration' and running into problems when doing that. How do I fix this? Is there something i need to do in the db? I can't find a way to reset so I can do the import over. Using the reset scripts in nagiosxi/scripts/ leads to the same error.
Thanks,
Bryant