From 7ba54264fb8b614f0ea0bc9eab5c974e2dca7cd8 Mon Sep 17 00:00:00 2001 From: Karl DeBisschop Date: Fri, 20 Feb 2004 05:21:21 +0000 Subject: add perfdata function for floats to complement ints, also spell fix "received" git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@817 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/utils.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'plugins/utils.h') diff --git a/plugins/utils.h b/plugins/utils.h index c2b06415..35e62ab4 100644 --- a/plugins/utils.h +++ b/plugins/utils.h @@ -92,6 +92,18 @@ char *perfdata (const char *label, int maxp, long int maxv); +char *fperfdata (const char *label, + double val, + const char *uom, + int warnp, + double warn, + int critp, + double crit, + int minp, + double minv, + int maxp, + double maxv); + /* The idea here is that, although not every plugin will use all of these, most will or should. Therefore, for consistency, these very common options should have only these meanings throughout the overall suite */ -- cgit v1.2.3