We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6caf8c2 commit fe228f4Copy full SHA for fe228f4
1 file changed
inventory/any.cf
@@ -297,6 +297,22 @@ bundle agent cfe_autorun_inventory_setuid
297
298
}
299
300
+bundle agent cfe_autorun_inventory_timezone
301
+# @brief Inventory timezone and GMT offset
302
+{
303
+ vars:
304
+ "_now" int => now();
305
+
306
+ "timezone" -> { "ENT-6161" }
307
+ string => strftime( localtime, "%Z", $(_now) ),
308
+ meta => { "inventory", "attribute_name=Timezone" };
309
310
+ "gmt_offset" -> { "ENT-6161" }
311
+ string => strftime( localtime, "%z", $(_now) ),
312
+ meta => { "inventory", "attribute_name=Timezone GMT Offset" };
313
314
+}
315
316
bundle agent cfe_autorun_inventory_loadaverage
317
# @brief Inventory the loadaverage (Enterprise only)
318
{
0 commit comments