From 9064837d7624c55003e63b5c788033a7c0f33e78 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Mon, 11 Aug 2003 19:50:07 +0000 Subject: [PATCH] Performance data guidelines added git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@682 f882894a-f735-0410-b71e-b25c423dba1c --- doc/developer-guidelines.sgml | 52 ++++++++++++++++++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/doc/developer-guidelines.sgml b/doc/developer-guidelines.sgml index 6500297..9e1da50 100644 --- a/doc/developer-guidelines.sgml +++ b/doc/developer-guidelines.sgml @@ -189,7 +189,7 @@ occurred and error code is 138 or 255 or some such number. These are usually caused by plugins using system commands and having not enough checks to catch unexpected output. Developers should include a - default catch-all for system command output that returns an UNKOWN + default catch-all for system command output that returns an UNKNOWN return code. Plugin Return Codes @@ -235,7 +235,57 @@ +
Performance data + Performance data is defined by Nagios as "everything after the | of the plugin output" - + please refer to Nagios documentation for information on capturing this data to logfiles. + However, it is the responsibility of the plugin writer to ensure the + performance data is in a "Nagios plugins" format. + This is the expected format: + + 'label'=value[UOM];[crit];[warn][;[max];[min]] + + + Notes: + + space separated list of label/value pairs + + label can contain any characters + + the single quotes for the label are optional. Required if + spaces, = or ' are in the label + + label length is arbitrary, but ideally the first 19 characters + are unique (due to a limitation in RRD). Be aware of a limitation in the + amount of data that NRPE returns to Nagios + + to specify a quote character, use two single quotes + + crit or warn may be null (if the threshold is not defined) + + max and min are optional. Holds maximum values for the + particular UOM (not required if UOM=%) + + value, crit, warn, max and min in class [-0-9.]. Must all be the + same UOM + + UOM (unit of measurement) is one of: + + no unit specified - assume a number (int or float) + of things (eg, users, processes, load averages) + + s - seconds (also us, ms) + % - percentage + B - bytes (also KB, MB, TB) + c - a continous counter (such as bytes + transmitted on an interface) + + + + + It is up to third party programs to convert the Nagios plugins + performance data into graphs. +
System Commands and Auxiliary Files -- 2.30.2