X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_cache.h;h=51d9c031385d026da27203bb8d12b7c4c40c928a;hb=5cc8977fa83ad48de503b0e7d4b3af39f905dce6;hp=2983d9ac29a9cc650280faf9dca95f973531920b;hpb=fbcda5ac431bbb293157bf00e204310dcb65afd3;p=collectd.git diff --git a/src/utils_cache.h b/src/utils_cache.h index 2983d9ac..51d9c031 100644 --- a/src/utils_cache.h +++ b/src/utils_cache.h @@ -24,9 +24,18 @@ #include "plugin.h" +#define STATE_OKAY 0 +#define STATE_WARNING 1 +#define STATE_ERROR 2 +#define STATE_MISSING 15 + int uc_init (void); int uc_check_timeout (void); int uc_update (const data_set_t *ds, const value_list_t *vl); gauge_t *uc_get_rate (const data_set_t *ds, const value_list_t *vl); +int uc_get_state (const data_set_t *ds, const value_list_t *vl); +int uc_set_state (const data_set_t *ds, const value_list_t *vl, int state); + +/* vim: set shiftwidth=2 softtabstop=2 tabstop=8 : */ #endif /* !UTILS_CACHE_H */