Nagios master configuration file nagios.cfg detailed

Source: Internet
Author: User

Nagios.cfg file Nagios.cfg

The default path is/usr/local/nagios/etc/ Nagios.cfg, is the Nagios core configuration file, all object configuration files must be defined in this file to play its role, where the object configuration file can only be referenced in the Nagios.cfg file.

Log_file=/usr/local/nagios/var/nagios.log

The "log_file" variable is used to define the path to the Nagios log file.

Cfg_file=/usr/local/nagios/etc/hosts.cfg

Cfg_file=/usr/local/nagios/etc/services.cfg

Cfg_file=/usr/local/nagios/etc/commands.cfg

Cfg_file=/usr/local/nagios/etc/contacts.cfg

Cfg_file=/usr/local/nagios/etc/timeperiods.cfg

Cfg_file=/usr/local/nagios/etc/templates.cfg

The "cfg_file" variable is used to refer to the object configuration file, and if there are more object profiles, add it here in turn.

More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/soft/tools/

Object_cache_file=/usr/local/nagios/var/objects.cache This variable is used to specify a copy file for all object profiles, or an object buffer file

Resource_file=/usr/local/nagios/etc/resource.cfg

This variable is used to specify the path to the Nagios resource file, and you can define multiple resource files in Nagios.cfg.

Status_file=/usr/local/nagios/var/status.dat

This variable is used to define a state file that is used to hold Nagios's current status, comments, and downtime information. status_update_interval=10

The variable is used to define the update interval for the state file (that is, Status.dat), in seconds, and the minimum update interval is 1 seconds. Nagios_user=nagios

The variable specifies which user to run the Nagios process with.

Nagios_group=nagios

This variable is used to specify which user group the Nagios uses to run.

Check_external_commands=1

This variable is used to set whether Nagios is allowed to run CGI commands in the Web monitor interface, that is, whether to allow Nagios to perform restart Nagios under the Web interface, stop host/service checks, and so on. "1" is running, "0" is not allowed.

command_check_interval=2

This variable is used to set the time interval for nagios detection of external commands, if a number is specified plus an "s" (such as 10s), then the interval of the external instrumentation command is the time interval of this number in seconds. If "s" is not used, the interval of the external instrumentation command is the time interval of this number.

Interval_length=60

The variable specifies the time unit for the Nagios, and the default value is 60 seconds, which is 1 minutes, that is, all the time units in the Nagios configuration are minutes.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.