Configuration problems

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Bitflogger
Posts: 226
Joined: Mon Oct 16, 2017 9:24 am

Configuration problems

Post 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
Bitflogger
Posts: 226
Joined: Mon Oct 16, 2017 9:24 am

Re: Configuration problems

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

Re: Configuration problems

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked