Code: Select all
hosts: files dnsCode: Select all
hosts: files dnsCode: Select all
[root@lisl-ngos-01-pv etc]# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost.localdomain localhost4 localhost4.localdomain4 localhost
::1 localhost.localdomain localhost.localdomain localhost6 localhost6.localdomain6 localhost
10.245.128.172 lisl-ngos-01-pv lisl-ngos-01-pv.snapon.com lisl-ngos-01-pv
10.245.0.1 USSNAPLSAIL-CoreCode: Select all
[root@lisl-ngos-01-pv etc]# cat /usr/local/nagios/etc/hosts/lisgrid01p.cfg
###############################################################################
#
# Host configuration file
#
# Created by: Nagios Core Config Manager 2.6.0
# Date: 2016-12-05 13:03:08
# 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 host {
host_name lisgrid01p
use solaris-server
alias Lisle, IL Grid Monitoring server (Traps)
address lisgrid01p.snapon.com
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
icon_image solaris.png
_xiwizard passiveobject
register 1
}
###############################################################################
#
# Host configuration file
#
# END OF FILE
#
###############################################################################Code: Select all
host_name lisgrid01p
Code: Select all
host_name lisgrid01p.snapon.com