Use type 'percent' instead of 'zone_cpu'
authorDagobert Michelsen <dam@opencsw.org>
Thu, 28 May 2015 10:47:27 +0000 (12:47 +0200)
committerDagobert Michelsen <dam@opencsw.org>
Thu, 28 May 2015 10:47:27 +0000 (12:47 +0200)
src/types.db
src/zone.c

index 9e64438..5474659 100644 (file)
@@ -226,7 +226,6 @@ voltage                     value:GAUGE:U:U
 vs_memory              value:GAUGE:0:9223372036854775807
 vs_processes           value:GAUGE:0:65535
 vs_threads             value:GAUGE:0:65535
-zone_cpu              value:GAUGE:0:100.1
 
 #
 # Legacy types
index 21a9497..e550303 100644 (file)
@@ -86,7 +86,7 @@ zone_submit_value(char *zone, gauge_t value)
        vl.values_len = 1; /*STATIC_ARRAY_SIZE (values);*/
        sstrncpy (vl.host, hostname_g, sizeof (vl.host));
        sstrncpy (vl.plugin, "zone", sizeof (vl.plugin));
-       sstrncpy (vl.type, "zone_cpu", sizeof (vl.type));
+       sstrncpy (vl.type, "percent", sizeof (vl.type));
        sstrncpy (vl.type_instance, zone, sizeof (vl.type_instance));
 
        return(plugin_dispatch_values (&vl));