Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/<redacted>msd1.ems.local.cfg', starting on line 223)
^ I have tried completely removing this host and Service(s) and still get this error; I also checked line 223 (and all lines before/after) and noted that it has a host/service_description for each service line.
I have also reverted snapshots to the point just after nagios was upgraded. Prior to the error above I was getting the old duplicate time period problem I experienced after an upgrade in 2013. - Working with support we did some database scripting to change time periods on many hosts. Please also note that I have never manually changed anything in this deployment; all edits were done via the XI interface/Core Config Manager.
[root@PinnNagios ~]# /usr/local/nagiosxi/scripts/reconfigure_nagios.sh
/usr/local/nagiosxi/scripts/reconfigure_nagios.sh: line 17: ./import_nagiosql.sh: No such file or directory
I might have been a bit hasty in my response yesterday.
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh
TwitsBlog Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&username=nagiosxi&password=5u4n0l' -O nagiosql.loginLOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL: http://localhost/nagiosxi/includes/components/ccm/
Array
(
)
RESETTING PERMS
SETUID ROOT OK
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&username=nagiosxi&password=5u4n0l' -O nagiosql.loginLOGIN SUCCESSFUL!
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'cmd=apply&type=<red>iteConfig' -O nagiosql.export.monitoring
<red>ITE CONFIGS SUCCESSFUL!
OUTPUT:
Nagios Core 4.0.8
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-12-2014
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Warning: use_embedded_perl_implicitly is deprecated and will be removed.
Warning: sleep_time is deprecated and will be removed.
Warning: p1_file is deprecated and will be removed.
Warning: external_command_buffer_slots is deprecated and will be removed. All commands are always processed upon arrival
Warning: enable_embedded_perl is deprecated and will be removed.
Warning: command_check_interval is deprecated and will be removed. Commands are always handled on arrival
Read main config file okay...
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in host type objects (config file '/usr/local/nagios/etc/hosttemplates.cfg', starting at line 16)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in host type objects (config file '/usr/local/nagios/etc/hosttemplates.cfg', starting at line 145)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in service type objects (config file '/usr/local/nagios/etc/servicetemplates.cfg', starting at line 33)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in service type objects (config file '/usr/local/nagios/etc/servicetemplates.cfg', starting at line 136)
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Warning: Service 'HTTP' on host '<red>Nagios' has no check time period defined!
Warning: Service 'HTTP' on host '<red>Nagios' has no notification time period defined!
Warning: Service 'NRPE' on host '<red>Nagios' has no check time period defined!
Warning: Service 'NRPE' on host '<red>Nagios' has no notification time period defined!
Warning: Service 'Ping' on host '<red>Nagios' has no check time period defined!
Warning: Service 'Ping' on host '<red>Nagios' has no notification time period defined!
Warning: Service 'SSH' on host '<red>Nagios' has no check time period defined!
Warning: Service 'SSH' on host '<red>Nagios' has no notification time period defined!
Warning: Service 'Current Load' on host 'localhost' has no check time period defined!
Warning: Service 'Current Users' on host 'localhost' has no check time period defined!
Warning: Service 'HTTP' on host 'localhost' has no check time period defined!
Warning: Service 'PING' on host 'localhost' has no check time period defined!
Warning: Service 'Root Partition' on host 'localhost' has no check time period defined!
Warning: Service 'SSH' on host 'localhost' has no check time period defined!
Warning: Service 'Swap Usage' on host 'localhost' has no check time period defined!
Warning: Service 'Total Processes' on host 'localhost' has no check time period defined!
Warning: Service 'CPU Usage' on host 'mail.<red>local' has no check time period defined!
Warning: Service 'CPU Usage' on host 'mail.<red>local' has no notification time period defined!
Warning: Service 'Drive C: Disk Usage' on host 'mail.<red>local' has no check time period defined!
Warning: Service 'Drive C: Disk Usage' on host 'mail.<red>local' has no notification time period defined!
Warning: Service 'Memory Usage' on host 'mail.<red>local' has no check time period defined!
Warning: Service 'Memory Usage' on host 'mail.<red>local' has no notification time period defined!
Checked 850 services.
Warning: Host '<red><red>k8.<red>local' has no default contacts or contactgroups defined!
Checked 110 hosts.
Checked 5 host groups.
Checked 3 service groups.
Warning: Contact 'Security Team Pager' has no service notification time period defined!
Warning: Contact 'Security Team Pager' has no host notification time period defined!
Checked 15 contacts.
Checked 5 contact groups.
Checked 109 commands.
Checked 17 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 110 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 17 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 600
Total Errors: 0
Things look okay - No serious probl<red>were detected during the pre-flight check
RET: 0
I deleted some of the warnings - it exceeded the forum character limit.
su - nagios
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh
TwitsBlog Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.