Nagios详解的主配置文件

详解Nagios的主配置文件(下)
这里将继续上一篇对Nagios主配置文件/etc/nagios/nagios.cfg的详细讲解。

配置Nagios的主配置文件:
[root@KCentOS5A ~]# vi /etc/nagios/nagios.cfg
---------------------------------------------------------------------------------
......
第四十部分:超时数值
# TIMEOUT VALUES
# These options control how much time Nagios will allow various
# types of commands to execute before killing them off. Options
# are available for controlling maximum time allotted for
# service checks, host checks, event handlers, notifications, the
# ocsp command, and performance data commands. All values are in
# seconds.
这些选项控制着Nagios将能够多长时间允许那些不同类型命令在它们被终止以前保持执行。

service_check_timeout=60
host_check_timeout=30
event_handler_timeout=30
notification_timeout=30
ocsp_timeout=5
perfdata_timeout=5

第四十一部分:保持状态信息
# RETAIN STATE INFORMATION
# This setting determines whether or not Nagios will save state
# information for services and hosts before it shuts down. Upon
# startup Nagios will reload all saved service and host state
# information before starting to monitor. This is useful for
# maintaining long-term data on state statistics, etc, but will
# slow Nagios down a bit when it (re)starts. Since its only
# a one-time penalty, I think its well worth the additional
# startup delay.
这个设定决定了Nagios是否在Nagios自己关闭前为服务和主机保存状态信息。紧接在Nagios启动之后,Nagios将在开始进行检测工作前重新载入之前保存的服务和主机的状态信息。这将对维护长期状态监测数据统计等工作有利。但是这个设定也会略微造成Nagios启动缓慢的效果。由于这种影响是一时性的,因此有开启的必要。

retain_state_information=1
默认保持状态信息功能是开启的。

第四十二部分:状态保留文件
# STATE RETENTION FILE
# This is the file that Nagios should use to store host and
# service state information before it shuts down. The state
# information in this file is also read immediately prior to
# starting to monitor the network when Nagios is restarted.
# This file is used only if the preserve_state_information
# variable is set to 1.
这个文件将保留Nagios关闭前记录的主机和服务的状态信息。而这个文件也将是当Nagios再次启动后立即读取的文件。这个选项仅仅在保持状态信息功能开启时才有效。

state_retention_file=/var/log/nagios/retention.dat
设定状态保留文件路径。

第四十三部分:保留状态数据更新间隔
# RETENTION DATA UPDATE INTERVAL
# This setting determines how often (in minutes) that Nagios
# will automatically save retention data during normal operation.
# If you set this value to 0, Nagios will not save retention
# data at regular interval, but it will still save retention
# data before shutting down or restarting. If you have disabled
# state retention, this option has no effect.
这个设定决定Nagios将多频繁地在正常工作过程中自动保存状态数据。如果设定值0的话,那么Nagios将在正常间隔中不保存数据,但是它仍然会在关闭或重启前对主机和服务状态做一次保存。如果关闭了保持状态信息功能的话,那么这个选项将无效。

retention_update_interval=60
默认保存状态数据间隔是60秒。

第四十四部分:使用保留程序状态
# USE RETAINED PROGRAM STATE
# This setting determines whether or not Nagios will set
# program status variables based on the values saved in the
# retention file. If you want to use retained program status
# information, set this value to 1. If not, set this value
# to 0.
这个设定决定了Nagios是否将程序的状态设定为基于上次保留的状态。如果使用保留的程序状态的话,那么设定值1,不启用则设定值0。

use_retained_program_state=1
默认是启用保留程序状态。

第四十五部分:使用保留调度信息
# USE RETAINED SCHEDULING INFO
# This setting determines whether or not Nagios will retain
# the scheduling info (next check time) for hosts and services
# based on the values saved in the retention file. If you
# If you want to use retained scheduling info, set this
# value to 1. If not, set this value to 0.
这个设定决定了Nagios是否保留将在下一个主机和服务的检测时间里使用上次保留的调度。如果启用保留调度信息的话设定值1,不启用为0。

use_retained_scheduling_info=0
默认不启用保留调度信息。

第四十六部分:间隔长度
# INTERVAL LENGTH
# This is the seconds per unit interval as used in the
# host/contact/service configuration files. Setting this to 60 means
# that each interval is one minute long (60 seconds). Other settings
# have not been tested much, so your mileage is likely to vary...
这是个以秒为单位,被用在主机/服务配置文件中。设定这个值为60意味着每个间隔将会是一分钟的长度。

interval_length=60
默认时间间隔长度是60秒。

第四十七部分:强行主机检测选项
# AGGRESSIVE HOST CHECKING OPTION
# If you don't want to turn on aggressive host checking features, set
# this value to 0 (the default). Otherwise set this value to 1 to
# enable the aggressive check option. Read the docs for more info
# on what aggressive host check is or check out the source code in
# base/checks.c
如果不想启用强行主机检测特性的话,设定该配置项值为0。否则设定该项值为1来启用强行主机检测选项。如果想更多了解关于强行主机检测功能的话请阅读base/checks.c的源代码或相关手册。

use_aggressive_host_checking=0
默认是不启用强制主机检测特性的。

第四十八部分:服务检测执行选项
# SERVICE CHECK EXECUTION OPTION
# This determines whether or not Nagios will actively execute
# service checks when it initially starts. If this option is
# disabled, checks are not actively made, but Nagios can still
# receive and process passive check results that come in. Unless
# you're implementing redundant hosts or have a special need for
# disabling the execution of service checks, leave this enabled!
# Values: 1 = enable checks, 0 = disable checks
这个设定决定了Nagios在启动初始的时候是否将主动地执行服务检测。如果这个选项被关闭了,监测将不会主动进行,但是Nagios会仍然接收和处理被动检测的结果。除非正在执行冗余主机或者有一个特殊的理由需要关闭服务检测的执行,否则应该让这个配置项保持启用。值1表示启用检测,值0表示关闭监测。

execute_service_checks=1
默认下服务检测是启用的。

第四十九部分:被动服务检测接受选项
# PASSIVE SERVICE CHECK ACCEPTANCE OPTION
# This determines whether or not Nagios will accept passive
# service checks results when it initially (re)starts.
# Values: 1 = accept passive checks, 0 = reject passive checks
这个设定决定了Nagios在启动或者重启时,是否将接受被动服务检测的结果。值1表示接受被动检测,值0表示拒绝被动检测。

accept_passive_service_checks=1
默认是启用被动服务检测功能的。

第五十部分:主机检测执行选项。
# HOST CHECK EXECUTION OPTION
# This determines whether or not Nagios will actively execute
# host checks when it initially starts. If this option is
# disabled, checks are not actively made, but Nagios can still
# receive and process passive check results that come in. Unless
# you're implementing redundant hosts or have a special need for
# disabling the execution of host checks, leave this enabled!
# Values: 1 = enable checks, 0 = disable checks
这个设定决定了Nagios在启动初始的时候是否将主动地执行主机检测。如果这个选项被关闭了,监测将不会主动进行,但是Nagios会仍然接收和处理被动检测的结果。除非正在执行冗余主机或者有一个特殊的理由需要关闭服务检测的执行,否则应该让这个配置项保持启用。值1表示启用检测,值0表示关闭监测。

execute_host_checks=1
默认下启用主机检测功能的。

第五十一部分:被动主机检测接受选项
# PASSIVE HOST CHECK ACCEPTANCE OPTION
# This determines whether or not Nagios will accept passive
# host checks results when it initially (re)starts.
# Values: 1 = accept passive checks, 0 = reject passive checks
这个设定决定了Nagios在启动或者重启时,是否将接受被动主机检测的结果。值1表示接受被动检测,值0表示拒绝被动检测。

accept_passive_host_checks=1
默认下是启用被动主机检测功能的。

第五十二部分:通知选项
# NOTIFICATIONS OPTION
# This determines whether or not Nagios will sent out any host or
# service notifications when it is initially (re)started.
# Values: 1 = enable notifications, 0 = disable notifications
这个设定将决定当Nagios启动或者重启时是否发送出任何主机或服务的通知。值1表示启用通知,值0表示关闭通知。

enable_notifications=1
默认是启用通知。

第五十三部分:事件处理程序使用选项
# EVENT HANDLER USE OPTION
# This determines whether or not Nagios will run any host or
# service event handlers when it is initially (re)started. Unless
# you're implementing redundant hosts, leave this option enabled.
# Values: 1 = enable event handlers, 0 = disable event handlers
这个设定将决定当Nagios启动或者重启时是否运行任何主机或者服务的事件处理程序。除非在执行冗余主机或者有特殊的理由,否则请务必开启此功能。值1表示开启事件处理程序,值0表示关闭事件处理程序。

enable_event_handlers=1
默认启用事件处理程序。

第五十四部分:处理性能数据选项
# PROCESS PERFORMANCE DATA OPTION
# This determines whether or not Nagios will process performance
# data returned from service and host checks. If this option is
# enabled, host performance data will be processed using the
# host_perfdata_command (defined below) and service performance
# data will be processed using the service_perfdata_command (also
# defined below). Read the HTML docs for more information on
# performance data.
# Values: 1 = process performance data, 0 = do not process performance data
这个选项将决定Nagios是否处理从服务和主机检测当中返回的性能数据。如果这个选项被启用了,那么主机性能数据将通过host_perfdata_command中定义的方式进行处理,并且服务性能数据也将通过service_perfdata_command中定义的方式进行处理。设定值1表示处理性能数据,值0表示不处理性能数据。

process_performance_data=0
默认不对性能数据进行处理。

第五十五部分:主机和服务性能数据处理命令
# HOST AND SERVICE PERFORMANCE DATA PROCESSING COMMANDS
# These commands are run after every host and service check is
# performed. These commands are executed only if the
# enable_performance_data option (above) is set to 1. The command
# argument is the short name of a command definition that you
# define in your host configuration file. Read the HTML docs for
# more information on performance data.
这些命令在每个主机和服务检测被执行的时候运行。这些命令仅仅当enable_performance_data选项置1的时候才会被执行。这个命令的参数则是在主机配置文件中定义的简写名。

#host_perfdata_command=process-host-perfdata
#service_perfdata_command=process-service-perfdata
默认这里是空的。

第五十六部分:主机和服务性能数据文件
# HOST AND SERVICE PERFORMANCE DATA FILES
# These files are used to store host and service performance data.
# Performance data is only written to these files if the
# enable_performance_data option (above) is set to 1.
这些文件被用来保存主机和服务性能的数据。如果enable_performance_data项设定值1的话,性能数据将能写入到这些文件当中。

#host_perfdata_file=/tmp/host-perfdata
#service_perfdata_file=/tmp/service-perfdata
默认注释掉性能数据文件的路径。

第五十七部分:主机和服务性能数据文件模版
# HOST AND SERVICE PERFORMANCE DATA FILE TEMPLATES
# These options determine what data is written (and how) to the
# performance data files. The templates may contain macros, special
# characters (\t for tab, \r for carriage return, \n for newline)
# and plain text. A newline is automatically added after each write
# to the performance data file. Some examples of what you can do are
# shown below.
这些选项决定了数据文件当中将记录什么样的数据。模版可以包含宏、指定字符(\t表示tab,\r表示返回,\n表示换行)以及简单文本。换行则将被自动添加到每个写入的新的性能数据之后。以下则是示例的格式。

#host_perfdata_file_template=[HOSTPERFDATA]\t$TIMET$\t$HOSTNAME$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$
#service_perfdata_file_template=[SERVICEPERFDATA]\t$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$


第五十八部分:主机和服务性能数据文件模式
# HOST AND SERVICE PERFORMANCE DATA FILE MODES
# This option determines whether or not the host and service
# performance data files are opened in write ("w") or append ("a")
# mode. Unless you are the files are named pipes, you will probably
# want to use the default mode of append ("a").
这个选项将觉得主机和服务性能数据文件是否开放“写”(w)或“追加”(a)模式。除非你的文件通过管道来命名的,否则请使用默认的追加模式a。

#host_perfdata_file_mode=a
#service_perfdata_file_mode=a
默认这里是注释掉的。

第五十九部分:主机和服务性能数据文件处理间隔
# HOST AND SERVICE PERFORMANCE DATA FILE PROCESSING INTERVAL
# These options determine how often (in seconds) the host and service
# performance data files are processed using the commands defined
# below. A value of 0 indicates the files should not be periodically
# processed.
这些选项决定了主机和服务性能数据文件将多频繁地通过下面定义的命令来处理。值0表示这些文件将不会被循环处理。

#host_perfdata_file_processing_interval=0
#service_perfdata_file_processing_interval=0
默认这里是注释掉的。

第六十部分:主机和服务性能数据文件处理命令
# HOST AND SERVICE PERFORMANCE DATA FILE PROCESSING COMMANDS
# These commands are used to periodically process the host and
# service performance data files. The interval at which the
# processing occurs is determined by the options above.
这些命令被用来循环地处理主机和服务性能数据文件。而这些处理进行的时间的间隔将由上面的配置选项决定。

#host_perfdata_file_processing_command=process-host-perfdata-file
#service_perfdata_file_processing_command=process-service-perfdata-file
默认这里是注释掉的。

第六十一部分:迷惑服务检测选项?(这里不我也不是很明白)
# OBSESS OVER SERVICE CHECKS OPTION
# This determines whether or not Nagios will obsess over service
# checks and run the ocsp_command defined below. Unless you're
# planning on implementing distributed monitoring, do not enable
# this option. Read the HTML docs for more information on
# implementing distributed monitoring.
# Values: 1 = obsess over services, 0 = do not obsess (default)
这个选项将决定Nagios是否被服务检测迷惑并运行之后定义的ocsp_command。除非机会执行分布式的监测,否则不要轻易启用这个选项。值1表示迷惑服务。值0表示不迷惑服务。

obsess_over_services=0
默认不启用。

第六十二部分:OCSP命令
# OBSESSIVE COMPULSIVE SERVICE PROCESSOR COMMAND
# This is the command that is run for every service check that is
# processed by Nagios. This command is executed only if the
# obsess_over_service option (above) is set to 1. The command
# argument is the short name of a command definition that you
# define in your host configuration file. Read the HTML docs for
# more information on implementing distributed monitoring.
这是个由Nagios处理的、为每个服务检测而运行的命令。这个命令仅仅当obsess_over_service选项设定值1启动时才执行有效。这个命令的参数则是在主机配置文件中定义的简写名。

#ocsp_command=somecommand
默认这里配置为空。

第六十三部分:孤儿服务检测选项
# ORPHANED SERVICE CHECK OPTION
# This determines whether or not Nagios will periodically
# check for orphaned services. Since service checks are not
# rescheduled until the results of their previous execution
# instance are processed, there exists a possibility that some
# checks may never get rescheduled. This seems to be a rare
# problem and should not happen under normal circumstances.
# If you have problems with service checks never getting
# rescheduled, you might want to try enabling this option.
# Values: 1 = enable checks, 0 = disable checks
这个设定决定了Nagios是否会周期地检查被孤立的服务。因为服务检测在直到他们的上一个执行实例被处理前都不会被重新调度,所以就会有一个可能就是一些检测将会永远得不到重新调度。虽然这似乎会是一个比较罕见的问题,并且在正常情况下不会发生。如果你有这种某些服务检测永远得不到重调度的问题的话,可能需要将此选项置值为1启用。值0表示关闭。

check_for_orphaned_services=1
默认情况下是启用孤儿服务检测选项的。

第六十四部分:服务更新监测选项
# SERVICE FRESHNESS CHECK OPTION
# This option determines whether or not Nagios will periodically
# check the "freshness" of service results. Enabling this option
# is useful for ensuring passive checks are received in a timely
# manner.
# Values: 1 = enabled freshness checking, 0 = disable freshness checking
这个选项将决定Nagios是否会周期性地检查服务更新结果。启用置1,不启用置0。

check_service_freshness=1
默认启用服务更新监测。

第六十五部分:服务更新监测间隔
# SERVICE FRESHNESS CHECK INTERVAL
# This setting determines how often (in seconds) Nagios will
# check the "freshness" of service check results. If you have
# disabled service freshness checking, this option has no effect.
这个设定决定Nagios将多频繁地对服务更新进行检查。如果关闭了服务更新监测选项的话,那么这个选项将无效。

service_freshness_check_interval=60
默认服务更新监测时间间隔是60秒。

第六十六部分:主机更新检测选项。
# HOST FRESHNESS CHECK OPTION
# This option determines whether or not Nagios will periodically
# check the "freshness" of host results. Enabling this option
# is useful for ensuring passive checks are received in a timely
# manner.
# Values: 1 = enabled freshness checking, 0 = disable freshness checking
这个选项将决定Nagios是否会周期性地检查主机更新结果。启用置1,不启用置0。

check_host_freshness=0
默认关闭主机更新检测。

第六十七部分:主机更新检测间隔
# HOST FRESHNESS CHECK INTERVAL
# This setting determines how often (in seconds) Nagios will
# check the "freshness" of host check results. If you have
# disabled host freshness checking, this option has no effect.
这个设定决定Nagios将多频繁地对主机更新进行检查。如果关闭了主机更新监测选项的话,那么这个选项将无效。

host_freshness_check_interval=60
默认主机更新监测间隔为60秒。

第六十八部分:聚集状态更新
# AGGREGATED STATUS UPDATES
# This option determines whether or not Nagios will
# aggregate updates of host, service, and program status
# data. Normally, status data is updated immediately when
# a change occurs. This can result in high CPU loads if
# you are monitoring a lot of services. If you want Nagios
# to only refresh status data every few seconds, disable
# this option.
# Values: 1 = enable aggregate updates, 0 = disable aggregate updates
这个选项决定了Nagios将是否聚集主机、服务以及程序状态的数据更新。正常情况下,当一个变化发生时,状态数据将会立即更新。但是当对多个服务进行检测的时候这种情况会造成高额的CPU负载。如果想要Nagios只隔若干秒就刷新一次状态的话,就关闭这个选项。值1表示启用聚集状态更新,值0的话则关闭。

aggregate_status_updates=1
默认情况下启用聚集状态更新。

第六十九部分:聚集状态更新间隔
# AGGREGATED STATUS UPDATE INTERVAL
# Combined with the aggregate_status_updates option,
# this option determines the frequency (in seconds!) that
# Nagios will periodically dump program, host, and
# service status data. If you are not using aggregated
# status data updates, this option has no effect.
该选项须结合aggregate_status_update选项的设定。这个选项将决定Nagios是否周期性地更新程序、主机以及服务的状态数据。如果没有启用聚集状态更新功能选项,那么这个选项将无效。

status_update_interval=15
默认聚集状态更新间隔为15秒。

第七十部分:抖动探测选项
# FLAP DETECTION OPTION
# This option determines whether or not Nagios will try
# and detect hosts and services that are "flapping".
# Flapping occurs when a host or service changes between
# states too frequently. When Nagios detects that a
# host or service is flapping, it will temporarily suppress
# notifications for that host/service until it stops
# flapping. Flap detection is very experimental, so read
# the HTML documentation before enabling this feature!
# Values: 1 = enable flap detection
# 0 = disable flap detection (default)
这个选项决定Nagios将是否尝试去检测那些“发生抖动”的主机和服务。所谓“抖动”就是发生在当一个主机或者服务频繁地在两种状态之间变化的现象。当Nagios探测到一个主机或者服务正在发生抖动的时候,它将暂时抑制这个主机/服务的通知消息,直到抖动停止。值1表示启用抖动探测,值0表示关闭抖动检测,默认关闭。

enable_flap_detection=0
默认是关闭抖动检测的。

第七十一部分:主机和服务的抖动检测阀值
# FLAP DETECTION THRESHOLDS FOR HOSTS AND SERVICES
# Read the HTML documentation on flap detection for
# an explanation of what this option does. This option
# has no effect if flap detection is disabled.
设定主机和服务抖动的高低阀值。如果抖动检测没有被启动的话,那么这些配置项将无效。

low_service_flap_threshold=5.0
最低服务抖动阀值,默认为5秒。
high_service_flap_threshold=20.0
最高服务抖动法制,默认为20秒。
low_host_flap_threshold=5.0
最低主机抖动阀值,默认为5秒。
high_host_flap_threshold=20.0
最高主机抖动阀值,默认为20秒。

第七十二部分:日期格式选项
# DATE FORMAT OPTION
# This option determines how short dates are displayed. Valid options
# include:
# us (MM-DD-YYYY HH:MM:SS)
# euro (DD-MM-YYYY HH:MM:SS)
# iso8601 (YYYY-MM-DD HH:MM:SS)
# strict-iso8601 (YYYY-MM-DDTHH:MM:SS)
#
这个选项决定了简写日期显示的格式,可用选项如下:
美国标准 us (MM-DD-YYYY HH:MM:SS)
欧洲标准 euro (DD-MM-YYYY HH:MM:SS)
国际标准 iso8601 (YYYY-MM-DD HH:MM:SS)
严格国际标准 strict-iso8601 (YYYY-MM-DDTHH:MM:SS)

date_format=us
默认格式为美国标准。

第七十三部分:P1.PL文件文件位置
# P1.PL FILE LOCATION
# This value determines where the p1.pl perl script (used by the
# embedded Perl interpreter) is located. If you didn't compile
# Nagios with embedded Perl support, this option has no effect.
这个值决定了p1.pl perl脚本的路径位置。如果你没有配合使用perl编译的话,那么这个选项将无效。

p1_file=/usr/bin/p1.pl

第七十四部分:非法对象命名字符
# ILLEGAL OBJECT NAME CHARACTERS
# This option allows you to specify illegal characters that cannot
# be used in host names, service descriptions, or names of other
# object types.
在这个选项里定义了哪些字符将不能使用在主机名、服务描述或者其他对象类型当中。

illegal_object_name_chars=`~!$%^&*|'"?,()=
默认已经列出了一些非法命名字符。

第七十五部分:非法宏输出字符
# ILLEGAL MACRO OUTPUT CHARACTERS
# This option allows you to specify illegal characters that are
# stripped from macros before being used in notifications, event
# handlers, etc. This DOES NOT affect macros used in service or
# host check commands.
# The following macros are stripped of the characters you specify:
# $HOSTOUTPUT$
# $HOSTPERFDATA$
# $HOSTACKAUTHOR$
# $HOSTACKCOMMENT$
# $SERVICEOUTPUT$
# $SERVICEPERFDATA$
# $SERVICEACKAUTHOR$
# $SERVICEACKCOMMENT$
这个选项里定义了哪些字符将不能作为宏的输出字符。以下的这些宏将受到该选项配置的影响:
$HOSTOUTPUT$
$HOSTPERFDATA$
$HOSTACKAUTHOR$
$HOSTACKCOMMENT$
$SERVICEOUTPUT$
$SERVICEPERFDATA$
$SERVICEACKAUTHOR$
$SERVICEACKCOMMENT$

illegal_macro_output_chars=`~$&|'"
默认已经列出了一些非法命名字符。

第七十六部分:正则表达式匹配
# REGULAR EXPRESSION MATCHING
# This option controls whether or not regular expression matching
# takes place in the object config files. Regular expression
# matching is used to match host, hostgroup, service, and service
# group names/descriptions in some fields of various object types.
# Values: 1 = enable regexp matching, 0 = disable regexp matching
这个选项控制了表达式在对象配置文件中是否会发生表达式的匹配。正则表达式用来在一些字段中匹配主机、主机组、服务、服务组的命名/描述。值1表示启用正则表达式匹配功能,值0表示关闭。

use_regexp_matching=0
默认关闭正则表达式的匹配功能。

第七十七部分:真值正则表达式匹配
# "TRUE" REGULAR EXPRESSION MATCHING
# This option controls whether or not "true" regular expression
# matching takes place in the object config files. This option
# only has an effect if regular expression matching is enabled
# (see above). If this option is DISABLED, regular expression
# matching only occurs if a string contains wildcard characters
# (* and ?). If the option is ENABLED, regexp matching occurs
# all the time (which can be annoying).
# Values: 1 = enable true matching, 0 = disable true matching
这个选项控制了在对象配置文件中是否会发生值为“真”的正则表达式的匹配。这个选项仅仅在启正则表达式匹配功能的前提下有效。如果这个选项被关闭了,那么正则表送达式匹配将仅发生在一个字符串包含通配字符(“*”和“?”)的情况下了。如果这个选项被启用了,那么正则表达式匹配将会在任何情况下发生了(这可能会引起一些不希望发生的问题)。

use_true_regexp_matching=0
默认情况下真值的正则表达式匹配功能是关闭的。

第七十八部分:管理员电子邮件地址
# ADMINISTRATOR EMAIL ADDRESS
# The email address of the administrator of *this* machine (the one
# doing the monitoring). Nagios never uses this value itself, but
# you can access this value by using the $ADMINEMAIL$ macro in your
# notification commands.
指定管理员的邮件地址

admin_email=nagios
默认情况下该项值为nagios。

第七十九部分:管理员联系地址
# ADMINISTRATOR PAGER NUMBER/ADDRESS
# The pager number/address for the administrator of *this* machine.
# Nagios never uses this value itself, but you can access this
# value by using the $ADMINPAGER$ macro in your notification
# commands.
设定管理员的联系地址

admin_pager=pagenagios
默认下该项值为pagenagios

第八十部分:守护进程核心转储
# DAEMON CORE DUMP OPTION
# This option determines whether or not Nagios is allowed to create
# a core dump when it runs as a daemon. Note that it is generally
# considered bad form to allow this, but it may be useful for
# debugging purposes.
# Values: 1 - Allow core dumps
# 0 - Do not allow core dumps (default)
这个选项决定了当Nagios作为一个守护进程运行的时候,是否允许建立一个核心转储。注意通常情况下启用这个选项被认为是一种不优的方式,但是它可能对诊断排错带来帮助。值1表示允许核心转储,值0表示不允许核心转储,默认情况下是关闭的。

daemon_dumps_core=0
默认情况下不允许核心转储。
--------------------------------------------------------------------------------
终于完了...= = 才只讲了Nagios的主配置文件而已阿....

你可能感兴趣的:(nagios&catic,linux)