Apply Configuration Issues

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mkosmoski
Posts: 18
Joined: Wed Dec 31, 2014 11:52 am

Apply Configuration Issues

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

Re: Apply Configuration Issues

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Apply Configuration Issues

Post by scottwilkerson »

What version of XI are you running?

There was a bug fixed in 2014R2.4 that may be causing this.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mkosmoski
Posts: 18
Joined: Wed Dec 31, 2014 11:52 am

Re: Apply Configuration Issues

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Apply Configuration Issues

Post 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!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mkosmoski
Posts: 18
Joined: Wed Dec 31, 2014 11:52 am

Re: Apply Configuration Issues

Post by mkosmoski »

Will do. Thank you!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Apply Configuration Issues

Post by scottwilkerson »

going to lock topic as it has moved to customer support
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Apply Configuration Issues

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked