projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03326ee
)
collectd-nagios: Select a single host in LISTVAL output when -H has been used.
author
Sebastian Harl
<sh@tokkee.org>
Mon, 16 May 2011 12:43:34 +0000
(14:43 +0200)
committer
Sebastian Harl
<sh@tokkee.org>
Mon, 16 May 2011 12:43:34 +0000
(14:43 +0200)
src/collectd-nagios.c
patch
|
blob
|
history
diff --git
a/src/collectd-nagios.c
b/src/collectd-nagios.c
index
d3923f1
..
d6e9868
100644
(file)
--- a/
src/collectd-nagios.c
+++ b/
src/collectd-nagios.c
@@
-288,6
+288,9
@@
static int do_listval (lcc_connection_t *connection)
for (i = 0; i < ret_ident_num; ++i) {
char id[1024];
+ if ((hostname_g != NULL) && (strcasecmp (hostname_g, ret_ident[i].host)))
+ continue;
+
status = lcc_identifier_to_string (connection,
id, sizeof (id), ret_ident + i);
if (status != 0) {