diff options
Diffstat (limited to 'plugins/utils.h')
-rw-r--r-- | plugins/utils.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/utils.h b/plugins/utils.h index efdbed41..282f299e 100644 --- a/plugins/utils.h +++ b/plugins/utils.h | |||
@@ -79,6 +79,18 @@ const char *state_text (int result); | |||
79 | 79 | ||
80 | #define max(a,b) (((a)>(b))?(a):(b)) | 80 | #define max(a,b) (((a)>(b))?(a):(b)) |
81 | 81 | ||
82 | char *perfdata (const char *label, | ||
83 | long int val, | ||
84 | const char *uom, | ||
85 | int warnp, | ||
86 | long int warn, | ||
87 | int critp, | ||
88 | long int crit, | ||
89 | int minp, | ||
90 | long int minv, | ||
91 | int maxp, | ||
92 | long int maxv); | ||
93 | |||
82 | /* The idea here is that, although not every plugin will use all of these, | 94 | /* The idea here is that, although not every plugin will use all of these, |
83 | most will or should. Therefore, for consistency, these very common | 95 | most will or should. Therefore, for consistency, these very common |
84 | options should have only these meanings throughout the overall suite */ | 96 | options should have only these meanings throughout the overall suite */ |