projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
38e2d0e
)
Test for end of oid tree without breaking collection loop.
author
Pierre-Yves Ritschard
<pyr@spootnik.org>
Mon, 8 Jul 2013 07:06:35 +0000
(09:06 +0200)
committer
Pierre-Yves Ritschard
<pyr@spootnik.org>
Mon, 8 Jul 2013 07:06:35 +0000
(09:06 +0200)
src/snmp.c
patch
|
blob
|
history
diff --git
a/src/snmp.c
b/src/snmp.c
index
4f84932
..
ad81c89
100644
(file)
--- a/
src/snmp.c
+++ b/
src/snmp.c
@@
-1373,13
+1373,14
@@
static int csnmp_read_table (host_definition_t *host, data_definition_t *data)
csnmp_table_values_t *vt;
oid_t vb_name;
oid_t suffix;
csnmp_table_values_t *vt;
oid_t vb_name;
oid_t suffix;
+ int ret;
csnmp_oid_init (&vb_name, vb->name, vb->name_length);
/* Calculate the current suffix. This is later used to check that the
* suffix is increasing. This also checks if we left the subtree */
csnmp_oid_init (&vb_name, vb->name, vb->name_length);
/* Calculate the current suffix. This is later used to check that the
* suffix is increasing. This also checks if we left the subtree */
-
status
= csnmp_oid_suffix (&suffix, &vb_name, data->values + i);
- if (
status
!= 0)
+
ret
= csnmp_oid_suffix (&suffix, &vb_name, data->values + i);
+ if (
ret
!= 0)
{
DEBUG ("snmp plugin: host = %s; data = %s; i = %i; "
"Value probably left its subtree.",
{
DEBUG ("snmp plugin: host = %s; data = %s; i = %i; "
"Value probably left its subtree.",