Hostname disappear after Nagios Upgrade
Posted: Wed Oct 04, 2017 12:29 pm
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
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