Page 1 of 1

trial import errors

Posted: Wed Nov 16, 2011 4:34 pm
by jfurukawa
I am looking to upgrade our old nagios. On a test setup, I configured a minimal CentOS 6 and went through the nagiosxi installation. Everything went fine.

For the next step, I tried to import the configuration from our old nagios 1.x. After no success importing everything (I got errors applying the configuration), I deleted everything and decided to import the components one by one starting with the commands, contacts, contact groups, etc. I ran into problems with the hostgroup.cfg files and couple of other stuff, but managed to muddle my way through and able to successfully apply the configuration until I got to the services. There are really only about 50 different types of services that we monitor. In all, I am trying to import about 1100 total services for about 300 hosts. I cannot successfully apply a configuration if I import all the services for all the hosts.

I ran the import conversion scripts and have been able to successfully create the individual service files for each of the hosts. I started importing the services files for the hosts in groups of 5-10. I *think* I have been able to narrow my problem down to the number of services I can import. At about service #669 I am able to successfully apply services, anything more, it craps out. Funny thing is, there are no errors in the snapshots and I can't find anything anywhere to indicate what is causing the problems. The error I receive is "Configurations failed to write to file" when applying the configuration.

I emailed Nagios and asked if there were any limits on the services, and they responded that "The trial version is an Unlimited Node license". A little unclear as to what a "Node" is and how it really pertains to my question about services, but they redirected me here.

Does anyone have any idea as to why I can't import anything more or where I can look (log files or something) to see where the problems are?

Thanks to anyone that can help or give me a little direction.

Re: trial import errors

Posted: Wed Nov 16, 2011 5:34 pm
by lmiltchev
With the "Unlimited Node license" you shouldn't have any limits on the services. Most probably there are some errors in your configuration. Nagios cannot start or restart with a bad configuration. Please, review our documentation on the topic here:

http://support.nagios.com/wiki/index.ph ... leshooting

Try using the Write Config Tool and see what kind of errors you will get. See this document:

http://assets.nagios.com/downloads/nagi ... tabase.pdf

Re: trial import errors

Posted: Mon Nov 21, 2011 5:06 pm
by jfurukawa
In case anyone is interested, it was not bad configurations as I tried to explain. The Write Config Tool wasn't any help either.

However, even though the error was not descriptive or lead me in the right direction, I did manage to find that it was a timeout error because of the number of services we have.

See http://support.nagios.com/wiki/index.ph ... _Completes

Thanks for trying.