Nagios plug-in performance data format

Source: Internet
Author: User

The Nagios plugin is divided into two parts:
gping Ok–rtt Min/avg/max/mdev = 0.897/0.897/0.897/0.000 ms|time=0.897ms;20;40;; Ok=1
cpu_user:ok-0% cpu_system:ok-0% cpu_idle:warning-99>70% | cpu_user=0%;120;90;  cpu_system=0%;100;70; cpu_idle=99%;100;70;
Where the performance data is | The following Italic section, the format is as follows:
' label ' =value[uom]; [Warn]; [Crit]; [min]; [Max]
Precautions:
1. Space split tag/value pairs such as cpu_user=0%;100;90;  cpu_system=0%;100;70; cpu_idle=99%;100;70;
2.label can contain any character
3. Single quotation marks can be omitted, if you use a space, an equal sign, and a single quotation mark in a label, you need to enclose the label in single quotation marks. For example ' a ' b ' = C ' =0%;100;90;
4. The label can be any length, but preferably less than 19 characters and unique, (RRD has the relevant limitations), and need to pay attention to the Nrpe return value limit (translator: seems to be 4K limit)
5. Two single quotes for the specified escape character?
6.warn, Crit, Min or Max can be empty (for example, if no threshold is defined, the maximum minimum value is not applicable) and the last semicolon can be omitted
7. If UOM is%, the maximum minimum value is not required
8.value, Min and Max can only be minus "-" "0 to 9" and decimal "." and units must be unified for example: cpu_user=0.5%;99.9;-9;
9.warn and Crit must be in an interval format, see Chapter 2.5. Units must also be unified
10.UOM must be one of the following
1. If not specified, the default is number (integer and floating point) (e.g. number of users, number of processes, load, etc.)
2. S-seconds (can be nanosecond us or Ms MS) cpu_user=0s;100;90;  cpu_system=0us;100;70; cpu_idle=0ms;100;70;
3.%– percent cpu_user=0%;100;90;  cpu_system=0%;100;70; cpu_idle=99%;100;70;
4. b – bytes (can be kb, MB TB) cpu_user=0kb;100;90;  cpu_system=0mb;100;70; cpu_idle=0b;100;70;
5. C – a counter (such as network card traffic) cpu_user=10c;100;90;

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.