projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ea1756
)
ping plugin: Deactivate the plugin if (pingobj == NULL).
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Sat, 23 Feb 2008 09:56:37 +0000
(10:56 +0100)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Sat, 23 Feb 2008 09:56:37 +0000
(10:56 +0100)
If (pingobj == NULL), then the init-function will return (-1) so that the
plugin is deactivated.
src/ping.c
patch
|
blob
|
history
diff --git
a/src/ping.c
b/src/ping.c
index
27a65fa
..
05f660b
100644
(file)
--- a/
src/ping.c
+++ b/
src/ping.c
@@
-106,15
+106,18
@@
static void add_hosts (void)
hl_this = hl_this->next;
}
}
-}
+}
/* void add_hosts */
static int ping_init (void)
{
+ if (pingobj == NULL)
+ return (-1);
+
if (hosts != NULL)
add_hosts ();
return (0);
-}
+}
/* int ping_init */
static int ping_config (const char *key, const char *value)
{