After Migration Issues

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rdhall01
Posts: 87
Joined: Wed Nov 09, 2011 9:53 am

After Migration Issues

Post by rdhall01 »

After migrating to Nagios XI 2014R1.0
I tried to make some service threshold changes and the a[[;y changes. NO lUck , but beofre the migration I did do a verification on the config files and there were no issues at that time.

When I run the
Check configuration files:

I get the following

Nagios Core 4.0.5
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 04-11-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 14)
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 225)
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 14)
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 228)
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/vml084.cfg', starting on line 14)
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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: After Migration Issues

Post by abrist »

Can you post the file: /usr/local/nagios/etc/services/vml084.cfg ?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
rdhall01
Posts: 87
Joined: Wed Nov 09, 2011 9:53 am

Re: After Migration Issues

Post by rdhall01 »

###############################################################################
#
# Service configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date: 2014-05-13 14:27:19
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################

define service {
service_description Ping
use xiwizard_genericnetdevice_ping_service
check_command check-host-alive!!!!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
notification_interval 60
notification_period 24x7
notification_options w,u,r,c
notifications_enabled 1
contact_groups ESX_Admins
_xiwizard genericnetdevice
register 1
}

###############################################################################
#
# Service configuration file
#
# END OF FILE
#
###############################################################################
~
~
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: After Migration Issues

Post by slansing »

Looks like the verification was right, this is likely a ghost service since as you can see there is no Host assigned to it. I'd check the CCM and see if this service actually exists there. Look for the "Ping" service under the "vml084" host. If either or neither exist, remove this configuration file from Nagios with:

Code: Select all

rm -f /usr/local/nagios/etc/services/vml084.cfg
And run the upgrade script again.

Source: http://support.nagios.com/wiki/index.ph ... t_Hosts.29
Locked