From: Vit Kabele Date: Tue, 12 Jul 2022 20:19:52 +0000 (+0200) Subject: Update the format of contrib/snmp-data.conf X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff65eaa019496ab7ebdab4c68ac19cf7f50988cf;p=thirdparty%2Fcollectd.git Update the format of contrib/snmp-data.conf Update the format of snmp-data.conf file to not issue deprecation warning on startup. s/InstancePrefix/TypeInstancePrefix/g s/Instance/TypeInstanceOID/g Signed-off-by: Vit Kabele --- diff --git a/contrib/snmp-data.conf b/contrib/snmp-data.conf index 07381db06..fbd7635a3 100644 --- a/contrib/snmp-data.conf +++ b/contrib/snmp-data.conf @@ -6,37 +6,37 @@ Type "if_octets" Table true - Instance "IF-MIB::ifDescr" + TypeInstanceOID "IF-MIB::ifDescr" Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets" Type "if_octets" Table true - Instance "IF-MIB::ifName" + TypeInstanceOID "IF-MIB::ifName" Values "IF-MIB::ifHCInOctets" "IF-MIB::ifHCOutOctets" Type "if_packets" Table true - Instance "IF-MIB::ifDescr" + TypeInstanceOID "IF-MIB::ifDescr" Values "IF-MIB::ifInUcastPkts" "IF-MIB::ifOutUcastPkts" Type "if_packets" Table true - Instance "IF-MIB::ifName" + TypeInstanceOID "IF-MIB::ifName" Values "IF-MIB::ifHCInUcastPkts" "IF-MIB::ifHCOutUcastPkts" Type "if_errors" Table true - Instance "IF-MIB::ifDescr" + TypeInstanceOID "IF-MIB::ifDescr" Values "IF-MIB::ifInErrors" "IF-MIB::ifOutErrors" Type "if_errors" Table true - Instance "IF-MIB::ifName" + TypeInstanceOID "IF-MIB::ifName" Values "IF-MIB::ifHCInErrors" "IF-MIB::ifHCOutErrors" @@ -48,139 +48,139 @@ Type "timeleft" Table false - Instance "battery" + TypeInstanceOID "battery" Values ".1.3.6.1.2.1.33.1.2.3.0" Type "percent" Table false - Instance "charge-battery" + TypeInstanceOID "charge-battery" Values ".1.3.6.1.2.1.33.1.2.4.0" Type "voltage" Table false - Instance "battery" + TypeInstanceOID "battery" Values ".1.3.6.1.2.1.33.1.2.5.0" Scale 0.1 Type "current" Table false - Instance "battery" + TypeInstanceOID "battery" Values ".1.3.6.1.2.1.33.1.2.6.0" Scale 0.1 Type "temperature" Table false - Instance "battery" + TypeInstanceOID "battery" Values ".1.3.6.1.2.1.33.1.2.7.0" # Input branch Type "frequency" Table true - InstancePrefix "input" + TypeInstancePrefix "input" Values ".1.3.6.1.2.1.33.1.3.3.1.2" Scale 0.1 Type "voltage" Table true - InstancePrefix "input" + TypeInstancePrefix "input" Values ".1.3.6.1.2.1.33.1.3.3.1.3" Type "current" Table true - InstancePrefix "input" + TypeInstancePrefix "input" Values ".1.3.6.1.2.1.33.1.3.3.1.4" Scale 0.1 Type "power" Table true - InstancePrefix "input" + TypeInstancePrefix "input" Values ".1.3.6.1.2.1.33.1.3.3.1.5" # Output branch Type "frequency" Table false - Instance "output" + TypeInstanceOID "output" Values ".1.3.6.1.2.1.33.1.4.2.0" Scale 0.1 Type "voltage" Table true - InstancePrefix "output" + TypeInstancePrefix "output" Values ".1.3.6.1.2.1.33.1.4.4.1.2" Type "current" Table true - InstancePrefix "output" + TypeInstancePrefix "output" Values ".1.3.6.1.2.1.33.1.4.4.1.3" Scale 0.1 Type "power" Table true - InstancePrefix "output" + TypeInstancePrefix "output" Values ".1.3.6.1.2.1.33.1.4.4.1.4" Type "percent" Table true - InstancePrefix "load-output" + TypeInstancePrefix "load-output" Values ".1.3.6.1.2.1.33.1.4.4.1.5" # Bypass branch Type "frequency" Table false - Instance "output" + TypeInstanceOID "output" Values ".1.3.6.1.2.1.33.1.5.1.0" Scale 0.1 Type "voltage" Table true - InstancePrefix "bypass" + TypeInstancePrefix "bypass" Values ".1.3.6.1.2.1.33.1.5.3.1.2" Type "current" Table true - InstancePrefix "bypass" + TypeInstancePrefix "bypass" Values ".1.3.6.1.2.1.33.1.5.3.1.3" Scale 0.1 Type "power" Table true - InstancePrefix "bypass" + TypeInstancePrefix "bypass" Values ".1.3.6.1.2.1.33.1.5.3.1.4" # Special definitions for broken UPSes Type "voltage" Table false - Instance "battery" + TypeInstanceOID "battery" Values ".1.3.6.1.2.1.33.1.2.5.0" Type "current" Table true - InstancePrefix "input" + TypeInstancePrefix "input" Values ".1.3.6.1.2.1.33.1.3.3.1.4" Type "current" Table true - InstancePrefix "output" + TypeInstancePrefix "output" Values ".1.3.6.1.2.1.33.1.4.4.1.3" @@ -191,19 +191,19 @@ Type "temperature" Table false - Instance "system" + TypeInstanceOID "system" Values ".1.3.6.1.4.1.5491.1.51.1.5.4.0" Type "temperature" Table false - Instance "rectifier" + TypeInstanceOID "rectifier" Values ".1.3.6.1.4.1.5491.1.51.1.5.5.0" Type "temperature" Table false - Instance "inverter" + TypeInstanceOID "inverter" Values ".1.3.6.1.4.1.5491.1.51.1.5.6.0" @@ -215,97 +215,97 @@ Type "voltage" Table true - InstancePrefix "input" + TypeInstancePrefix "input" Values ".1.3.6.1.4.1.6050.5.4.1.1.2" Type "current" Table true - InstancePrefix "input" + TypeInstancePrefix "input" Values ".1.3.6.1.4.1.6050.5.4.1.1.3" Type "power" Table true - InstancePrefix "apparent-input" + TypeInstancePrefix "apparent-input" Values ".1.3.6.1.4.1.6050.5.4.1.1.4" Scale 100.0 Type "power" Table true - InstancePrefix "active-input" + TypeInstancePrefix "active-input" Values ".1.3.6.1.4.1.6050.5.4.1.1.5" Scale 100.0 Type "percent" Table true - InstancePrefix "performance_factor-input" + TypeInstancePrefix "performance_factor-input" Values ".1.3.6.1.4.1.6050.5.4.1.1.6" # Global outputs Type "voltage" Table true - InstancePrefix "output" + TypeInstancePrefix "output" Values ".1.3.6.1.4.1.6050.5.5.1.1.2" Type "current" Table true - InstancePrefix "output" + TypeInstancePrefix "output" Values ".1.3.6.1.4.1.6050.5.5.1.1.3" Type "power" Table true - InstancePrefix "apparent-output" + TypeInstancePrefix "apparent-output" Values ".1.3.6.1.4.1.6050.5.5.1.1.4" Scale 100.0 Type "power" Table true - InstancePrefix "active-output" + TypeInstancePrefix "active-output" Values ".1.3.6.1.4.1.6050.5.5.1.1.5" Scale 100.0 Type "percent" Table true - InstancePrefix "load_level-output" + TypeInstancePrefix "load_level-output" Values ".1.3.6.1.4.1.6050.5.5.1.1.6" Type "percent" Table true - InstancePrefix "active_load_level-output" + TypeInstancePrefix "active_load_level-output" Values ".1.3.6.1.4.1.6050.5.5.1.1.7" Type "percent" Table true - InstancePrefix "performance_factor-output" + TypeInstancePrefix "performance_factor-output" Values ".1.3.6.1.4.1.6050.5.5.1.1.8" # Global DC Type "voltage" Table false - Instance "dc_positive-global" + TypeInstanceOID "dc_positive-global" Values ".1.3.6.1.4.1.6050.5.6.1.0" Type "voltage" Table false - Instance "dc_negative-global" + TypeInstanceOID "dc_negative-global" Values ".1.3.6.1.4.1.6050.5.6.2.0" Type "voltage" Table false - Instance "dc_total-global" + TypeInstanceOID "dc_total-global" Values ".1.3.6.1.4.1.6050.5.6.3.0" @@ -316,19 +316,19 @@ Type "cpu" Table false - Instance "system" + TypeInstanceOID "system" Values ".1.3.6.1.4.1.789.1.2.1.2.0" Type "cpu" Table false - Instance "idle" + TypeInstanceOID "idle" Values ".1.3.6.1.4.1.789.1.2.1.4.0" Type "if_octets" Table false - Instance "net" + TypeInstanceOID "net" Values ".1.3.6.1.4.1.789.1.2.2.12.0" ".1.3.6.1.4.1.789.1.2.2.14.0" @@ -339,25 +339,25 @@ Type "users" Table false - Instance "web" + TypeInstanceOID "web" Values ".1.3.6.1.4.1.12532.2.0" Type "users" Table false - Instance "mail" + TypeInstanceOID "mail" Values ".1.3.6.1.4.1.12532.3.0" Type "percent" Table false - Instance "logfull" + TypeInstanceOID "logfull" Values ".1.3.6.1.4.1.12532.1.0" Type "percent" Table false - Instance "diskfull" + TypeInstanceOID "diskfull" Values ".1.3.6.1.4.1.12532.25.0" @@ -370,42 +370,42 @@ Type "temperature" Table true - Instance ".1.3.6.1.4.1.5040.1.2.6.3.2.1.1.2" + TypeInstanceOID ".1.3.6.1.4.1.5040.1.2.6.3.2.1.1.2" Values ".1.3.6.1.4.1.5040.1.2.6.1.4.1.1" Scale 0.1 Type "temperature" Table true - Instance ".1.3.6.1.4.1.5040.1.2.7.3.2.1.1.2" + TypeInstanceOID ".1.3.6.1.4.1.5040.1.2.7.3.2.1.1.2" Values ".1.3.6.1.4.1.5040.1.2.7.1.4.1.1" Scale 0.1 Type "temperature" Table true - Instance ".1.3.6.1.4.1.5040.1.2.8.3.2.1.1.2" + TypeInstanceOID ".1.3.6.1.4.1.5040.1.2.8.3.2.1.1.2" Values ".1.3.6.1.4.1.5040.1.2.8.1.4.1.1" Scale 0.1 Type "temperature" Table true - Instance ".1.3.6.1.4.1.5040.1.2.1.3.2.1.1.2" + TypeInstanceOID ".1.3.6.1.4.1.5040.1.2.1.3.2.1.1.2" Values ".1.3.6.1.4.1.5040.1.2.1.1.4.1.1" Scale 0.1 Type "temperature" Table true - Instance ".1.3.6.1.4.1.5040.1.2.2.3.2.1.1.2" + TypeInstanceOID ".1.3.6.1.4.1.5040.1.2.2.3.2.1.1.2" Values ".1.3.6.1.4.1.5040.1.2.2.1.4.1.1" Scale 0.1 Type "temperature" Table true - Instance ".1.3.6.1.4.1.5040.1.2.3.3.2.1.1.2" + TypeInstanceOID ".1.3.6.1.4.1.5040.1.2.3.3.2.1.1.2" Values ".1.3.6.1.4.1.5040.1.2.3.1.4.1.1" Scale 0.1 @@ -418,38 +418,38 @@ Type "temperature" Table true - Instance ".1.3.6.1.4.1.4519.10.4.1.1.2" + TypeInstanceOID ".1.3.6.1.4.1.4519.10.4.1.1.2" Values ".1.3.6.1.4.1.4519.10.4.1.1.3" Type "humidity" Table true - Instance ".1.3.6.1.4.1.4519.10.5.1.1.2" + TypeInstanceOID ".1.3.6.1.4.1.4519.10.5.1.1.2" Values ".1.3.6.1.4.1.4519.10.5.1.1.3" Type "voltage" Table true - InstancePrefix "input" + TypeInstancePrefix "input" Values ".1.3.6.1.4.1.4519.10.6.1.1.3" # Model H2-30 Type "temperature" Table true - Instance ".1.3.6.1.4.1.1909.10.4.1.1.2" + TypeInstanceOID ".1.3.6.1.4.1.1909.10.4.1.1.2" Values ".1.3.6.1.4.1.1909.10.4.1.1.3" Type "humidity" Table true - Instance ".1.3.6.1.4.1.1909.10.5.1.1.2" + TypeInstanceOID ".1.3.6.1.4.1.1909.10.5.1.1.2" Values ".1.3.6.1.4.1.1909.10.5.1.1.3" Type "voltage" Table true - InstancePrefix "input" + TypeInstancePrefix "input" Values ".1.3.6.1.4.1.1909.10.6.1.1.3" @@ -460,24 +460,24 @@ tYPE "Bitrate" Table true - InstancePrefix "st-tx-" - Instance ".1.3.6.1.4.1.14988.1.1.1.1.1.5" + TypeInstancePrefix "st-tx-" + TypeInstanceOID ".1.3.6.1.4.1.14988.1.1.1.1.1.5" Values ".1.3.6.1.4.1.14988.1.1.1.1.1.2" Type "bitrate" Table true - InstancePrefix "st-rx-" - Instance ".1.3.6.1.4.1.14988.1.1.1.1.1.5" + TypeInstancePrefix "st-rx-" + TypeInstanceOID ".1.3.6.1.4.1.14988.1.1.1.1.1.5" Values ".1.3.6.1.4.1.14988.1.1.1.1.1.3" Type "signal_power" Table true - InstancePrefix "st-" - Instance ".1.3.6.1.4.1.14988.1.1.1.1.1.5" + TypeInstancePrefix "st-" + TypeInstanceOID ".1.3.6.1.4.1.14988.1.1.1.1.1.5" Values ".1.3.6.1.4.1.14988.1.1.1.1.1.4" @@ -485,40 +485,40 @@ Type "signal_power" Table true - InstancePrefix "ap-" - Instance ".1.3.6.1.4.1.14988.1.1.1.2.1.1" + TypeInstancePrefix "ap-" + TypeInstanceOID ".1.3.6.1.4.1.14988.1.1.1.2.1.1" Values ".1.3.6.1.4.1.14988.1.1.1.2.1.3" Type "if_octets" Table true - InstancePrefix "ap-" - Instance ".1.3.6.1.4.1.14988.1.1.1.2.1.1" + TypeInstancePrefix "ap-" + TypeInstanceOID ".1.3.6.1.4.1.14988.1.1.1.2.1.1" Values ".1.3.6.1.4.1.14988.1.1.1.2.1.5" ".1.3.6.1.4.1.14988.1.1.1.2.1.4" Type "if_packets" Table true - InstancePrefix "ap-" - Instance ".1.3.6.1.4.1.14988.1.1.1.2.1.1" + TypeInstancePrefix "ap-" + TypeInstanceOID ".1.3.6.1.4.1.14988.1.1.1.2.1.1" Values ".1.3.6.1.4.1.14988.1.1.1.2.1.7" ".1.3.6.1.4.1.14988.1.1.1.2.1.6" Type "bitrate" Table true - InstancePrefix "ap-tx-" - Instance ".1.3.6.1.4.1.14988.1.1.1.2.1.1" + TypeInstancePrefix "ap-tx-" + TypeInstanceOID ".1.3.6.1.4.1.14988.1.1.1.2.1.1" Values ".1.3.6.1.4.1.14988.1.1.1.2.1.8" Type "bitrate" Table true - InstancePrefix "ap-rx-" - Instance ".1.3.6.1.4.1.14988.1.1.1.2.1.1" + TypeInstancePrefix "ap-rx-" + TypeInstanceOID ".1.3.6.1.4.1.14988.1.1.1.2.1.1" Values ".1.3.6.1.4.1.14988.1.1.1.2.1.9"