Page 1 of 2

Error: Service escalation host name or description is NULL

Posted: Thu Jan 10, 2019 9:22 am
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

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

Posted: Thu Jan 10, 2019 11:17 am
by scottwilkerson
Do you have any entries in Config -> Core Config Manager -> Service Escalations ?

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

Posted: Thu Jan 10, 2019 11:26 am
by davide.bonicelli
yes, i've already tried to disable everything or create a new one.
but serviceescalations.cfg continues to be empty (obviously..)

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

Posted: Thu Jan 10, 2019 11:33 am
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

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

Posted: Thu Jan 10, 2019 11:42 am
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
#
###############################################################################

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

Posted: Thu Jan 10, 2019 11:52 am
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

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

Posted: Thu Jan 10, 2019 12:53 pm
by davide.bonicelli
So, how can i solve this problem?
I don't need service escalation right now

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

Posted: Thu Jan 10, 2019 1:02 pm
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

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

Posted: Thu Jan 10, 2019 6:22 pm
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)

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

Posted: Fri Jan 11, 2019 7:55 am
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