From e3c644a9e74cce0175d43c31b79dc3883b49b69f Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Mon, 27 Oct 2025 23:30:07 +0100 Subject: [PATCH] collector: add fields to SNMP scraper Collect system location and uptime. --- roles/collector/templates/snmp.conf.j2 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/roles/collector/templates/snmp.conf.j2 b/roles/collector/templates/snmp.conf.j2 index dd4624d..d0de538 100644 --- a/roles/collector/templates/snmp.conf.j2 +++ b/roles/collector/templates/snmp.conf.j2 @@ -25,6 +25,15 @@ oid = "RFC1213-MIB::sysName.0" is_tag = true + [[inputs.snmp.field]] + name = "location" + oid = "RFC1213-MIB::sysLocation.0" + + [[inputs.snmp.field]] + name = "uptime" + oid = "RFC1213-MIB::sysUpTime.0" + conversion = "float(2)" + # interface table [[inputs.snmp.table]] name = "iface"