Hostname disappear after Nagios Upgrade

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Support_Talea
Posts: 73
Joined: Wed Oct 04, 2017 7:12 am

Hostname disappear after Nagios Upgrade

Post by Support_Talea »

Hi,
We encounter a problem after Nagios upgrade From 5.2.9 to 5.4.9
Any time we modify a service and applyng the configuration we encounter this error:

Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/myservername.cfg', starting on line 88)

the configuration change from:
###############################################################################
#
# Service configuration file
#
# Created by: Nagios Core Config Manager 2.5.2
# Date: 2017-09-06 18:10:29
# Version: Nagios 3.x config file
#
# --- 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 service {
host_name testvm
service_description CPU Usage
use TMP_srv_gen_noH24
check_command check_xi_service_nsclient!!CPULOAD!-l 5,90,95!!!!!
_xiwizard windowsserver
register 1
}



to:

###############################################################################
#
# Service configuration file
#
# Created by: Nagios Core Config Manager 2.6.8
# Date: 2017-10-02 17:18:20
# Version: Nagios 3.x config file
#
# --- 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 service {
service_description CPU Usage
use TMP_srv_gen_noH24
check_command check_xi_service_nsclient!!CPULOAD!-l 5,90,95!!!!!
_xiwizard windowsserver
register 1
}

When we change host/hostgroup there is no problem.
Thanks
Support Talea
kyang

Re: Hostname disappear after Nagios Upgrade

Post by kyang »

I see you posted the same question twice.
https://support.nagios.com/forum/viewto ... 870#234333
I will be closing this thread and leaving the original one open so that our techs don't answer the same question again.

Thanks!
Locked