Server Monitoring-nagios Configuration Chapter

Source: Internet
Author: User

Add Mail Alert address first

Vim/usr/local/nagios/etc/objects/contacts.cfg

Define Contact{
Contact_Name nagiosadmin;
Use Generic-contact;
Alias Nagios Admin;
email [email protected];
}

Just modify this part, the others don't care


Vim /usr/local/nagios/etc/nagios.cfg

Remove cfg_dir=/usr/local/nagios/etc/servers Annotations

mkdir /usr/local/nagios/etc/servers

The directory where you need to monitor the server configuration files, easy to manage

Example: Monitoring the remote 192.168.1.11 host, as well as CPU, memory, hard disk usage, number of processes, and configuration of the zombie process

VI 192.168.1.11.cfg

Define Host{

Use Linux-server

HOST_NAME test

Alias Test_1

Address 192.168.1.1

}

Define Service{

Use Generic-service

HOST_NAME test

Service_description CPU Load

Check_command Check_nrpe!check_load

}

Define Service{

Use Generic-service

HOST_NAME test

Service_description Current Users

Check_command check_nrpe!check_users

}

Define Service{

Use Generic-service

HOST_NAME test

Service_description Disk Free Space

Check_command Check_nrpe!check_root

}

The file name can be customized, but the suffix must be cfg

If you have more than one server, you only need to copy multiple files to modify IP

This article from "People want to have a dream, in case the realization of" blog, please be sure to keep this source http://yangke.blog.51cto.com/9530509/1568524

Server Monitoring-nagios Configuration Chapter

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.