Code

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 9e64438503f2aa4d3d101c63e579e0847999cde4..5474659b48614a58962fbbaea52a63d02dce8047 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 21a9497e4b7186e42f0748125641b0df73964fa0..e550303dd6f890819032ed9a61e18996a7bbc81d 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));