aboutsummaryrefslogtreecommitdiff
path: root/plugins/utils.h
diff options
context:
space:
mode:
authorGravatar John C. Frickson <jfrickson@nagios.com> 2016-11-07 13:06:05 -0600
committerGravatar Sven Nierlein <sven@nierlein.de> 2016-11-07 21:36:25 +0100
commita5983eda69b442a90495909803724901669b50fb (patch)
treefa3442fe3bc20309245188d88d77c6cdd15c17d9 /plugins/utils.h
parent3a12034805caf6c4ad21a8f86c8e4a43ff62576c (diff)
downloadmonitoring-plugins-a5983eda69b442a90495909803724901669b50fb.tar.gz
check_users not correctly detecting thresholds
Fix for issue https://github.com/nagios-plugins/nagios-plugins/issues/81 check_users now uses the standard warning and critical ranges parser and a standard perdata output routine.
Diffstat (limited to 'plugins/utils.h')
-rw-r--r--plugins/utils.h34
1 files changed, 11 insertions, 23 deletions
diff --git a/plugins/utils.h b/plugins/utils.h
index 4c4aaccc..a436e1ca 100644
--- a/plugins/utils.h
+++ b/plugins/utils.h
@@ -94,29 +94,17 @@ const char *state_text (int);
#define max(a,b) (((a)>(b))?(a):(b))
#define min(a,b) (((a)<(b))?(a):(b))
-char *perfdata (const char *,
- long int,
- const char *,
- int,
- long int,
- int,
- long int,
- int,
- long int,
- int,
- long int);
-
-char *fperfdata (const char *,
- double,
- const char *,
- int,
- double,
- int,
- double,
- int,
- double,
- int,
- double);
+char *perfdata (const char *, long int, const char *, int, long int,
+ int, long int, int, long int, int, long int);
+
+char *fperfdata (const char *, double, const char *, int, double,
+ int, double, int, double, int, double);
+
+char *sperfdata (const char *, double, const char *, char *, char *,
+ int, double, int, double);
+
+char *sperfdata_int (const char *, int, const char *, char *, char *,
+ int, int, int, int);
/* The idea here is that, although not every plugin will use all of these,
most will or should. Therefore, for consistency, these very common