From e0688a69114c95efaa0fbee8f8e91f6dcc21a1ee Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Mon, 30 Jan 2006 22:24:31 +0000 Subject: Clearly defined thresholds & ranges in docs. Added get_status routine. Added set_thresholds routine. Tests enhanced to check new routines git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1304 f882894a-f735-0410-b71e-b25c423dba1c --- doc/developer-guidelines.sgml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'doc') diff --git a/doc/developer-guidelines.sgml b/doc/developer-guidelines.sgml index ad6f59e9..82dbecaa 100644 --- a/doc/developer-guidelines.sgml +++ b/doc/developer-guidelines.sgml @@ -196,12 +196,18 @@ -
Threshold range format - Thresholds ranges define the warning and critical levels for plugins to - alert on. The theory is that the plugin will do some sort of check which returns +
Threshold and ranges + A range is defined as a start and end point (inclusive) on a numeric scale (possibly + negative or positive infinity). + + A threshold is a range with an alert level (either warning or critical). Use the + set_thresholds(thresholds *, char *, char *) function to set the thresholds. + + The theory is that the plugin will do some sort of check which returns back a numerical value, or metric, which is then compared to the warning and - critical thresholds. - This is the generalised format for threshold ranges: + critical thresholds. Use the get_status(double, thresholds *) function to + compare the value against the thresholds. + This is the generalised format for ranges: [@]start:end @@ -226,10 +232,8 @@ - Note: Not all plugins are coded to expect ranges in this format. It is - planned for a future release to - provide standard libraries to parse and compare metrics against ranges. There - will also be some work in providing multiple metrics. + Note: Not all plugins are coded to expect ranges in this format yet. + There will be some work in providing multiple metrics.
Performance data -- cgit v1.2.3-74-g34f1