author | Florian Forster <octo@huhu.verplant.org> | |
Thu, 25 Feb 2010 22:55:25 +0000 (23:55 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Thu, 25 Feb 2010 22:55:25 +0000 (23:55 +0100) |
Conflicts:
src/ping.c
src/ping.c
1 | 2 | |||
---|---|---|---|---|
configure.in | patch | | diff1 | | diff2 | | blob | history |
src/apache.c | patch | | diff1 | | diff2 | | blob | history |
src/collectd.conf.in | patch | | diff1 | | diff2 | | blob | history |
src/collectd.conf.pod | patch | | diff1 | | diff2 | | blob | history |
src/exec.c | patch | | diff1 | | diff2 | | blob | history |
src/ping.c | patch | | diff1 | | diff2 | | blob | history |
src/plugin.c | patch | | diff1 | | diff2 | | blob | history |
diff --cc configure.in
Simple merge
diff --cc src/apache.c
Simple merge
diff --cc src/collectd.conf.in
Simple merge
diff --cc src/collectd.conf.pod
Simple merge
diff --cc src/exec.c
Simple merge
diff --cc src/ping.c
index 5366b98fbcc1d309be5b4161c82f5dd9ca23ff85,5187e2b7c4e8dca90153c4ebec5f43b3fcd23d9e..b536f42966639f4d7e3ca260e238b7944440294f
--- 1/src/ping.c
--- 2/src/ping.c
+++ b/src/ping.c
ping_setopt (pingobj, PING_OPT_TTL, (void *) &ping_ttl);
/* Add all the hosts to the ping object. */
- status = 0;
+ count = 0;
for (hl = hostlist_head; hl != NULL; hl = hl->next)
{
- int status;
- status = ping_host_add (pingobj, hl->host);
- if (status != 0)
- WARNING ("ping plugin: ping_host_add (%s) failed.", hl->host);
+ int tmp_status;
+ tmp_status = ping_host_add (pingobj, hl->host);
+ if (tmp_status != 0)
+ WARNING ("ping plugin: ping_host_add (%s) failed: %s",
+ hl->host, ping_get_error (pingobj));
else
- status++;
+ count++;
}
- if (status == 0)
+ if (count == 0)
{
ERROR ("ping plugin: No host could be added to ping object. Giving up.");
ping_thread_error = 1;
diff --cc src/plugin.c
index 182892a94bcea3343dbd7c067676168d4d62a7b2,c163ca7df81c178fec29f97a595e54180ee75090..1eed532c1c510553d7026111d6489fccea30360a
--- 1/src/plugin.c
--- 2/src/plugin.c
+++ b/src/plugin.c
struct timeval now;
int status;
int rf_type;
+ int rc;
/* Get the read function that needs to be read next. */
- rf = c_head_get_root (read_heap);
+ rf = c_heap_get_root (read_heap);
if (rf == NULL)
{
struct timespec abstime;