Page 1 of 1

Configuration problems

Posted: Thu May 17, 2018 1:59 pm
by Bitflogger
Hello,

I have 905 servers, Three servers have a status of active but "Not Applied". Three other servers cannot be set to active. These servers are connected to some services. The configuration cannot be completed without error.

The error is: Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/_multiple_hosts.cfg', starting on line 167)

This corresponds to a service with two servers that have a status of "Not Applied".

define service {
host_name cidns1.doit.wisc.edu,widns1.doit.wisc.edu
service_description l_dns_forward_wiwhs
use generic-linux-service
check_command check_nrpe!proc_dns4
contact_groups storage-apps2
_support_info This check verifies that CIDNS1/WIDNS1 can forward lookup requests to wiwhs.us nameservers
register 1
}

On the command line, the command: /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Shows some duplicates and ends in:

Running pre-flight check on configuration data...

Checking objects...
Checked 15476 services.
Checked 902 hosts.
Checked 75 host groups.
Checked 6 service groups.
Checked 352 contacts.
Checked 420 contact groups.
Checked 225 commands.
Checked 74 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 902 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 74 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check

Re: Configuration problems

Posted: Thu May 17, 2018 2:49 pm
by Bitflogger
I deleted the 6 hosts form the related services, then deleted the hosts. The configuration still fails. The services I deleted the hosts from have a status of "Not Applied". The error again points to a definition that includes the deleted servers. I inactivated services that had the been related to the deleted servers, if the host count was down to zero.

The apply configuration now passes!

Re: Configuration problems

Posted: Thu May 17, 2018 4:20 pm
by scottwilkerson
Bitflogger wrote:I inactivated services that had the been related to the deleted servers, if the host count was down to zero.
This was the required part.

Glad it is sorted out