Page 1 of 1

Problem after upgrade to R2.5

Posted: Tue Jan 27, 2015 12:03 pm
by morabanc
Hello,

We're experiencing some problems after to upgrade to last nagios xi version. We can not install new hosts and/or services. An error appears informing about an error on a services.cfg file, but this file doesn't exists!

And the import tool is not working. It seems there problems with BD.

I attach two screenshots.

Regards

Re: Problem after upgrade to R2.5

Posted: Tue Jan 27, 2015 12:10 pm
by slansing
Did you make sure to prep those config files first by following:

http://assets.nagios.com/downloads/nagi ... p-Tool.pdf

For the apply config fail, Can you attach the following script so we can take a look?:

Code: Select all

/usr/local/nagiosxi/scripts/manage_services.sh
Thanks!

Re: Problem after upgrade to R2.5

Posted: Tue Jan 27, 2015 12:17 pm
by morabanc
Yes, actually we was importing without any problem until after to upgrade..

About the script, I can't connect now to the server to execute it. I will do it tomorrow. and I well send you the result.

Regards

Re: Problem after upgrade to R2.5

Posted: Tue Jan 27, 2015 2:47 pm
by tgriep
Thanks for the update.

Re: Problem after upgrade to R2.5

Posted: Wed Jan 28, 2015 3:24 am
by morabanc
Hello,

Problem with DB was a false alarm... client was triing to import hosts and services with check_interval field in seconds....

But still have the problem when triing to apply configuration

Here the result of the script:

usr/local/nagiosxi/scripts # ./manage_services.sh checkconfig nagios
Running configuration check...
OK.

Re: Problem after upgrade to R2.5

Posted: Wed Jan 28, 2015 3:47 am
by morabanc
Another update:

It seems the problem is related with the "apply configuration" button, If I use the "Write config files" tool, writing, verifying and the restarting then it works correctly, so it seems is a specific problem when using apply configuration button in ccm.

Regards.

Re: Problem after upgrade to R2.5

Posted: Wed Jan 28, 2015 4:56 am
by Box293
At the command line type:

Code: Select all

grep manage_services /usr/local/nagiosxi/scripts/restart_nagios_with_export.sh
If the result starts with sudo, remove the "sudo" from #44 in the file:

Code: Select all

/usr/local/nagiosxi/scripts/restart_nagios_with_export.sh
Change from:

Code: Select all

sudo ./manage_services.sh restart nagios
To:

Code: Select all

./manage_services.sh restart nagios
Save and try Apply Configuration now.

Re: Problem after upgrade to R2.5

Posted: Wed Jan 28, 2015 5:33 am
by morabanc
Hello,

The result wasn't sudo at the beginning, but your solution gave me an idea... The problem was a persmission problem with manage_services.sh, it belonged to root root, so I changed it nagios nagios and it works! so problem solved.

Thanks for your support

Regards.

Re: Problem after upgrade to R2.5

Posted: Wed Jan 28, 2015 10:32 am
by slansing
Excellent, thank you for following up, we're going to lock this up now.