From: Sven Trenkel Date: Sat, 26 Sep 2009 01:27:41 +0000 (+0200) Subject: Don't try to graph operations that aren't licensed X-Git-Tag: collectd-4.9.0~73^2~23^2~3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=65029e9cd7f810d33daafc4e10e4ef69ab534d02;p=collectd.git Don't try to graph operations that aren't licensed on this filer. --- diff --git a/src/netapp.c b/src/netapp.c index 87b88501..bce92ea6 100644 --- a/src/netapp.c +++ b/src/netapp.c @@ -1005,7 +1005,7 @@ static void collect_perf_system_data(host_config_t *host, na_elem_t *out, void * cpu_total = (counter_t) value; counter_flags |= 0x20; } else if ((cfg_system->flags & CFG_SYSTEM_OPS) - && (strlen(name) > 4) + && (value > 0) && (strlen(name) > 4) && (!strcmp(name + strlen(name) - 4, "_ops"))) { submit_counter (host->name, instance, "disk_ops_complex", name, (counter_t) value, timestamp);