From: octo Date: Sun, 19 Mar 2006 10:42:44 +0000 (+0000) Subject: If `ping_add_host' failes, `ping_config' no longer returns an error condition. This... X-Git-Tag: collectd-3.8.6^2~102 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=4b7a78f3e94fac9a69f1c1f8b944a93f4988096c;p=collectd.git If `ping_add_host' failes, `ping_config' no longer returns an error condition. This way the startup of collectd doesn't fail if a host was unknown or the user may not open RAW sockets. --- diff --git a/src/ping.c b/src/ping.c index fb2f8c1d..303b2782 100644 --- a/src/ping.c +++ b/src/ping.c @@ -72,8 +72,7 @@ static int ping_config (char *key, char *value) if (ping_host_add (pingobj, value) < 0) { - syslog (LOG_ERR, "ping: `ping_host_add' failed.\n"); - return (-1); + syslog (LOG_WARNING, "ping: `ping_host_add' failed.\n"); } return (0);