Errors after deleting Services and then Hosts ...
Posted: Thu Oct 23, 2014 8:55 am
Hello:
We are running Nagios XI 2014R1.5.
1). I'm starting fresh and have deleted all my Services, Apply Configuration, and then Write Config files:
Write, Verify, and Restart
and then deleted all my Hosts, Apply Configuration, and then Write Config files:
Write, Verify, and Restart
2). I went into Configure - Advanced Configuration - Tools - Write Config Files - Delete (Delete All Host/Service Configuration Files):
"Successfully deleted all Host / Service Config Files"
3). I clicked "Restart" and received:
"RESTART FAILED. CONFIG ERROR:
Error: Could not find any host matching 'localhost' (config file '/usr/local/nagios/etc/hostgroups.cfg', starting on line 37)
Error: Could not expand members specified in hostgroup (config file '/usr/local/nagios/etc/hostgroups.cfg', starting on line 37)
"
4). I noted the red asterisk to the left of Quick Tools - "Apply Configuration", and clicked on that.
5). I received the error message:
" Command submitted for processing...
Waiting for configuration verification........
Configuration verification failed.
"
6). I clicked on "Show config changes" and the following appeared:
"Write host configurations ...
***MY NOTE: There are over 200 of these which were my Hosts before deletion***
WARNING! Ghost host config detected! Removing the file <Host DNS Name>.cfg"
Host configuration files successfully written!
.
.
Write service configurations ...
***MY NOTE: There are 6 of these***
WARNING! Ghost service config detected! Removing the file <Host DNS Name>.cfg
Service configuration files successfully written!
Configuration file: hostgroups.cfg successfully written!
Configuration file: servicegroups.cfg successfully written!
Configuration file: hosttemplates.cfg successfully written!
Configuration file: servicetemplates.cfg successfully written!
Configuration file: timeperiods.cfg successfully written!
Configuration file: commands.cfg successfully written!
Configuration file: contacts.cfg successfully written!
Configuration file: contactgroups.cfg successfully written!
Configuration file: contacttemplates.cfg successfully written!
Configuration file: servicedependencies.cfg successfully written!
Configuration file: hostdependencies.cfg successfully written!
Configuration file: serviceescalations.cfg successfully written!
Configuration file: hostescalations.cfg successfully written!
Configuration file: serviceextinfo.cfg successfully written!
Configuration file: hostextinfo.cfg successfully written!
Error: There are no services defined!
Error: There are no hosts defined!
Please assist so I can get this working properly! Thank you.
We are running Nagios XI 2014R1.5.
1). I'm starting fresh and have deleted all my Services, Apply Configuration, and then Write Config files:
Write, Verify, and Restart
and then deleted all my Hosts, Apply Configuration, and then Write Config files:
Write, Verify, and Restart
2). I went into Configure - Advanced Configuration - Tools - Write Config Files - Delete (Delete All Host/Service Configuration Files):
"Successfully deleted all Host / Service Config Files"
3). I clicked "Restart" and received:
"RESTART FAILED. CONFIG ERROR:
Error: Could not find any host matching 'localhost' (config file '/usr/local/nagios/etc/hostgroups.cfg', starting on line 37)
Error: Could not expand members specified in hostgroup (config file '/usr/local/nagios/etc/hostgroups.cfg', starting on line 37)
"
4). I noted the red asterisk to the left of Quick Tools - "Apply Configuration", and clicked on that.
5). I received the error message:
" Command submitted for processing...
Waiting for configuration verification........
Configuration verification failed.
"
6). I clicked on "Show config changes" and the following appeared:
"Write host configurations ...
***MY NOTE: There are over 200 of these which were my Hosts before deletion***
WARNING! Ghost host config detected! Removing the file <Host DNS Name>.cfg"
Host configuration files successfully written!
.
.
Write service configurations ...
***MY NOTE: There are 6 of these***
WARNING! Ghost service config detected! Removing the file <Host DNS Name>.cfg
Service configuration files successfully written!
Configuration file: hostgroups.cfg successfully written!
Configuration file: servicegroups.cfg successfully written!
Configuration file: hosttemplates.cfg successfully written!
Configuration file: servicetemplates.cfg successfully written!
Configuration file: timeperiods.cfg successfully written!
Configuration file: commands.cfg successfully written!
Configuration file: contacts.cfg successfully written!
Configuration file: contactgroups.cfg successfully written!
Configuration file: contacttemplates.cfg successfully written!
Configuration file: servicedependencies.cfg successfully written!
Configuration file: hostdependencies.cfg successfully written!
Configuration file: serviceescalations.cfg successfully written!
Configuration file: hostescalations.cfg successfully written!
Configuration file: serviceextinfo.cfg successfully written!
Configuration file: hostextinfo.cfg successfully written!
Error: There are no services defined!
Error: There are no hosts defined!
Please assist so I can get this working properly! Thank you.