Error: Service escalation host name or description is NULL

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
davide.bonicelli
Posts: 134
Joined: Thu Feb 13, 2014 5:12 am

Error: Service escalation host name or description is NULL

Post by davide.bonicelli »

Hi, in NagiosXI 5.5.8 on a Centos 6.10 i've this error when i try to apply configuration:

Code: Select all

Write host configurations ...
Host configuration files successfully written!

Write service configurations ...
WARNING! Ghost service config detected! Removing the file Lexmark Helpcenter.vecchio.cfg
WARNING! Ghost service config detected! Removing the file cookie.txt.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: Service escalation host name or description is NULL
Error: Could not register service escalation (config file '/usr/local/nagios/etc/serviceescalations.cfg', starting on line 16)
Lexmark Helpcenter.vecchio.cfg and cookie.txt.cfg doesn't exist as file, but the main problem is the serviceescalation..that is empty..
I think is a database problem..but i already tried to do a repair_databases.sh and also this command that helped me in the past
mysqlcheck -f -r -u root -pnagiosxi --use_frm --all-databases
but no way, always the same error..also revert to a past snapshot don't change the situation..
any suggest?
Thanks
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Error: Service escalation host name or description is NU

Post by scottwilkerson »

Do you have any entries in Config -> Core Config Manager -> Service Escalations ?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
davide.bonicelli
Posts: 134
Joined: Thu Feb 13, 2014 5:12 am

Re: Error: Service escalation host name or description is NU

Post by davide.bonicelli »

yes, i've already tried to disable everything or create a new one.
but serviceescalations.cfg continues to be empty (obviously..)
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Error: Service escalation host name or description is NU

Post by scottwilkerson »

davide.bonicelli wrote:yes, i've already tried to disable everything or create a new one.
but serviceescalations.cfg continues to be empty (obviously..)
Based on the above error is isn't empty, there is something on line 16

Code: Select all

Error: Could not register service escalation (config file '/usr/local/nagios/etc/serviceescalations.cfg', starting on line 16)
can you post the output of the following

Code: Select all

cat /usr/local/nagios/etc/serviceescalations.cfg
Also, from "CCM -> Service Escalations" can you click the "view config" icon next to one of the entries and show the output
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
davide.bonicelli
Posts: 134
Joined: Thu Feb 13, 2014 5:12 am

Re: Error: Service escalation host name or description is NU

Post by davide.bonicelli »

here we are:

Code: Select all

[root@nagiosprod ~]# cat /usr/local/nagios/etc/serviceescalations.cfg
###############################################################################
#
# Serviceescalations configuration file
#
# Created by: Nagios CCM 2.7.0
# Date:       2018-12-27 10:13:50
# Version:    Nagios Core 4.x
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios CCM will overwrite all manual settings during the next update if you
# would like to edit files manually, place them in the 'static' directory or
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################

###############################################################################
#
# Serviceescalations configuration file
#
# END OF FILE
#
###############################################################################
[root@nagiosprod ~]#
and here is a service escalation (i have another 2 equal to this...strange)

Code: Select all

###############################################################################
#
# Serviceescalations configuration file
#
# Created by: Nagios CCM 2.7.4
# Date:       2019-01-10 17:41:07
# Version:    Nagios Core 4.x
#
# --- DO NOT EDIT THIS FILE BY HAND --- 
# Nagios CCM will overwrite all manual settings during the next update if you 
# would like to edit files manually, place them in the 'static' directory or 
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################

define serviceescalation {
    # config_name            BND-Test
    contacts                 h24.bonicelli.davide
    first_notification       1
    last_notification        0
    notification_interval    480
    escalation_options       c,
}

define serviceescalation {
    # config_name            server2011.edil.it_Drive
    contact_groups           Monitoraggio-PRO
    first_notification       1
    last_notification        0
    notification_interval    480
    escalation_options       w,u,
}

define serviceescalation {
    # config_name            srv01.spinnaker.locale_Drive
    contact_groups           Monitoraggio-PRO
    first_notification       1
    last_notification        0
    notification_interval    480
    escalation_options       w,u,
}

###############################################################################
#
# Serviceescalations configuration file
#
# END OF FILE
#
###############################################################################
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Error: Service escalation host name or description is NU

Post by scottwilkerson »

So it appears that your listings in CCM -> Service Escalations are not actually deactivated and they are not complete with a required host name
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
davide.bonicelli
Posts: 134
Joined: Thu Feb 13, 2014 5:12 am

Re: Error: Service escalation host name or description is NU

Post by davide.bonicelli »

So, how can i solve this problem?
I don't need service escalation right now
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Error: Service escalation host name or description is NU

Post by scottwilkerson »

davide.bonicelli wrote:So, how can i solve this problem?
I don't need service escalation right now
I would remove them from the CCM and then apply configuration
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
davide.bonicelli
Posts: 134
Joined: Thu Feb 13, 2014 5:12 am

Re: Error: Service escalation host name or description is NU

Post by davide.bonicelli »

all the service escalations was disabled so now i delete them all but as i imagined the error is the same:

Error: Service escalation host name or description is NULL
Error: Could not register service escalation (config file '/usr/local/nagios/etc/serviceescalations.cfg', starting on line 16)
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Error: Service escalation host name or description is NU

Post by scottwilkerson »

It might be best to have you open a ticket at https://support.nagios.com/tickets/ and we can setup a quick remote session to take a look.

Please reference this thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked