Problem after upgrade to R2.5

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Problem after upgrade to R2.5

Post 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
You do not have the required permissions to view the files attached to this post.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Problem after upgrade to R2.5

Post 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!
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Re: Problem after upgrade to R2.5

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Problem after upgrade to R2.5

Post by tgriep »

Thanks for the update.
Be sure to check out our Knowledgebase for helpful articles and solutions!
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Re: Problem after upgrade to R2.5

Post 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.
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Re: Problem after upgrade to R2.5

Post 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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Problem after upgrade to R2.5

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Re: Problem after upgrade to R2.5

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Problem after upgrade to R2.5

Post by slansing »

Excellent, thank you for following up, we're going to lock this up now.
Locked