Don't try to graph operations that aren't licensed
authorSven Trenkel <collectd@semidefinite.de>
Sat, 26 Sep 2009 01:27:41 +0000 (03:27 +0200)
committerSven Trenkel <collectd@semidefinite.de>
Sat, 26 Sep 2009 01:27:41 +0000 (03:27 +0200)
on this filer.

src/netapp.c

index 87b8850..bce92ea 100644 (file)
@@ -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);