Adding Services to a Host
Posted: Mon Nov 16, 2015 2:33 pm
We are running an evaluation version of Nagiosxi:
Nagios XI Version : 5.2.0
ditlina550 3.10.0-229.11.1.el7.x86_64 x86_64
Red Hat Enterprise Linux Server release 7.1 (Maipo)
Gnome Installed
Our current production system is a Nagios Core 3.5.* and configuration is handled via NCONF. I did see an earlier posting of the same question earlier this year and going through the provided solution did not resolve the problem:
In this case the host is and initial services cfg files are both named hrisapp2.cfg. The services file contains only the xiwizard_linuxserver_ping_service service.
Adding a check_nrpe service to an existing host through the Configure > Core Configuration > Services > Add New seems to work, i.e. the new service appears as belonging to the hrisapp configuration, but after successful application of the new configuration the service never appears assigned to the host. The existing hrisapp2.cfg services file still only contains the xiwizard_linuxserver_ping_service
In the CCM Services page I choose the View Text Config which is as follows. As with the prior poster I am missing something very basic, but the resolution continues to allude me.
Regards,
Corrie
###############################################################################
#
# Service configuration file
#
# Created by: Nagios Core Config Manager 2.5.0
# Date: 2015-11-16 19:30:26
# 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 hrisapp2
service_description check_adp
display_name FS:/adp
check_command check_nrpe!check_adp!!!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
active_checks_enabled 1
check_period 24x7
notifications_enabled 0
register 1
}
define service {
host_name hrisapp2
service_description Ping
use xiwizard_linuxserver_ping_service
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 0
contacts martincb
_xiwizard solaris
register 1
}
###############################################################################
#
# Service configuration file
#
# END OF FILE
#
###############################################################################
Nagios XI Version : 5.2.0
ditlina550 3.10.0-229.11.1.el7.x86_64 x86_64
Red Hat Enterprise Linux Server release 7.1 (Maipo)
Gnome Installed
Our current production system is a Nagios Core 3.5.* and configuration is handled via NCONF. I did see an earlier posting of the same question earlier this year and going through the provided solution did not resolve the problem:
In this case the host is and initial services cfg files are both named hrisapp2.cfg. The services file contains only the xiwizard_linuxserver_ping_service service.
Adding a check_nrpe service to an existing host through the Configure > Core Configuration > Services > Add New seems to work, i.e. the new service appears as belonging to the hrisapp configuration, but after successful application of the new configuration the service never appears assigned to the host. The existing hrisapp2.cfg services file still only contains the xiwizard_linuxserver_ping_service
In the CCM Services page I choose the View Text Config which is as follows. As with the prior poster I am missing something very basic, but the resolution continues to allude me.
Regards,
Corrie
###############################################################################
#
# Service configuration file
#
# Created by: Nagios Core Config Manager 2.5.0
# Date: 2015-11-16 19:30:26
# 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 hrisapp2
service_description check_adp
display_name FS:/adp
check_command check_nrpe!check_adp!!!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
active_checks_enabled 1
check_period 24x7
notifications_enabled 0
register 1
}
define service {
host_name hrisapp2
service_description Ping
use xiwizard_linuxserver_ping_service
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 0
contacts martincb
_xiwizard solaris
register 1
}
###############################################################################
#
# Service configuration file
#
# END OF FILE
#
###############################################################################