X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fwrite_sensu.c;h=1bff27b31c69918144204cde748176a0b5392682;hb=6378ec288f34ff250b2971a1452338a2b34c240a;hp=4c9f42bac2472ec4e57bdc53d9324abcfc702710;hpb=5c35d13ad952c2fbcd3dfa41a77200097e2d2dc8;p=collectd.git diff --git a/src/write_sensu.c b/src/write_sensu.c index 4c9f42ba..1bff27b3 100644 --- a/src/write_sensu.c +++ b/src/write_sensu.c @@ -28,8 +28,8 @@ #include "collectd.h" -#include "common.h" #include "plugin.h" +#include "utils/common/common.h" #include "utils_cache.h" #include #include @@ -1084,12 +1084,8 @@ static int sensu_config_node(oconfig_item_t *ci) /* {{{ */ break; } else if (strcasecmp("Port", child->key) == 0) { status = cf_util_get_service(child, &host->service); - if (status != 0) { - ERROR("write_sensu plugin: Invalid argument " - "configured for the \"Port\" " - "option."); + if (status != 0) break; - } } else if (strcasecmp("StoreRates", child->key) == 0) { status = cf_util_get_boolean(child, &host->store_rates); if (status != 0)