No Hosts/Services Defined

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
costanza2k1
Posts: 197
Joined: Fri Aug 09, 2013 12:19 pm

No Hosts/Services Defined

Post by costanza2k1 »

Hello all I just got done following procedures to delete 'ghost host's and keep running into this error when trying to verify the file:

Code: Select all

Error: There are no services defined! 
Error: There are no hosts defined! 

Nagios Core 3.5.0 
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors 
Copyright (c) 1999-2009 Ethan Galstad 
Last Modified: 03-15-2013 
License: GPL 

Website: http://www.nagios.org 
Reading configuration data... 
Read main config file okay... 
Processing object config directory '/usr/local/nagios/etc/static'... 
Processing object config file '/usr/local/nagios/etc/static/xiobjects.cfg'... 
Processing object config file '/usr/local/nagios/etc/static/xitemplates.cfg'... 
Processing object config file '/usr/local/nagios/etc/static/xitest.cfg'... 
Processing object config file '/usr/local/nagios/etc/contacttemplates.cfg'... 
Processing object config file '/usr/local/nagios/etc/contactgroups.cfg'... 
Processing object config file '/usr/local/nagios/etc/contacts.cfg'... 
Processing object config file '/usr/local/nagios/etc/timeperiods.cfg'... 
Processing object config file '/usr/local/nagios/etc/commands.cfg'... 
Processing object config file '/usr/local/nagios/etc/hostgroups.cfg'... 
Processing object config file '/usr/local/nagios/etc/servicegroups.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosttemplates.cfg'... 
Processing object config file '/usr/local/nagios/etc/servicetemplates.cfg'... 
Processing object config file '/usr/local/nagios/etc/servicedependencies.cfg'... 
Processing object config file '/usr/local/nagios/etc/serviceescalations.cfg'... 
Processing object config file '/usr/local/nagios/etc/hostdependencies.cfg'... 
Processing object config file '/usr/local/nagios/etc/hostescalations.cfg'... 
Processing object config file '/usr/local/nagios/etc/hostextinfo.cfg'... 
Processing object config file '/usr/local/nagios/etc/serviceextinfo.cfg'... 
Processing object config directory '/usr/local/nagios/etc/hosts'... 
Processing object config directory '/usr/local/nagios/etc/services'... 
Read object config files okay... 

Running pre-flight check on configuration data... 

Checking services... 
Error: There are no services defined! 
Checked 0 services. 
Checking hosts... 
Error: There are no hosts defined! 
Checked 0 hosts. 
Checking host groups... 
Checked 1 host groups. 
Checking service groups... 
Checked 0 service groups. 
Checking contacts... 
Checked 2 contacts. 
Checking contact groups... 
Checked 2 contact groups. 
Checking service escalations... 
Checked 0 service escalations. 
Checking service dependencies... 
Checked 0 service dependencies. 
Checking host escalations... 
Checked 0 host escalations. 
Checking host dependencies... 
Checked 0 host dependencies. 
Checking commands... 
Checked 108 commands. 
Checking time periods... 
Checked 9 time periods. 
Checking for circular paths between hosts... 
Checking for circular host and service dependencies... 
Checking global event handlers... 
Checking obsessive compulsive processor commands... 
Checking misc settings... 

Total Warnings: 0 
Total Errors: 2 

***> One or more problems was encountered while running the pre-flight check... 

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. 
I'm hoping someone can help me...I'm basically trying to get rid of all hosts and services and start from scratch...hopefully someone can help.

I'm running the latest version of Nagios XI on RHEL
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: No Hosts/Services Defined

Post by scottwilkerson »

costanza2k1 wrote:I'm basically trying to get rid of all hosts and services and start from scratch...hopefully someone can help.
It looks like you were successful
costanza2k1 wrote:Error: There are no services defined!
Error: There are no hosts defined!
But in order for Nagios to run you need to have at least 1 host and 1 service defined
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
costanza2k1
Posts: 197
Joined: Fri Aug 09, 2013 12:19 pm

Re: No Hosts/Services Defined

Post by costanza2k1 »

scottwilkerson wrote:
costanza2k1 wrote:I'm basically trying to get rid of all hosts and services and start from scratch...hopefully someone can help.
It looks like you were successful
costanza2k1 wrote:Error: There are no services defined!
Error: There are no hosts defined!
But in order for Nagios to run you need to have at least 1 host and 1 service defined
Thanks Scott! I got that figured out on Friday :D So far so good, thanks for the reply.
Locked