A preliminary study of Nagios files

Source: Internet
Author: User

Following the previous article, after installing Nagios on a single server, we can deploy Nagios. But before we deploy Nagios, we need to get to know all the files in Nagios.


Contents of the Nagios package

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/7E/EE/wKiom1cM8iXwgdplAAAYXWC5f3w994.png "title=" 1.png " alt= "Wkiom1cm8ixwgdplaaayxwc5f3w994.png"/>

The result after LS, for example, is to repeat the contents of each subfolder.

Bin: There are three executable programs---apr-1-config, Nagios, Nagiostatus. One of the prerequisites for Nagiostatus executable is #service nagios start, otherwise it will be error.

ETC: Environment configuration folder, which contains the following content:

Nagios.cfg Nagios's master configuration file
Cgi.cfg CGI Access control configuration file
Recourse.cfg Nagios Resource Access configuration file
Objects Sub-folders

Objects: This folder also belongs to the configuration file, which contains the following content:

tr> tr>
commands.cfg
monitoring command configuration file
contacts.cfg contacts and Contact Group Profiles
/td>
localhost.cfg monitor local host configuration files
printer.cfg Monitor printer configuration file
switch.cfg Monitor router configuration file
templates.cfg monitor host and service template configuration file
timeperiods.cfg monitoring time period profile
windows.cfg Monitor Windows page profile

var: this is a folder where the log is stored, which contains the following content:

Nagios.log Nagios logs
Retention.dat Monitoring of host and service information
Objects.cache Object Cache file
Status.dat
Run status information for CGI call analysis

Sbin: Inside are all kinds of CGI files, when we need to look at various information on the Web, different files contain different information.

Share: There are various web pages, such as index.php, side.php (menu bar), main.php (Home area) ...


Various definitions of Nagios configuration

Host: The IP address of the target machine.

Main group: The specific host division, different information divided into different groups, easy to manage.

Services: CPU monitoring, memory monitoring, HTTP monitoring ...

Service group: the monitored Hardware is a service group, and the software being monitored is another service group.

Contact person: Nothing to say

Contact Group: A division of contacts, such as ordinary users, administrator users.

Monitoring time: Specific monitoring time, such as only the weekend monitoring, the rest of the week and so on ...

Monitoring commands: Specific commands to perform monitoring

The above 8 elements need to be defined, and they form a complete set of monitoring processes.


N A brief explanation of the Agios configuration file

Take Nagios.cfg as an example, it is the main profile of Nagios, and its writing style is basically the format of all the configuration files of Nagios. The format of the Nagios configuration file is generally "explain the text---indicate the file path", I intercepted the beginning of everyone understand:

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7E/EE/wKiom1cNA12Th9GhAAKFjWYx2ZU920.png "title=" 1.png " alt= "Wkiom1cna12th9ghaakfjwyx2zu920.png"/>


White is my translation, the original is very long, we can slowly look. But the format is very simple, should not delay the understanding of you.


Look at Commands.cfg, this is the command that Nagios involves, these commands can be developed on their own, but after the development, to the format of this configuration file to add to the commands.cfg to use.

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7E/EC/wKioL1cNBqGiHT3nAACwVBUwzV8062.png "title=" 1.png " alt= "Wkiol1cnbqgiht3naacwvbuwzv8062.png"/>


Other configuration files Here is not much to say, basically are templates and various definitions, the format is very similar.



Reference article: http://blog.itpub.net/29500582/viewspace-1279528/

Reference article: http://blog.chinaunix.net/uid-17268883-id-3233849.html

Reference article: http://www.educity.cn/linux/1145034.html

Reference article: http://88fly.blog.163.com/blog/static/122680390201152164332876/

This article is from "Life is waiting for Gordo" blog, please make sure to keep this source http://chenx1242.blog.51cto.com/10430133/1763182

A preliminary study of Nagios files

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.