The localhost was deleted. I think via Core Config Manager, by others. This issue occured yesterday, not sure what was done to cause it. This is an eval install, and my manager was working on it. Nothing was done manually to cause this. I have however, made changes to my.cnf to hopefully improve mysql performance - I have 48G RAM, had 28G unused, so I added the following:
key_buffer = 5G
myisam_sort_buffer_size = 1G
table_open_cache = 1G
sort_buffer_size = 1G
read_buffer_size = 1G
read_rnd_buffer_size = 1G
This was a fresh install on a @Base server installation. Install went fine.
Write config files -> verify produced the following:
Nagios Core 3.4.1
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 05-11-2012
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/xitest.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.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 file '/usr/local/nagios/etc/hosts/INET PEER - TWT RB.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/MP PERIM - AGG2.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/RB PERIM - AGG1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/RB PERIM - DMZ.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/RB PERIM - ISR2.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/RB PERIM - ISR1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/MP DC - CORE2.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/MP DC - CORE1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/RB WAN - BB1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/MP PERIM - AGG1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/MP WAN - BB1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/RB PERIM - AGG2.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/RB DC - CORE1.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/INET PEER - L3 MP.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/RB WAN - BB2.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/172.16.126.10.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/MP WAN - BB2.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/10.192.254.16.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/RB DC - CORE2.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/INET PEER - L3 RB.cfg'...
Processing object config directory '/usr/local/nagios/etc/services'...
Processing object config file '/usr/local/nagios/etc/services/MP PERIM - AGG2.cfg'...
Processing object config file '/usr/local/nagios/etc/services/MP PERIM - AGG1.cfg'...
Processing object config file '/usr/local/nagios/etc/services/MP WAN - BB2.cfg'...
Read object config files okay...
Running pre-flight check on configuration data...
Checking services...
Checked 3 services.
Checking hosts...
Warning: Host 'INET PEER - TWT RB' has no default contacts or contactgroups defined!
Checked 20 hosts.
Checking host groups...
Checked 0 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 6 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 12 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: 1
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
Pressed write
Write host configurations ...
Host configuration files successfully written!
Write service configurations ...
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!
-> Restart
Cofigure -> Core Config Manager -> Hosts is still blank.