X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fnetapp.c;h=a4e03c6e67c3c7988f7e2a3295edf53b9cb0c0cb;hb=66f9d645f883eee0aa408428eefdebdcc6dcfa7e;hp=1615c4970e581a283be121df1b68a1a4db233dcc;hpb=a81756879d5872e75cdf4f25dbd69e4bdedd8634;p=collectd.git diff --git a/src/netapp.c b/src/netapp.c index 1615c497..a4e03c6e 100644 --- a/src/netapp.c +++ b/src/netapp.c @@ -1590,6 +1590,9 @@ static int cna_handle_volume_usage_data (const host_config_t *host, /* {{{ */ if (sis == NULL) continue; + if (na_elem_child(sis, "sis-info")) + sis = na_elem_child(sis, "sis-info"); + sis_state = na_child_get_string(sis, "state"); if (sis_state == NULL) continue; @@ -2563,7 +2566,7 @@ static int cna_config (oconfig_item_t *ci) { /* {{{ */ ud.data = host; ud.free_func = (void (*) (void *)) free_host_config; - plugin_register_complex_read (cb_name, + plugin_register_complex_read (/* group = */ NULL, cb_name, /* callback = */ cna_read, /* interval = */ (host->interval > 0) ? &interval : NULL, /* user data = */ &ud);