Complete nagios configuration document (chapter 2)

Source: Internet
Author: User
Chapter 2: configure the relationship between nagios and configuration files description 2.1 The Main configuration file of the main configuration file option Nagios is/usr/local/nagios/etc/nagios. cfg this article briefly describes the important variables in the main Configuration File 2.1.1 object configuration file format: pai_file & lt; file_nam...

 

Chapter 2: configure the relationship between nagios and configuration files

2.1 Main configuration file options

The main configuration file of Nagios is/usr/local/nagios/etc/nagios. cfg.

This article briefly describes the important variables in the main configuration file.

 

2.1.1 object configuration file

Format: pai_file = Example:

Export _file =/usr/local/nagios/etc/objects/contacts. cfg

Export _file =/usr/local/nagios/etc/objects/commands. cfg

For example, add a new host to configure linuxtone. cfg.

Export _file =/usr/local/nagios/etc/linuxtone. cfg

 

2.1.2 nagios users and groups

Nagios_user = nagios

Nagios_group = nagios

 

2.1.3 Notification options

Enable_configurications = 1

This option determines whether Nagios sends a notification during initialization or restart. If this option is not enabled, Nagios will not send notifications to any host or service. Note: If the status persistence option is enabled, Nagios ignores this setting during startup and restart and uses the most recent setting of this option (the status persistence file has been saved) unless you cancel the use_retained_program_state option. If you want to change this option when the enable state is saved (and use_retained_program_state), you must modify it through an appropriate external command or through a Web interface. Options can be:

0 = disable notification

1 = open notification (default)

This document does not list them one by one. For details, see:

Http: // nagios? Cn.sourceforge.net/nagios? Cn/configuration.html # configmain

 

2.2 object configuration file options

Pai_file =/usr/local/nagios/etc/objects/contacts. cfg // contact/group configuration file

Export _file =/usr/local/nagios/etc/objects/localhost. cfg // local Configuration File

Pai_file =/usr/local/nagios/etc/objects/timeperiods. cfg // monitoring time period configuration file

Pai_file =/usr/local/nagios/etc/objects/commands. cfg // monitoring script configuration

Pai_file =/usr/local/nagios/etc/objects/templates. cfg // monitoring service, alarm configuration

Pai_file =/usr/local/nagios/etc/objects/switch. cfg // monitor the route

Export _file =/usr/local/nagios/etc/objects/windows. cfg // monitor Microsoft

This article is from the "My home location" blog

Related Article

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.