Page 1 of 1

Apply Configuration Issues

Posted: Tue Jan 27, 2015 6:12 pm
by mkosmoski
I am unable to post this to the customer support forum as my account appears to not have access, but we're having an issue where we can't use the Apply Configuration function in the CCM. If I delete/write/verify/restart with the Write Config Files , everything is OK. Even when I manually rerun reconfigure_nagios.sh, it comes back OK. Some of the information below was sanitized for posting:
Total Warnings: 382
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check
RET: 0
Apply Configuration returns something along the lines of
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/<config-file-name>', starting on line 121
The service at that line appears appropriately defined... and as mentioned before, it works fine when done via alternate means.
define service {
host_name <device-name>
service_description <service-name>
use generic-service
check_command <check>!<args>
initial_state u
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
register 1
}
Any ideas? Even if I disable that service, the same error appears. Even if I disable that entire host, the error still appears!

Re: Apply Configuration Issues

Posted: Wed Jan 28, 2015 11:23 am
by slansing
What version of XI are you running? You may be running into the following issue:

http://support.nagios.com/forum/viewtop ... =6&t=30917

Re: Apply Configuration Issues

Posted: Wed Jan 28, 2015 11:24 am
by scottwilkerson
What version of XI are you running?

There was a bug fixed in 2014R2.4 that may be causing this.

Re: Apply Configuration Issues

Posted: Wed Jan 28, 2015 11:39 am
by mkosmoski
It was initially installed as 2014R2.3, but was upgraded to 2014R2.4 earlier this week prior to this post. The fix listed in the link above already appears applied.

Re: Apply Configuration Issues

Posted: Wed Jan 28, 2015 2:28 pm
by scottwilkerson
Matthew,

I fixed your account to have access to customer support, however to resolve this issue can you open a ticket by sending an email to [email protected] and reference this thread as we may need to take a look at the server to speed along resolution.

Thanks!

Re: Apply Configuration Issues

Posted: Wed Jan 28, 2015 2:43 pm
by mkosmoski
Will do. Thank you!

Re: Apply Configuration Issues

Posted: Wed Jan 28, 2015 2:53 pm
by scottwilkerson
going to lock topic as it has moved to customer support

Re: Apply Configuration Issues

Posted: Wed Jan 28, 2015 4:30 pm
by scottwilkerson
Resolved in remote assist session.

Bug found for CentOS 7 system running 2014R2.4

in /usr/local/nagiosxi/scripts/restart_nagios_with_export.sh

manage_services.sh call absolutely needs sudo on line 44 for CentOS 7

Should be

Code: Select all

sudo $BASEDIR/manage_services.sh restart nagios