Nrpe script monitoring Information output format

Source: Internet
Author: User

Nrpe script monitoring Information output format


The Nrpe script returns the status value of the monitored host State to the monitoring side:

Plug-in return value service state host status

0 Normal (OK) run (UP)

1 Alarm (WARNING) Run (UP) or down/unreachable (unreachable) *

2 Emergency (CRITICAL) downtime (down)/unreachable (unreachable)

3 Unknown (UNKNOWN) Downtime (down)/unreachable (unreachable)


Attention:

If the use_aggressive_host_checking option (Force detection) is used in the server-side nagios.cfg, a return value of 1 indicates that the host status is down or unreachable (unreachable). In other cases, a return value of 1 causes the host State to be running (up).


Second, Nrpe script results Output Information Format:

Status Description Information | Performance data (optional)

Status Description Information : This information will be displayed after the monitoring service item on the Nagios page;

|: Delimiter (vertical bar is the pipe character), this is a special character, the output needs to escape;

Performance Data : This type of data is optional output in scripting, which is the data source for the Pnp4nagios performance graph plug-in, and the output format for that data is:

Detection Item name (usually abbreviated) = the current detection value (can be carried units); Warning value; Critical value, minimum value of detection item, maximum value of detection item

The above value cannot be left blank if it is not.


Example:

DISK ok-free Space:/Home 3326 MB (56%); |/home=2643mb;5948;5958;0;5968

Status Description information: DISK ok-free space:/Home 3326 MB (56%);

|: Delimiter (vertical bar)

Performance data:/home=2643mb;5948;5958;0;5968


This article is from the "4699096" blog, please be sure to keep this source http://4709096.blog.51cto.com/4699096/1747377

Nrpe script monitoring Information output format

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.