From 4b7a78f3e94fac9a69f1c1f8b944a93f4988096c Mon Sep 17 00:00:00 2001 From: octo Date: Sun, 19 Mar 2006 10:42:44 +0000 Subject: [PATCH] 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. --- src/ping.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); -- 2.11.0