From 65029e9cd7f810d33daafc4e10e4ef69ab534d02 Mon Sep 17 00:00:00 2001 From: Sven Trenkel Date: Sat, 26 Sep 2009 03:27:41 +0200 Subject: [PATCH] Don't try to graph operations that aren't licensed on this filer. --- src/netapp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.11.0