summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b3a2880)
raw | patch | inline | side by side (parent: b3a2880)
author | Manuel Luis Sanmartín Rozada <manuel.luis@gmail.com> | |
Fri, 25 Jul 2014 22:01:41 +0000 (00:01 +0200) | ||
committer | Manuel Luis Sanmartín Rozada <manuel.luis@gmail.com> | |
Fri, 25 Jul 2014 22:01:41 +0000 (00:01 +0200) |
src/Makefile.am | patch | blob | history | |
src/unixsock.c | patch | blob | history | |
src/utils_cmd_getthreshold.c | patch | blob | history |
diff --git a/src/Makefile.am b/src/Makefile.am
index 86995265130f5361d44fc69226c84a96da62809c..1ffd7854c817c9bb7cb84fe54a51e3a287683822 100644 (file)
--- a/src/Makefile.am
+++ b/src/Makefile.am
unixsock_la_SOURCES = unixsock.c \
utils_cmd_flush.h utils_cmd_flush.c \
utils_cmd_getval.h utils_cmd_getval.c \
+ utils_cmd_getthreshold.h utils_cmd_getthreshold.c \
utils_cmd_listval.h utils_cmd_listval.c \
utils_cmd_putval.h utils_cmd_putval.c \
utils_cmd_putnotif.h utils_cmd_putnotif.c
diff --git a/src/unixsock.c b/src/unixsock.c
index 2c1665fc9fcbbdffc3c91935838a720e4fbf6d6f..7e7a1b1a857eb73c4529dd038d011f3b19cf1ed7 100644 (file)
--- a/src/unixsock.c
+++ b/src/unixsock.c
#include "utils_cmd_flush.h"
#include "utils_cmd_getval.h"
+#include "utils_cmd_getthreshold.h"
#include "utils_cmd_listval.h"
#include "utils_cmd_putval.h"
#include "utils_cmd_putnotif.h"
{
handle_getval (fhout, buffer);
}
+ else if (strcasecmp (fields[0], "getthreshold") == 0)
+ {
+ handle_getthreshold (fhout, buffer);
+ }
else if (strcasecmp (fields[0], "putval") == 0)
{
handle_putval (fhout, buffer);
index e8c29fa324923d4060132d1f8e6ef00955f3bb47..b8249c6a9aedb9ef51d966b3c3f729e0c4ccc3f9 100644 (file)
#include "common.h"
#include "plugin.h"
+#include "utils_avltree.h"
#include "utils_threshold.h"
#include "utils_parse_option.h" /* for `parse_string' */
#include "utils_cmd_getthreshold.h"