Applying Configuration Issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
brandon.pal
Posts: 129
Joined: Wed Feb 19, 2014 10:18 pm

Applying Configuration Issue

Post by brandon.pal »

I've just tried to update my config and am getting a xi varfication error. When I view the error I get:
Nagios Core 4.0.6
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 04-29-2014
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/FTP.cfg', starting on line 44)
Error processing object config files!


***> One or more problems was encountered while processing the config files...

Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.

When I run /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfv I get:
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: Duplicate definition found for service 'Fans' on host 'EQL-ARY-Stack' (config file '/usr/local/nagios/etc/services/EQL-ARY-Stack.cfg', starting on line 78)
Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
Checked 1041 services.
Checked 89 hosts.
Checked 26 host groups.
Checked 15 service groups.
Checked 9 contacts.
Checked 5 contact groups.
Checked 132 commands.
Checked 14 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 89 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 14 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
Now the original error shows an issue on line 44. Here is those definition:

Code: Select all

define service {
        host_name                       dc01-ftp-03
        service_description             ftp-03 - FTPS List
        use                             xiwizard_nrpe_service
        servicegroups                   FTP
        check_command                   check_ftps!test!vfm11test!21!dc01-ftp-03.prod-cloud.com!!!!
        max_check_attempts              3
        check_interval                  5
        retry_interval                  1
        check_period                    xi_timeperiod_24x7
        notification_interval           60
        notification_period             xi_timeperiod_24x7
        contacts                        nagiosadmin
        _xiwizard                       linux-server
        register                        1
        }
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Applying Configuration Issue

Post by Box293 »

brandon.pal wrote:Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/FTP.cfg', starting on line 44)
When in CCM, do you have a service called FTP? Does this service have hosts assigned to it or a description?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
brandon.pal
Posts: 129
Joined: Wed Feb 19, 2014 10:18 pm

Re: Applying Configuration Issue

Post by brandon.pal »

Weird it was missing hosts. It used to have a host :/

But it worked now.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Applying Configuration Issue

Post by tmcdonald »

It is worth noting that Nagios XI may report different errors than a nagios -v command will, because XI does not write out the flat files if there is an error. In theory there should never be errors with nagios -v (while using the CCM), but bugs do crop up and can cause this behavior.

Good to see it is working though. I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee
Locked