unixsock plugin: Imported the new `putnotif' command from the appropriate module.
[collectd.git] / src / unixsock.c
index 3dd0b3d..a3ffd09 100644 (file)
@@ -23,7 +23,9 @@
 #include "common.h"
 #include "plugin.h"
 #include "configfile.h"
+
 #include "utils_cmd_putval.h"
+#include "utils_cmd_putnotif.h"
 
 /* Folks without pthread will need to disable this plugin. */
 #include <pthread.h>
@@ -601,6 +603,10 @@ static void *us_handle_client (void *arg)
                {
                        us_handle_listval (fh, fields, fields_num);
                }
+               else if (strcasecmp (fields[0], "putnotif") == 0)
+               {
+                       handle_putnotif (fh, fields, fields_num);
+               }
                else
                {
                        fprintf (fh, "-1 Unknown command: %s\n", fields[0]);