routeros: Use 'voltage' and 'temperature' as reported types
authorPavel Rochnyack <pavel2000@ngs.ru>
Sun, 8 Jul 2018 08:24:07 +0000 (15:24 +0700)
committerPavel Rochnyack <pavel2000@ngs.ru>
Sun, 8 Jul 2018 08:24:07 +0000 (15:24 +0700)
src/routeros.c

index 7598698..63ad3c4 100644 (file)
@@ -225,8 +225,8 @@ static int handle_system_health(__attribute__((unused))
     return (EINVAL);
   rd = user_data;
 
-  cr_submit_gauge(rd, "gauge", "voltage", (gauge_t)r->voltage);
-  cr_submit_gauge(rd, "gauge", "temperature", (gauge_t)r->temperature);
+  cr_submit_gauge(rd, "voltage", "system", (gauge_t)r->voltage);
+  cr_submit_gauge(rd, "temperature", "system", (gauge_t)r->temperature);
 
   return (0);
 } /* }}} int handle_system_health */