Nagios monitors multiple disk space

Source: Internet
Author: User

Ngios The first disk partition is monitored by default, you need to define multiple monitoring items in the service, such as:

define service {                 service_description                    check_disk3                 max_check_attempts                     3                 check_interval                         1                 retry_interval                          3                 notification_interval                  0                 notification_options                   w,u,c,r,f,s                 notifications_enabled                  1                 check_command                          check_nrpe!check_disk3                 check_period                            24x7                 notification_period                    24x7                 host_name                               afa_ebs_db}define service {                 service_description                    check_disk4                 max_check_attempts                     3                 check_interval                         1                 retry_interval                          3                 notification_interval                  0                 notification_options                   w, u,c,r,f,s                 notifications_enabled                  1                 check_command                          check_nrpe!check_disk4                 check_period                            24x7 &Nbsp;              notification_period                     24x7                host _name                              afa_ebs_db

You can then configure these items on the monitor machine, such as:

Command[check_disk3]=/usr/local/nagios/libexec/check_disk-w 20%-C 10%-p/dev/emcpowera1command[check_disk4]=/usr/ Local/nagios/libexec/check_disk-w 20%-C 10%-p/dev/emcpowerb1command[check_disk5]=/usr/local/nagios/libexec/check _disk-w 20%-C 10%-p/dev/sdb1command[check_disk6]=/usr/local/nagios/libexec/check_disk-w 20%-C 10%-p/dev/emcpowerc1

Restart the monitoring side and the monitored segment's services separately

The effect is as follows:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/54/99/wKioL1SHrb3CdV4TAAEuFhbXMq8564.jpg "title=" Qq20141210101631.png "alt=" Wkiol1shrb3cdv4taaeufhbxmq8564.jpg "/>

This article is from "It worker-small Maple" blog, please be sure to keep this source http://wangfeng7399.blog.51cto.com/3518031/1588170

Nagios monitors multiple disk space

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.