summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 36c6683)
raw | patch | inline | side by side (parent: 36c6683)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Wed, 19 Dec 2007 14:07:33 +0000 (15:07 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Wed, 19 Dec 2007 14:07:33 +0000 (15:07 +0100) |
src/utils_threshold.h | patch | blob | history |
diff --git a/src/utils_threshold.h b/src/utils_threshold.h
index 139d6f9fa3fd97595a7bdac31093bdd86cd94a23..dfc42d19d409e20a66a8ff25521d1b3c5ace43f7 100644 (file)
--- a/src/utils_threshold.h
+++ b/src/utils_threshold.h
#include "liboconfig/oconfig.h"
#include "plugin.h"
+/*
+ * ut_config
+ *
+ * Parses the configuration and sets up the module. This is called from
+ * `src/configfile.c'.
+ */
int ut_config (const oconfig_item_t *ci);
+
+/*
+ * ut_check_threshold
+ *
+ * Checks if a threshold is defined for this value and if such a threshold is
+ * configured, check if the value within the acceptable range. If it is not, a
+ * notification is dispatched to inform the user that a problem exists. This is
+ * called from `plugin_read_all'.
+ */
int ut_check_threshold (const data_set_t *ds, const value_list_t *vl);
+
+/*
+ * Given an identification returns
+ * 0: No threshold is defined.
+ * 1: A threshold has been found. The flag `persist' is off.
+ * 2: A threshold has been found. The flag `persist' is on.
+ * (That is, it is expected that many notifications are sent until the
+ * problem disappears.)
+ */
int ut_check_interesting (const char *name);
#endif /* UTILS_THRESHOLD_H */