Closed mattroell closed 2 years ago
Hello @mattroell , could you answer us some questions please?
Hi @toni-moreno,
{"Info":{"FileName":"bulkexport_APC01_20211011_93.json","Description":"Autogenerated","Author":"snmpcollector","Tags":"","AgentVersion":"0.10.0","ExportVersion":"1.0","CreationDate":"2021-10-11T16:03:58.234381007Z"},"Objects":[{"ObjectTypeID":"snmpmetriccfg","ObjectID":"apc-ups-upsProbeCurrentHumid","Options":null,"ObjectCfg":{"ID":"apc-ups-upsProbeCurrentHumid","FieldName":"apc-ups-upsProbeCurrentHumid","Description":" The current humidity reading from the probe in percent\nrelative humidity.","BaseOID":".1.3.6.1.4.1.318.1.1.10.2.3.2.1.6","DataSrcType":"INTEGER","GetRate":false,"Scale":0,"Shift":0,"IsTag":false,"ExtraData":"","Conversion":0},"Error":""},{"ObjectTypeID":"snmpmetriccfg","ObjectID":"apc-ups-upsProbeCurrentTemp","Options":null,"ObjectCfg":{"ID":"apc-ups-upsProbeCurrentTemp","FieldName":"apc-ups-upsProbeCurrentTemp","Description":" The current temperature reading from the probe displayed\nin the units shown in the 'iemStatusProbeTempUnits' OID\n(Celsius or Fahrenheit).","BaseOID":".1.3.6.1.4.1.318.1.1.10.2.3.2.1.4","DataSrcType":"INTEGER","GetRate":false,"Scale":0,"Shift":0,"IsTag":false,"ExtraData":"","Conversion":0},"Error":""},{"ObjectTypeID":"snmpmetriccfg","ObjectID":"apc-ups-upsProbeStatus","Options":null,"ObjectCfg":{"ID bulkexport_APC01_20211011_93.txt ":"apc-ups-upsProbeStatus","FieldName":"apc-ups-upsProbeStatus","Description":" The connected status of the probe, either\ndisconnected(1) or connected(2).","BaseOID":".1.3.6.1.4.1.318.1.1.10.2.3.2.1.3","DataSrcType":"INTEGER","GetRate":false,"Scale":0,"Shift":0,"IsTag":false,"ExtraData":"","Conversion":0},"Error":""},{"ObjectTypeID":"snmpmetriccfg","ObjectID":"apc-ups-upsProbeName","Options":null,"ObjectCfg":{"ID":"apc-ups-upsProbeName","FieldName":"apc-ups-upsProbeName","Description":" A descriptive name for the probe set by the user.","BaseOID":".1.3.6.1.4.1.318.1.1.10.2.3.2.1.2","DataSrcType":"OCTETSTRING","GetRate":false,"Scale":0,"Shift":0,"IsTag":false,"ExtraData":"","Conversion":0},"Error":""},{"ObjectTypeID":"measurementcfg","ObjectID":"apc-ups-upsProbeTable","Options":null,"ObjectCfg":{"ID":"apc-ups-upsProbeTable","Name":"apc-ups-upsProbeNumber","GetMode":"indexed","IndexOID":".1.3.6.1.4.1.318.1.1.10.2.3.2.1.1","TagOID":"","MultiTagOID":null,"IndexTag":"apc-ups-upsProbeNumber","IndexTagFormat":"","IndexAsValue":false,"MultiIndexCfg":null,"MultiIndexResult":"","MultiIndexVersion":"","Fields":[{"ID":"apc-ups-upsProbeName","Report":1},{"ID":"apc-ups-upsProbeStatus","Report":1},{"ID":"apc-ups-upsProbeCurrentTemp","Report":1},{"ID":"apc-ups-upsProbeCurrentHumid","Report":1}],"Description":" The index of the probe."},"Error":""},{"ObjectTypeID":"snmpmetriccfg","ObjectID":"apc-ups-upsFrequency","Options":null,"ObjectCfg":{"ID":"apc-ups-upsFrequency","FieldName":"apc-ups-upsFrequency","Description":"The input energy usage of the UPS in kWh.","BaseOID":".1.3.6.1.4.1.318.1.1.1.3.2.4.0","DataSrcType":"Gauge32","GetRate":false,"Scale":0,"Shift":0,"IsTag":false,"ExtraData":"","Conversion":0},"Error":""},{"ObjectTypeID":"snmpmetriccfg","ObjectID":"apc-ups-upsVoltage","Options":null,"ObjectCfg":{"ID":"apc-ups-upsVoltage","FieldName":"apc-ups-upsVoltage","Description":" The current utility line voltage in VAC.","BaseOID":".1.3.6.1.4.1.318.1.1.1.3.2.1.0","DataSrcType":"Gauge32","GetRate":false,"Scale":0,"Shift":0,"IsTag":false,"ExtraData":"","Conversion":0},"Error":""},{"ObjectTypeID":"snmpmetriccfg","ObjectID":"apc-ups-upsBatteryLoad","Options":null,"ObjectCfg":{"ID":"apc-ups-upsBatteryLoad","FieldName":"apc-ups-upsBatteryLoad","Description":" The current UPS load expressed in tenths of percent\nof rated capacity.","BaseOID":".1.3.6.1.4.1.318.1.1.1.4.3.3.0","DataSrcType":"Gauge32","GetRate":false,"Scale":0,"Shift":0,"IsTag":false,"ExtraData":"","Conversion":0},"Error":""},{"ObjectTypeID":"measurementcfg","ObjectID":"APC-QuickStats","Options":null,"ObjectCfg":{"ID":"APC-QuickStats","Name":"APC-QuickStats","GetMode":"value","IndexOID":"","TagOID":"","MultiTagOID":null,"IndexTag":"","IndexTagFormat":"","IndexAsValue":false,"MultiIndexCfg":null,"MultiIndexResult":"","MultiIndexVersion":"","Fields":[{"ID":"apc-ups-upsBatteryLoad","Report":1},{"ID":"apc-ups-upsVoltage","Report":1},{"ID":"apc-ups-upsFrequency","Report":1}],"Description":""},"Error":""},{"ObjectTypeID":"snmpmetriccfg","ObjectID":"apc-ups-upsBasicBatteryRunTimeRemaining","Options":null,"ObjectCfg":{"ID":"apc-ups-upsBasicBatteryRunTimeRemaining","FieldName":"apc-ups-upsBasicBatteryRunTimeRemaining","Description":" The UPS battery run time remaining before battery\nexhaustion.","BaseOID":".1.3.6.1.4.1.318.1.1.1.2.2.3.0","DataSrcType":"TimeTicks","GetRate":false,"Scale":0,"Shift":0,"IsTag":false,"ExtraData":"","Conversion":0},"Error":""},{"ObjectTypeID":"snmpmetriccfg","ObjectID":"apc-ups-upsBasicBatteryTemperature","Options":null,"ObjectCfg":{"ID":"apc-ups-upsBasicBatteryTemperature","FieldName":"apc-ups-upsBasicBatteryTemperature","Description":" The current internal UPS temperature expressed in\nCelsius.","BaseOID":".1.3.6.1.4.1.318.1.1.1.2.2.2.0","DataSrcType":"Integer32","GetRate":false,"Scale":0,"Shift":0,"IsTag":false,"ExtraData":"","Conversion":0},"Error":""},{"ObjectTypeID":"snmpmetriccfg","ObjectID":"apc-ups-upsBasicBatteryTimeOnBattery","Options":null,"ObjectCfg":{"ID":"apc-ups-upsBasicBatteryTimeOnBattery","FieldName":"apc-ups-upsBasicBatteryTimeOnBattery","Description":" The elapsed time since the UPS has switched to battery\npower.","BaseOID":".1.3.6.1.4.1.318.1.1.1.2.1.2.0","DataSrcType":"TIMETICKS","GetRate":false,"Scale":0,"Shift":0,"IsTag":false,"ExtraData":"","Conversion":0},"Error":""},{"ObjectTypeID":"measurementcfg","ObjectID":"APC-BasicBattery-Info","Options":null,"ObjectCfg":{"ID":"APC-BasicBattery-Info","Name":"APC-BasicBattery-Info","GetMode":"value","IndexOID":"","TagOID":"","MultiTagOID":null,"IndexTag":"","IndexTagFormat":"","IndexAsValue":false,"MultiIndexCfg":null,"MultiIndexResult":"","MultiIndexVersion":"","Fields":[{"ID":"apc-ups-upsBasicBatteryTimeOnBattery","Report":1},{"ID":"apc-ups-upsBasicBatteryTemperature","Report":1},{"ID":"apc-ups-upsBasicBatteryRunTimeRemaining","Report":1}],"Description":""},"Error":""},{"ObjectTypeID":"snmpmetriccfg","ObjectID":"apc-ups-upsBasicBatteryReplaceIndicator","Options":null,"ObjectCfg":{"ID":"apc-ups-upsBasicBatteryReplaceIndicator","FieldName":"apc-ups-upsBasicBatteryReplaceIndicator","Description":" Indicates whether the UPS batteries need replacing. noBatteryNeedsReplacing(1), batteryNeedsReplacing(2)","BaseOID":".1.3.6.1.4.1.318.1.1.1.2.2.4.0","DataSrcType":"INTEGER","GetRate":false,"Scale":0,"Shift":0,"IsTag":false,"ExtraData":"","Conversion":0},"Error":""},{"ObjectTypeID":"snmpmetriccfg","ObjectID":"apc-ups-upsBasicBatteryLastReplaceDate","Options":null,"ObjectCfg":{"ID":"apc-ups-upsBasicBatteryLastReplaceDate","FieldName":"apc-ups-upsBasicBatteryLastReplaceDate","Description":" The date when the UPS system's batteries were last replaced\nin mm/dd/yy (or yyyy) format. For Smart-UPS models, this value\nis originally set in the factory. When the UPS batteries\nare replaced, this value should be reset by the administrator.\nFor Symmetra PX 250/500 this OID is read only and is configurable in the local display only.","BaseOID":".1.3.6.1.4.1.318.1.1.1.2.1.3.0","DataSrcType":"OCTETSTRING","GetRate":false,"Scale":0,"Shift":0,"IsTag":false,"ExtraData":"","Conversion":0},"Error":""},{"ObjectTypeID":"snmpmetriccfg","ObjectID":"apc-ups-upsBasicBatteryStatus","Options":null,"ObjectCfg":{"ID":"apc-ups-upsBasicBatteryStatus","FieldName":"apc-ups-upsBasicBatteryStatus","Description":" The status of the UPS batteries. A batteryLow(3) value\nindicates the UPS will be unable to sustain the current\nload, and its services will be lost if power is not restored.\nThe amount of run time in reserve at the time of low battery\ncan be configured by the upsAdvConfigLowBatteryRunTime.\nA batteryInFaultCondition(4)value indicates that a battery\ninstalled has an internal error condition.","BaseOID":".1.3.6.1.4.1.318.1.1.1.2.1.1.0","DataSrcType":"INTEGER","GetRate":false,"Scale":0,"Shift":0,"IsTag":false,"ExtraData":"","Conversion":0},"Error":""},{"ObjectTypeID":"snmpmetriccfg","ObjectID":"apc-ups-upsAdvTestLastDiagDate","Options":null,"ObjectCfg":{"ID":"apc-ups-upsAdvTestLastDiagDate","FieldName":"apc-ups-upsAdvTestLastDiagDate","Description":" The date the last UPS diagnostics test was performed in\nmm/dd/yy format.","BaseOID":".1.3.6.1.4.1.318.1.1.1.7.2.4.0","DataSrcType":"OCTETSTRING","GetRate":false,"Scale":0,"Shift":0,"IsTag":false,"ExtraData":"","Conversion":0},"Error":""},{"ObjectTypeID":"snmpmetriccfg","ObjectID":"apc-ups-upsAdvTestDiagnosticsResults","Options":null,"ObjectCfg":{"ID":"apc-ups-upsAdvTestDiagnosticsResults","FieldName":"apc-ups-upsAdvTestDiagnosticsResults","Description":" The results of the last UPS diagnostics test performed.ok(1), failed(2), invalidTest(3), testInProgress(4)","BaseOID":".1.3.6.1.4.1.318.1.1.1.7.2.3.0","DataSrcType":"INTEGER","GetRate":false,"Scale":0,"Shift":0,"IsTag":false,"ExtraData":"","Conversion":0},"Error":""},{"ObjectTypeID":"snmpmetriccfg","ObjectID":"apc-ups-upsAdvTestDiagnostics","Options":null,"ObjectCfg":{"ID":"apc-ups-upsAdvTestDiagnostics","FieldName":"apc-ups-upsAdvTestDiagnostics","Description":" Setting this variable to testDiagnostics(2) causes\nthe UPS to perform a diagnostic self test.\nSetting this value to noTestDiagnostics(1) has no\neffect.\nThe value noTestDiagnostics(1) will always be returned\nwhen the variable is read.","BaseOID":".1.3.6.1.4.1.318.1.1.1.7.2.2.0","DataSrcType":"INTEGER","GetRate":false,"Scale":0,"Shift":0,"IsTag":false,"ExtraData":"","Conversion":0},"Error":""},{"ObjectTypeID":"snmpmetriccfg","ObjectID":"apc-ups-upsAdvTestDiagSch","Options":null,"ObjectCfg":{"ID":"apc-ups-upsAdvTestDiagSch","FieldName":"apc-ups-upsAdvTestDiagSch","Description":" The UPS system's automatic battery test schedule. unknown(1), biweekly(2), weekly(3), atTurnOn(4), never(5), fourWeeks(6), twelveWeeks(7), biweeklySinceLastTest(8), weeklySinceLastTest(9), eightWeeks(10), twentysixWeeks(11), fiftytwoWeeks(12)","BaseOID":"..1.3.6.1.4.1.318.1.1.1.7.2.1.0","DataSrcType":"INTEGER","GetRate":false,"Scale":0,"Shift":0,"IsTag":false,"ExtraData":"","Conversion":0},"Error":""},{"ObjectTypeID":"snmpmetriccfg","ObjectID":"apc-ups-upsAdvIdentSerialNumber","Options":null,"ObjectCfg":{"ID":"apc-ups-upsAdvIdentSerialNumber","FieldName":"apc-ups-upsAdvIdentSerialNumber","Description":" An 8-character string identifying the serial number of\nthe UPS internal microprocessor. This number is set at\nthe factory. NOTE:This number does NOT correspond to\nthe serial number on the rear of the UPS.","BaseOID":".1.3.6.1.4.1.318.1.1.1.1.2.3.0","DataSrcType":"OCTETSTRING","GetRate":false,"Scale":0,"Shift":0,"IsTag":false,"ExtraData":"","Conversion":0},"Error":""},{"ObjectTypeID":"snmpmetriccfg","ObjectID":"apc-ups-upsBasicIdentName","Options":null,"ObjectCfg":{"ID":"apc-ups-upsBasicIdentName","FieldName":"apc-ups-upsBasicIdentName","Description":" An 8 byte ID string identifying the UPS. This object\ncan be set by the administrator.","BaseOID":".1.3.6.1.4.1.318.1.1.1.1.1.2.0","DataSrcType":"OCTETSTRING","GetRate":false,"Scale":0,"Shift":0,"IsTag":false,"ExtraData":"","Conversion":0},"Error":""},{"ObjectTypeID":"snmpmetriccfg","ObjectID":"apc-ups-upsBasicIdentModel","Options":null,"ObjectCfg":{"ID":"apc-ups-upsBasicIdentModel","FieldName":"apc-ups-upsBasicIdentModel","Description":" The UPS model name (e.g. 'APC Smart-UPS 600').","BaseOID":".1.3.6.1.4.1.318.1.1.1.1.1.1.0","DataSrcType":"OCTETSTRING","GetRate":false,"Scale":0,"Shift":0,"IsTag":false,"ExtraData":"","Conversion":0},"Error":""},{"ObjectTypeID":"snmpmetriccfg","ObjectID":"apc-system-sysLocation","Options":null,"ObjectCfg":{"ID":"apc-system-sysLocation","FieldName":"apc-system-sysLocation","Description":" The physical location of this node (e.g.,\n`telephone closet, 3rd floor').","BaseOID":".1.3.6.1.2.1.1.6.0","DataSrcType":"OCTETSTRING","GetRate":false,"Scale":0,"Shift":0,"IsTag":false,"ExtraData":"","Conversion":0},"Error":""},{"ObjectTypeID":"snmpmetriccfg","ObjectID":"apc-system-sysUpName","Options":null,"ObjectCfg":{"ID":"apc-system-sysUpName","FieldName":"apc-system-sysUpName","Description":" An administratively-assigned name for this\nmanaged node. By convention, this is the node's\nfully-qualified domain name.","BaseOID":".1.3.6.1.2.1.1.5.0","DataSrcType":"OCTETSTRING","GetRate":false,"Scale":0,"Shift":0,"IsTag":false,"ExtraData":"","Conversion":0},"Error":""},{"ObjectTypeID":"snmpmetriccfg","ObjectID":"apc-system-sysUpTime","Options":null,"ObjectCfg":{"ID":"apc-system-sysUpTime","FieldName":"apc-system-sysUpTime","Description":" The time (in hundredths of a second) since the\nnetwork management portion of the system was last\nre-initialized","BaseOID":".1.3.6.1.2.1.1.3.0","DataSrcType":"TimeTicks","GetRate":false,"Scale":0,"Shift":0,"IsTag":false,"ExtraData":"","Conversion":0},"Error":""},{"ObjectTypeID":"snmpmetriccfg","ObjectID":"apc-system-sysDescr","Options":null,"ObjectCfg":{"ID":"apc-system-sysDescr","FieldName":"apc-system-sysDescr","Description":" A textual description of the entity. This value\nshould include the full name and version\nidentification of the system's hardware type,\nsoftware operating-system, and networking\nsoftware. It is mandatory that this only contain\nprintable ASCII characters.","BaseOID":".1.3.6.1.2.1.1.1.0","DataSrcType":"OCTETSTRING","GetRate":false,"Scale":0,"Shift":0,"IsTag":false,"ExtraData":"","Conversion":0},"Error":""},{"ObjectTypeID":"measurementcfg","ObjectID":"APC-Basic-Info","Options":null,"ObjectCfg":{"ID":"APC-Basic-Info","Name":"APC-Basic-Info","GetMode":"value","IndexOID":"","TagOID":"","MultiTagOID":null,"IndexTag":"","IndexTagFormat":"","IndexAsValue":false,"MultiIndexCfg":null,"MultiIndexResult":"","MultiIndexVersion":"","Fields":[{"ID":"apc-system-sysDescr","Report":1},{"ID":"apc-system-sysUpTime","Report":1},{"ID":"apc-system-sysUpName","Report":1},{"ID":"apc-system-sysLocation","Report":1},{"ID":"apc-ups-upsBasicIdentModel","Report":1},{"ID":"apc-ups-upsBasicIdentName","Report":1},{"ID":"apc-ups-upsAdvIdentSerialNumber","Report":1},{"ID":"apc-ups-upsAdvTestDiagSch","Report":1},{"ID":"apc-ups-upsAdvTestDiagnostics","Report":1},{"ID":"apc-ups-upsAdvTestDiagnosticsResults","Report":1},{"ID":"apc-ups-upsAdvTestLastDiagDate","Report":1},{"ID":"apc-ups-upsBasicBatteryStatus","Report":1},{"ID":"apc-ups-upsBasicBatteryLastReplaceDate","Report":1},{"ID":"apc-ups-upsBasicBatteryRunTimeRemaining","Report":1},{"ID":"apc-ups-upsBasicBatteryReplaceIndicator","Report":1}],"Description":""},"Error":""},{"ObjectTypeID":"measgroupcfg","ObjectID":"APC","Options":null,"ObjectCfg":{"ID":"APC","Measurements":["APC-Basic-Info","APC-BasicBattery-Info","APC-QuickStats","APC-TestData","apc-ups-upsProbeTable"],"Description":""},"Error":""},{"ObjectTypeID":"snmpdevicecfg","ObjectID":"APC01","Options":null,"ObjectCfg":{"ID":"APC01","Host":"10.0.0.51","Port":161,"SystemOIDs":[""],"Retries":5,"Timeout":20,"Repeat":0,"Active":true,"SnmpVersion":"1","Community":"public","V3SecLevel":"","V3AuthUser":"","V3AuthPass":"","V3AuthProt":"","V3PrivPass":"","V3PrivProt":"","V3ContextEngineID":"","V3ContextName":"","DisableBulk":false,"MaxRepetitions":50,"Freq":60,"UpdateFltFreq":60,"ConcurrentGather":true,"OutDB":"default","LogLevel":"info","LogFile":"","SnmpDebug":false,"DeviceTagName":"UPS","DeviceTagValue":"id","ExtraTags":[""],"DeviceVars":null,"Description":"","MeasurementGroups":["APC"],"MeasFilters":null},"Error":""}] bulkexport_APC01_20211011_93.txt }
Hello @mattroell , from 0.7.7 to 0.11.0 just released yesterday has been some breaking changes that system administrators should resolve. ( by example https://github.com/toni-moreno/snmpcollector/blob/master/CHANGELOG.md#breaking-changes-5, and also https://github.com/toni-moreno/snmpcollector/blob/master/CHANGELOG.md#breaking-changes-4 )
Upgrading from server daemon based snmpcollector to a docker based should be done carefully.Config seems to be fine. Let me know if you need professional support and I will redirect to our support manager.
Hi @toni-moreno I just finished setting up v 0.11.0 and its running great.
@mattroell this is a really excellent new, anyway 0.9.X and 0.10.0 has been working on production for months.
Please include this information: - What SnmpCollector version are you using? Docker: SnmpCollector version 0.10.0 Influxdb Version: 1.8
- What OS are you running snmpcollector on? It's running the image from Tag 0.10.0 (Linux/amd64)
- What did you do? I've tried all the different versions of snmpcollector starting with version 0.7.5 and haven't been able to get any version to write to influx. Other programs can write to influx without any issues, I have reset the user account a few times just to make sure (password and write access). I've also tried creating a completly new influxdb docker container. snmpcollector can ping the influxdb server, I've tried changing the server address in snmpcollector's conf, (hostname, docker IP and external server IP -with port). I've also setup the correct permissions for the folders (volumes chown -R 472:472) that snmpcollector need in Docker. I also found that snmpcollector isn't creating a database when the config is set to sqlite3, I have to use mysql (which is working fine).
Here is my config.toml
I removed all the comments to save space
############################
General Config
############################
[general]
instanceID = "SNMPCOLLECTOR" datadir = "/opt/snmpcollector/conf" logdir = "/opt/snmpcollector/log" loglevel = "debug" log_mode = "file"
############################
DataBase Config
############################
[database] type = "mysql" host = "mariadbdbphp:3306" user = "snmp" password = "snmp" name = "snmpcollector" log_mode = "file" sqllogfile = "mysql.log" debug = true
############################
Self Monitorig Config
############################ [selfmon] enabled = true freq = 60 prefix = "" inheritdevicetags = true extratags = [ "instance=snmpcollector01" ]
############################
Embedded WebServer Config
############################
[http] listen = ":8090" protocol = "http" adminuser = "adm1" adminpassword = "adm1pass" cookieid ="my_instance_cookie"
Log Files
snmpcollector.log
time="2021-10-07 23:17:33" level=debug msg="-----------------------END Config metrics----------------------" time="2021-10-07 23:17:33" level=info msg="setting HTML Static Path to public" time="2021-10-07 23:17:33" level=info msg="WEBUI: Server is running on :8090..." time="2021-10-07 23:18:07" level=info msg="CONTEXT &{Context:0xc001294240 SignedInUser: Session:0xc0015f0d20 IsSignedIn:false}" time="2021-10-07 23:18:10" level=info msg="Admin login OK" time="2021-10-07 23:18:29" level=info msg="deactivating runtime on device aruba315wireless" time="2021-10-07 23:18:33" level=debug msg="Reseting Influxstats for DB influxdb" time="2021-10-07 23:18:33" level=debug msg="Reseting Influxstats for DUMMY DB " time="2021-10-07 23:18:44" level=info msg="get runtime data from id APC01" time="2021-10-07 23:19:29" level=debug msg="Getting DEVICEs &[0xc0028a63c0]" time="2021-10-07 23:19:33" level=debug msg="Reseting Influxstats for DB influxdb" time="2021-10-07 23:19:33" level=debug msg="Reseting Influxstats for DUMMY DB " time="2021-10-07 23:19:36" level=info msg="trying to ping influx server influxdb : {ID:influxdb Host:influxdb1-8 Port:8086 DB:nfda-snmpcollector User:snmp Password:snmp Retention:autogen Precision:s Timeout:30 UserAgent:snmpcollector EnableSSL:false SSLCA: SSLCert: SSLKey: InsecureSkipVerify:true BufferSize:65535 Description:}" time="2021-10-07 23:19:36" level=info msg="PING Influx Database influxdb : Elapsed ( 2.615269ms ) : MSG : 1.8.6" time="2021-10-07 23:19:36" level=debug msg="OK on ping InfluxDB Server 2.615269ms, 1.8.6" time="2021-10-07 23:19:40" level=debug msg="Tying to update: {ID:influxdb Host:influxdb1-8 Port:8086 DB:nfda-snmpcollector User:snmp Password:snmp Retention:autogen Precision:s Timeout:30 UserAgent:snmpcollector EnableSSL:false SSLCA: SSLCert: SSLKey: InsecureSkipVerify:true BufferSize:65535 Description:}" time="2021-10-07 23:19:40" level=info msg="Updated Influx Config Successfully with id influxdb and data:{ID:influxdb Host:influxdb1-8 Port:8086 DB:nfda-snmpcollector User:snmp Password:snmp Retention:autogen Precision:s Timeout:30 UserAgent:snmpcollector EnableSSL:false SSLCA: SSLCert: SSLKey: InsecureSkipVerify:true BufferSize:65535 Description:}, affected" time="2021-10-07 23:19:40" level=debug msg="Getting DEVICEs &[0xc001780d20]" time="2021-10-07 23:20:30" level=debug msg="Getting Metrics &[0xc00249f050 0xc00249f0e0 0xc00249f170 0xc00249f200 0xc00249f290 0xc00249f320 0xc00249f3b0 0xc00249f440 0xc00249f4d0 0xc00249f560 0xc00249f5f0 0xc00249f680 0xc00249f710 0xc00249f7a0 0xc00249f830 0xc00249f8c0 0xc00249f950 0xc00249f9e0 0xc00249fa70 0xc00249fb00 0xc00249fb90 0xc00249fc20 0xc00249fcb0 0xc00249fd40 0xc00249fdd0 0xc00249fe60 0xc00249fef0 0xc002534090 0xc002534120 0xc0025341b0 0xc002534240 0xc0025342d0 0xc002534360 0xc0025343f0 0xc002534480 0xc002534510 0xc0025345a0 0xc002534630 0xc0025346c0 0xc002534750 0xc0025347e0 0xc002534870 0xc002534900 0xc002534990 0xc002534a20 0xc002534ab0 0xc002534b40 0xc002534bd0 0xc002534c60 0xc002534cf0 0xc002534d80 0xc002534e10 0xc002534ea0 0xc002534f30 0xc002534fc0 0xc002535050 0xc0025350e0 0xc002535170 0xc002535200 0xc002535290 0xc002535320 0xc0025353b0 0xc002535440 0xc0025354d0 0xc002535560 0xc0025355f0 0xc002535680 0xc002535710 0xc0025357a0 0xc002535830 0xc0025358c0 0xc002535950 0xc0025359e0 0xc002535a70 0xc002535b00 0xc002535b90 0xc002535c20 0xc002535cb0 0xc002535d40 0xc002535dd0 0xc002535e60 0xc002535ef0 0xc000c82000 0xc000c82090 0xc000c82120 0xc000c821b0 0xc000c82240 0xc000c822d0 0xc000c82360 0xc000c823f0 0xc000c82480 0xc000c82510 0xc000c825a0 0xc000c82630 0xc000c826c0 0xc000c82750 0xc000c827e0 0xc000c82870 0xc000c82900 0xc000c82990 0xc000c82a20 0xc000c82ab0 0xc000c82b40 0xc000c82bd0 0xc000c82cf0 0xc000c82d80 0xc000c82e10 0xc000c82ea0 0xc000c82f30 0xc000c82fc0 0xc000c83050 0xc000c830e0 0xc000c83170 0xc000c83200 0xc000c83290 0xc000c83320 0xc000c833b0 0xc000c83440 0xc000c834d0 0xc000c83560 0xc000c835f0 0xc000c83680 0xc000c83710 0xc000c837a0 0xc000c83830 0xc000c838c0 0xc000c83950 0xc000c839e0 0xc000c83a70 0xc000c83b00 0xc000c83b90 0xc000c83c20 0xc000c83cb0 0xc000c83d40 0xc000c83dd0 0xc000c83e60 0xc000c83ef0 0xc001294000 0xc001294090 0xc001294120 0xc001294240 0xc0012942d0 0xc001294360 0xc0012943f0 0xc001294480 0xc001294510 0xc0012945a0 0xc001294630 0xc0012946c0 0xc001294750 0xc0012947e0 0xc001294870 0xc001294900 0xc001294990 0xc001294a20 0xc001294ab0 0xc001294b40 0xc001294bd0 0xc001294c60 0xc001294cf0 0xc001294d80 0xc001294e10 0xc001294ea0 0xc001294f30 0xc001294fc0 0xc001295050 0xc0012950e0 0xc001295170 0xc001295200 0xc001295290 0xc001295320 0xc0012953b0 0xc001295440 0xc0012954d0 0xc001295560 0xc0012955f0 0xc001295680 0xc001295710 0xc0012957a0 0xc001295830 0xc0012958c0 0xc001295950 0xc0012959e0 0xc001295a70 0xc001295b00 0xc001295b90 0xc001295c20 0xc001295cb0 0xc001295d40 0xc001295dd0 0xc001295e60 0xc001295ef0 0xc0003902d0 0xc000390360 0xc0003903f0 0xc000390480 0xc000390510 0xc0003905a0 0xc000390630 0xc0003906c0 0xc000390750 0xc0003907e0 0xc000390870 0xc000390900 0xc000390990 0xc000390a20 0xc000390b40 0xc000390bd0 0xc000390c60 0xc000390cf0 0xc000390d80 0xc000390e10 0xc000390ea0 0xc000390f30 0xc000390fc0 0xc000391050 0xc0003910e0 0xc000391170 0xc000391200 0xc000391290 0xc000391320 0xc0003913b0 0xc000391440 0xc0003914d0 0xc000391560 0xc0003915f0 0xc000391680 0xc000391710 0xc0003917a0 0xc000391830 0xc0003918c0 0xc000391950 0xc0003919e0 0xc000391a70 0xc000391b00 0xc000391b90 0xc000391c20 0xc000391cb0 0xc000391d40 0xc000391dd0 0xc000391e60 0xc000391ef0 0xc0003f0000 0xc0003f0090 0xc0003f0120 0xc0003f01b0 0xc0028bc000 0xc0028bc090 0xc0028bc120 0xc0028bc1b0 0xc0028bc240 0xc0028bc2d0 0xc0028bc360 0xc0028bc3f0 0xc0028bc480 0xc0028bc510 0xc0028bc5a0 0xc0028bc630 0xc0028bc6c0 0xc0028bc750 0xc0028bc7e0 0xc0028bc870 0xc0028bc900 0xc0028bc990 0xc0028bca20 0xc0028bcab0 0xc0028bcb40 0xc0028bcbd0 0xc0028bcc60 0xc0028bccf0 0xc0028bcd80 0xc0028bce10 0xc0028bcea0 0xc0028bcf30 0xc0028bcfc0 0xc0028bd050 0xc0028bd0e0 0xc0028bd170 0xc0028bd200 0xc0028bd290]" time="2021-10-07 23:20:33" level=debug msg="Reseting Influxstats for DB influxdb" time="2021-10-07 23:20:33" level=debug msg="Reseting Influxstats for DUMMY DB " time="2021-10-07 23:21:33" level=debug msg="Reseting Influxstats for DUMMY DB " time="2021-10-07 23:21:33" level=debug msg="Reseting Influxstats for DB influxdb" time="2021-10-07 23:22:33" level=debug msg="Reseting Influxstats for DB influxdb"
Influxstats ... is then repeated for a few hundred lines
http_access.log
[Macaron] 2021-10-07 23:18:07: Started GET /api/rt/device/info for 10.10.0.3 [Macaron] [4;31m2021-10-07 23:18:07: Completed GET /api/rt/device/info 403 Forbidden in 589.683µs[0m [Macaron] 2021-10-07 23:18:07: Started GET /api/rt/agent/info/version/ for 10.10.0.3 [Macaron] [1;32m2021-10-07 23:18:07: Completed GET /api/rt/agent/info/version/ 200 OK in 274.46µs[0m [Macaron] 2021-10-07 23:18:10: Started POST /login for 10.10.0.3 [Macaron] [1;32m2021-10-07 23:18:10: Completed POST /login 200 OK in 426.843µs[0m [Macaron] 2021-10-07 23:18:10: Started GET /api/rt/agent/info/version/ for 10.10.0.3 [Macaron] [1;32m2021-10-07 23:18:10: Completed GET /api/rt/agent/info/version/ 200 OK in 593.544µs[0m [Macaron] 2021-10-07 23:18:10: Started GET /api/rt/device/info for 10.10.0.3 [Macaron] [1;32m2021-10-07 23:18:10: Completed GET /api/rt/device/info 200 OK in 1.606402ms[0m [Macaron] 2021-10-07 23:18:29: Started PUT /api/rt/device/status/deactivate/aruba315wireless for 10.10.0.3 [Macaron] [1;32m2021-10-07 23:18:29: Completed PUT /api/rt/device/status/deactivate/aruba315wireless 200 OK in 215.946µs[0m [Macaron] 2021-10-07 23:18:44: Started GET /api/rt/device/info/APC01 for 10.10.0.3 [Macaron] [1;32m2021-10-07 23:18:44: Completed GET /api/rt/device/info/APC01 200 OK in 2.52918ms[0m [Macaron] 2021-10-07 23:18:52: Started GET /api/rt/device/info for 10.10.0.3 [Macaron] [1;32m2021-10-07 23:18:52: Completed GET /api/rt/device/info 200 OK in 1.68036ms[0m [Macaron] 2021-10-07 23:19:29: Started GET /api/cfg/influxservers for 10.10.0.3 [Macaron] [1;32m2021-10-07 23:19:29: Completed GET /api/cfg/influxservers 200 OK in 1.749568ms[0m [Macaron] 2021-10-07 23:19:32: Started GET /api/cfg/influxservers/influxdb for 10.10.0.3 [Macaron] [1;32m2021-10-07 23:19:32: Completed GET /api/cfg/influxservers/influxdb 200 OK in 1.547748ms[0m [Macaron] 2021-10-07 23:19:36: Started POST /api/cfg/influxservers/ping/ for 10.10.0.3 [Macaron] [1;32m2021-10-07 23:19:36: Completed POST /api/cfg/influxservers/ping/ 200 OK in 3.288866ms[0m [Macaron] 2021-10-07 23:19:40: Started PUT /api/cfg/influxservers/influxdb for 10.10.0.3 [Macaron] [1;32m2021-10-07 23:19:40: Completed PUT /api/cfg/influxservers/influxdb 200 OK in 1.570547ms[0m [Macaron] 2021-10-07 23:19:40: Started GET /api/cfg/influxservers for 10.10.0.3 [Macaron] [1;32m2021-10-07 23:19:40: Completed GET /api/cfg/influxservers 200 OK in 1.226676ms[0m [Macaron] 2021-10-07 23:20:30: Started GET /api/cfg/metric for 10.10.0.3 [Macaron] [1;32m2021-10-07 23:20:30: Completed GET /api/cfg/metric 200 OK in 142.424635ms[0m [Macaron] 2021-10-07 23:20:32: Started GET /api/rt/device/info for 10.10.0.3 [Macaron] [1;32m2021-10-07 23:20:32: Completed GET /api/rt/device/info 200 OK in 1.055252ms[0m
mysql.log
[xorm] [info] 2021/10/07 23:17:33.106887 [SQL] SELECT
TABLE_NAME
fromINFORMATION_SCHEMA
.TABLES
WHERETABLE_SCHEMA
=? andTABLE_NAME
=? []interface {}{"snmpcollector", "var_catalog_cfg"} [xorm] [info] 2021/10/07 23:17:33.114776 [SQL] SELECTTABLE_NAME
fromINFORMATION_SCHEMA
.TABLES
WHERETABLE_SCHEMA
=? andTABLE_NAME
=? []interface {}{"snmpcollector", "influx_cfg"} [xorm] [info] 2021/10/07 23:17:33.289812 [SQL] SELECTTABLE_NAME
fromINFORMATION_SCHEMA
.TABLES
WHERETABLE_SCHEMA
=? andTABLE_NAME
=? []interface {}{"snmpcollector", "snmp_device_cfg"} [xorm] [info] 2021/10/07 23:17:33.319494 [SQL] SELECTTABLE_NAME
fromINFORMATION_SCHEMA
.TABLES
WHERETABLE_SCHEMA
=? andTABLE_NAME
=? []interface {}{"snmpcollector", "snmp_metric_cfg"} [xorm] [info] 2021/10/07 23:17:33.329187 [SQL] SELECTTABLE_NAME
fromINFORMATION_SCHEMA
.TABLES
WHERETABLE_SCHEMA
=? andTABLE_NAME
=? []interface {}{"snmpcollector", "measurement_cfg"} [xorm] [info] 2021/10/07 23:17:33.365593 [SQL] SELECTTABLE_NAME
fromINFORMATION_SCHEMA
.TABLES
WHERETABLE_SCHEMA
=? andTABLE_NAME
=? []interface {}{"snmpcollector", "meas_filter_cfg"} [xorm] [info] 2021/10/07 23:17:33.372862 [SQL] SELECTTABLE_NAME
fromINFORMATION_SCHEMA
.TABLES
WHERETABLE_SCHEMA
=? andTABLE_NAME
=? []interface {}{"snmpcollector", "measurement_field_cfg"} [xorm] [info] 2021/10/07 23:17:33.376219 [SQL] SELECTTABLE_NAME
fromINFORMATION_SCHEMA
.TABLES
WHERETABLE_SCHEMA
=? andTABLE_NAME
=? []interface {}{"snmpcollector", "m_groups_cfg"} [xorm] [info] 2021/10/07 23:17:33.378573 [SQL] SELECTTABLE_NAME
fromINFORMATION_SCHEMA
.TABLES
WHERETABLE_SCHEMA
=? andTABLE_NAME
=? []interface {}{"snmpcollector", "m_groups_measurements"} [xorm] [info] 2021/10/07 23:17:33.380638 [SQL] SELECTTABLE_NAME
fromINFORMATION_SCHEMA
.TABLES
WHERETABLE_SCHEMA
=? andTABLE_NAME
=? []interface {}{"snmpcollector", "snmp_dev_m_groups"} [xorm] [info] 2021/10/07 23:17:33.382510 [SQL] SELECTTABLE_NAME
fromINFORMATION_SCHEMA
.TABLES
WHERETABLE_SCHEMA
=? andTABLE_NAME
=? []interface {}{"snmpcollector", "snmp_dev_filters"} [xorm] [info] 2021/10/07 23:17:33.384415 [SQL] SELECTTABLE_NAME
fromINFORMATION_SCHEMA
.TABLES
WHERETABLE_SCHEMA
=? andTABLE_NAME
=? []interface {}{"snmpcollector", "custom_filter_cfg"} [xorm] [info] 2021/10/07 23:17:33.388121 [SQL] SELECTTABLE_NAME
fromINFORMATION_SCHEMA
.TABLES
WHERETABLE_SCHEMA
=? andTABLE_NAME
=? []interface {}{"snmpcollector", "custom_filter_items"} [xorm] [info] 2021/10/07 23:17:33.413679 [SQL] SELECTTABLE_NAME
fromINFORMATION_SCHEMA
.TABLES
WHERETABLE_SCHEMA
=? andTABLE_NAME
=? []interface {}{"snmpcollector", "oid_condition_cfg"} [xorm] [info] 2021/10/07 23:17:33.420269 [SQL] SELECTid
,type
,value
,description
FROMvar_catalog_cfg
[xorm] [info] 2021/10/07 23:17:33.420583 [SQL] SELECTid
,host
,port
,db
,user
,password
,retention
,precision
,timeout
,useragent
,enable_ssl
,ssl_ca
,ssl_cert
,ssl_key
,insecure_skip_verify
,buffer_size
,description
FROMinflux_cfg
[xorm] [info] 2021/10/07 23:17:33.421034 [SQL] SELECTid
,field_name
,description
,baseoid
,datasrctype
,getrate
,scale
,shift
,istag
,extradata
,conversion
FROMsnmp_metric_cfg
[xorm] [info] 2021/10/07 23:17:33.442055 [SQL] SELECTid
,name
,getmode
,indexoid
,tagoid
,mtagoid
,indextag
,indextagformat
,indexasvalue
,multiindex
,multiindexresult
,multiindexrversion
,description
FROMmeasurement_cfg
[xorm] [info] 2021/10/07 23:17:33.444787 [SQL] SELECTid_measurement_cfg
,id_metric_cfg
,report
FROMmeasurement_field_cfg
[xorm] [info] 2021/10/07 23:17:33.449772 [SQL] SELECTid
,id_measurement_cfg
,filter_type
,filter_name
,enable_alias
,description
FROMmeas_filter_cfg
[xorm] [info] 2021/10/07 23:17:33.450374 [SQL] SELECTid
,description
FROMm_groups_cfg
[xorm] [info] 2021/10/07 23:17:33.450786 [SQL] SELECTid_mgroup_cfg
,id_measurement_cfg
FROMm_groups_measurements
[xorm] [info] 2021/10/07 23:17:33.451617 [SQL] SELECTid
,host
,port
,systemoids
,retries
,timeout
,repeat
,active
,snmpversion
,community
,v3seclevel
,v3authuser
,v3authpass
,v3authprot
,v3privpass
,v3privprot
,v3contextengineid
,v3contextname
,disablebulk
,maxrepetitions
,freq
,update_flt_freq
,concurrent_gather
,outdb
,loglevel
,logfile
,snmpdebug
,devicetagname
,devicetagvalue
,extra-tags
,devicevars
,description
FROMsnmp_device_cfg
[xorm] [info] 2021/10/07 23:17:33.455265 [SQL] SELECTid_snmpdev
,id_mgroup_cfg
FROMsnmp_dev_m_groups
[xorm] [info] 2021/10/07 23:17:33.455784 [SQL] SELECTid_snmpdev
,id_filter
FROMsnmp_dev_filters
[xorm] [info] 2021/10/07 23:19:29.207750 [SQL] SELECTid
,host
,port
,db
,user
,password
,retention
,precision
,timeout
,useragent
,enable_ssl
,ssl_ca
,ssl_cert
,ssl_key
,insecure_skip_verify
,buffer_size
,description
FROMinflux_cfg
[xorm] [info] 2021/10/07 23:19:32.493634 [SQL] SELECTid
,host
,port
,db
,user
,password
,retention
,precision
,timeout
,useragent
,enable_ssl
,ssl_ca
,ssl_cert
,ssl_key
,insecure_skip_verify
,buffer_size
,description
FROMinflux_cfg
WHERE (id='influxdb') [xorm] [info] 2021/10/07 23:19:40.899821 [SQL] UPDATEinflux_cfg
SETid
= ?,host
= ?,port
= ?,db
= ?,user
= ?,password
= ?,retention
= ?,precision
= ?,timeout
= ?,useragent
= ?,enable_ssl
= ?,ssl_ca
= ?,ssl_cert
= ?,ssl_key
= ?,insecure_skip_verify
= ?,buffer_size
= ?,description
= ? WHERE (id='influxdb') []interface {}{"influxdb", "influxdb1-8", 8086, "nfda-snmpcollector", "snmp", "snmp", "autogen", "s", 30, "snmpcollector", false, "", "", "", true, 65535, ""} [xorm] [info] 2021/10/07 23:19:40.965860 [SQL] SELECTid
,host
,port
,db
,user
,password
,retention
,precision
,timeout
,useragent
,enable_ssl
,ssl_ca
,ssl_cert
,ssl_key
,insecure_skip_verify
,buffer_size
,description
FROMinflux_cfg
[xorm] [info] 2021/10/07 23:20:30.831920 [SQL] SELECTid
,field_name
,description
,baseoid
,datasrctype
,getrate
,scale
,shift
,istag
,extradata
,conversion
FROMsnmp_metric_cfg
docker-compose.yaml
The containers start without any errors
Define a snmpcollector service ####https://hub.docker.com/r/tonimoreno/snmpcollector https://github.com/toni-moreno/snmpcollector
snmpcollector: hostname: snmpcollector container_name: snmpcollector image: tonimoreno/snmpcollector networks:
https://hub.docker.com/_/influxdb
KEEP IMAGE v1.8 others wont work
influxdb1-8: hostname: influxdb1-8 container_name: influxdb1-8 image: influxdb:1.8 networks:
/var/lib/docker-data/influxdb_data1-8:/var/lib/influxdb restart: unless-stopped
Contianer Logs
snmpcollector
time="2021-10-05 17:08:44" level=info msg="Main agent Logging will be written to file " time="2021-10-05 17:17:49" level=info msg="Main agent Logging will be written to file " time="2021-10-05 17:18:31" level=info msg="Main agent Logging will be written to file " time="2021-10-07 23:17:33" level=info msg="Main agent Logging will be written to file "
Influxdb
[httpd] 172.18.0.21 - - [08/Oct/2021:17:23:02 +0000] "GET /ping HTTP/1.1" 204 0 "-" "Go-http-client/1.1" 6445820d-285c-11ec-8087-0242ac120017 23
ts=2021-10-08T17:23:02.680320Z lvl=info msg="Executing query" log_id=0X1rW0GW000 service=query query="SHOW DATABASES"
[httpd] 172.18.0.21 - - [08/Oct/2021:17:23:02 +0000] "POST /query?db=&epoch=ms&q=SHOW+DATABASES&rp= HTTP/1.1 " 200 124 "-" "Go-http-client/1.1" 6451660f-285c-11ec-8088-0242ac120017 856
ts=2021-10-08T17:23:02.686208Z lvl=info msg="Executing query" log_id=0X1rW0GW000 service=query query="SHOW MEASUREMENTS ON _internal"
[httpd] 172.18.0.21 - - [08/Oct/2021:17:23:02 +0000] "POST /query?db=_internal&epoch=ms&q=SHOW+MEASUREMENTS&rp= HTTP/1.1 " 200 179 "-" "Go-http-client/1.1" 645249e0-285c-11ec-8089-0242ac120017 688
ts=2021-10-08T17:23:02.773226Z lvl=info msg="Executing query" log_id=0X1rW0GW000 service=query query="SHOW RETENTION POLICIES ON _internal"
[httpd] 172.18.0.21 - - [08/Oct/2021:17:23:02 +0000] "POST /query?db=&epoch=ms&q=SHOW+RETENTION+POLICIES+ON+%22_internal%22&rp= HTTP/1.1 " 200 153 "-" "Go-http-client/1.1" 645f93dd-285c-11ec-808a-0242ac120017 632
ts=2021-10-08T17:23:02.859649Z lvl=info msg="Executing query" log_id=0X1rW0GW000 service=query query="SHOW RETENTION POLICIES ON \"nfda-snmpcollector\""
[httpd] 172.18.0.21 - - [08/Oct/2021:17:23:02 +0000] "POST /query?db=&epoch=ms&q=SHOW+RETENTION+POLICIES+ON+%22nfda-snmpcollector%22&rp= HTTP/1.1 " 200 149 "-" "Go-http-client/1.1" 646cc00c-285c-11ec-808b-0242ac120017 459
ts=2021-10-08T17:23:05.226684Z lvl=info msg="Executing query" log_id=0X1rW0GW000 service=query query="SHOW MEASUREMENTS ON nfda-snmpcollector"
[httpd] 172.18.0.21 - - [08/Oct/2021:17:23:05 +0000] "POST /query?db=nfda-snmpcollector&epoch=ms&q=SHOW+MEASUREMENTS&rp= HTTP/1.1 " 200 57 "-" "Go-http-client/1.1" 65d5ee2a-285c-11ec-808c-0242ac120017 864
ts=2021-10-08T17:32:57.515867Z lvl=info msg="Retention policy deletion check (start)" log_id=0X1rW0GW000 service=retention trace_id=0X4FHsAl000 op_name=retention_delete_check op_event=start
ts=2021-10-08T17:32:57.515979Z lvl=info msg="Retention policy deletion check (end)" log_id=0X1rW0GW000 service=retention trace_id=0X4FHsAl000 op_name=retention_delete_check op_event=end op_elapsed=0.149ms
ts=2021-10-08T18:02:57.515848Z lvl=info msg="Retention policy deletion check (start)" log_id=0X1rW0GW000 service=retention trace_id=0X4G~jQl000 op_name=retention_delete_check op_event=start
ts=2021-10-08T18:02:57.515940Z lvl=info msg="Retention policy deletion check (end)" log_id=0X1rW0GW000 service=retention trace_id=0X4G~jQl000 op_name=retention_delete_check op_event=end op_elapsed=0.126ms
ts=2021-10-08T18:32:57.515919Z lvl=info msg="Retention policy deletion check (start)" log_id=0X1rW0GW000 service=retention trace_id=0X4Iiafl000 op_name=retention_delete_check op_event=start
ts=2021-10-08T18:32:57.516030Z lvl=info msg="Retention policy deletion check (end)" log_id=0X1rW0GW000 service=retention trace_id=0X4Iiafl000 op_name=retention_delete_check op_event=end op_elapsed=0.153ms
ts=2021-10-08T19:02:57.515819Z lvl=info msg="Retention policy deletion check (start)" log_id=0X1rW0GW000 service=retention trace_id=0X4KRSvl000 op_name=retention_delete_check op_event=start
ts=2021-10-08T19:02:57.515920Z lvl=info msg="Retention policy deletion check (end)" log_id=0X1rW0GW000 service=retention trace_id=0X4KRSvl000 op_name=retention_delete_check op_event=end op_elapsed=0.128ms
ts=2021-10-08T19:32:57.515835Z lvl=info msg="Retention policy deletion check (start)" log_id=0X1rW0GW000 service=retention trace_id=0X4M9KAl000 op_name=retention_delete_check op_event=start
ts=2021-10-08T19:32:57.515961Z lvl=info msg="Retention policy deletion check (end)" log_id=0X1rW0GW000 service=retention trace_id=0X4M9KAl000 op_name=retention_delete_check op_event=end op_elapsed=0.158ms
Here is a log file for a battery back, APC01
I'm able to look at the MEASUREMENTS in snmpcollector
This is begining of the log file for this snmp device
time="2021-10-07 21:24:26" level=error msg="SNMPDEVICE [APC01] Error on tag definition TAG=VALUE [ ]" time="2021-10-07 21:24:26" level=warning msg="SNMPDEVICE [APC01] No Custom Variables detected in device" time="2021-10-07 21:24:26" level=info msg="SNMPDEVICE [APC01] Can not initialize this device: Is Active: true | Connection Active: true " time="2021-10-07 21:24:26" level=info msg="SNMPDEVICE [APC01] Beginning gather process for device on host (10.0.0.51)" time="2021-10-07 21:24:26" level=info msg="SNMPDEVICE [APC01] Beginning SNMP connection for measurement init" time="2021-10-07 21:24:26" level=info msg="First SNMP connection to host 10.0.0.51 stablished with MaxRepetitions set to 50" time="2021-10-07 21:24:26" level=info msg="Got basic system info snmp.SysInfo{SysDescr:\"APC Web/SNMP Management Card (MB:v3.9.2 PF:v3.7.3 PN:apc_hw02_aos_373.bin AF1:v3.7.2 AN1:apc_hw02_sumx_372.bin MN:AP9619 HR:A10 SN: JA0345037777 MD:11/10/2003) (Embedded PowerNet SNMP Agent SW v2.2 compatible)\", SysUptime:39390515000000000, SysContact:\"NFDA IT\", SysName:\"APC1\", SysLocation:\"Data Center Rack1\"} " time="2021-10-07 21:24:26" level=info msg="SNMPDEVICE [APC01] SNMP connection stablished Successfully for device and measurement init" time="2021-10-07 21:24:26" level=info msg="SNMPDEVICE [APC01] Beginning SNMP connection for measurement APC-QuickStats" time="2021-10-07 21:24:26" level=info msg="First SNMP connection to host 10.0.0.51 stablished with MaxRepetitions set to 50" time="2021-10-07 21:24:26" level=info msg="Got basic system info snmp.SysInfo{SysDescr:\"APC Web/SNMP Management Card (MB:v3.9.2 PF:v3.7.3 PN:apc_hw02_aos_373.bin AF1:v3.7.2 AN1:apc_hw02_sumx_372.bin MN:AP9619 HR:A10 SN: JA0345037777 MD:11/10/2003) (Embedded PowerNet SNMP Agent SW v2.2 compatible)\", SysUptime:39390515000000000, SysContact:\"NFDA IT\", SysName:\"APC1\", SysLocation:\"Data Center Rack1\"} " time="2021-10-07 21:24:26" level=info msg="SNMPDEVICE [APC01] SNMP connection stablished Successfully for device and measurement APC-QuickStats" time="2021-10-07 21:24:26" level=warning msg="SNMPDEVICE [APC01] no measurement configured with name APC-TestData in host : 10.0.0.51" time="2021-10-07 21:24:26" level=info msg="SNMPDEVICE [APC01] Beginning SNMP connection for measurement apc-ups-upsProbeTable" time="2021-10-07 21:24:26" level=info msg="First SNMP connection to host 10.0.0.51 stablished with MaxRepetitions set to 50" time="2021-10-07 21:24:26" level=info msg="Got basic system info snmp.SysInfo{SysDescr:\"APC Web/SNMP Management Card (MB:v3.9.2 PF:v3.7.3 PN:apc_hw02_aos_373.bin AF1:v3.7.2 AN1:apc_hw02_sumx_372.bin MN:AP9619 HR:A10 SN: JA0345037777 MD:11/10/2003) (Embedded PowerNet SNMP Agent SW v2.2 compatible)\", SysUptime:39390515000000000, SysContact:\"NFDA IT\", SysName:\"APC1\", SysLocation:\"Data Center Rack1\"} " time="2021-10-07 21:24:26" level=info msg="SNMPDEVICE [APC01] SNMP connection stablished Successfully for device and measurement apc-ups-upsProbeTable" time="2021-10-07 21:24:26" level=info msg="MEASUREMENT [apc-ups-upsProbeTable] Loading Indexed values" time="2021-10-07 21:24:26" level=error msg="WARNING ON SNMPMETRIC ( apc-ups-upsProbeName ): You are using version >=0.8 version without database upgrade: you should upgrade the DB by executing this SQL on your database \"update snmp_metric_cfg set Conversion=3 where datasrctype='OCTETSTRING';\", to avoid this message " time="2021-10-07 21:24:27" level=info msg="SNMPDEVICE [APC01] Beginning SNMP connection for measurement APC-Basic-Info" time="2021-10-07 21:24:27" level=info msg="First SNMP connection to host 10.0.0.51 stablished with MaxRepetitions set to 50" time="2021-10-07 21:24:27" level=info msg="Got basic system info snmp.SysInfo{SysDescr:\"APC Web/SNMP Management Card (MB:v3.9.2 PF:v3.7.3 PN:apc_hw02_aos_373.bin AF1:v3.7.2 AN1:apc_hw02_sumx_372.bin MN:AP9619 HR:A10 SN: JA0345037777 MD:11/10/2003) (Embedded PowerNet SNMP Agent SW v2.2 compatible)\", SysUptime:39390516000000000, SysContact:\"NFDA IT\", SysName:\"APC1\", SysLocation:\"Data Center Rack1\"} " time="2021-10-07 21:24:27" level=info msg="SNMPDEVICE [APC01] SNMP connection stablished Successfully for device and measurement APC-Basic-Info" time="2021-10-07 21:24:27" level=error msg="WARNING ON SNMPMETRIC ( apc-system-sysDescr ): You are using version >=0.8 version without database upgrade: you should upgrade the DB by executing this SQL on your database \"update snmp_metric_cfg set Conversion=3 where datasrctype='OCTETSTRING';\", to avoid this message " time="2021-10-07 21:24:27" level=error msg="WARNING ON SNMPMETRIC ( apc-system-sysUpName ): You are using version >=0.8 version without database upgrade: you should upgrade the DB by executing this SQL on your database \"update snmp_metric_cfg set Conversion=3 where datasrctype='OCTETSTRING';\", to avoid this message " time="2021-10-07 21:24:27" level=error msg="WARNING ON SNMPMETRIC ( apc-system-sysLocation ): You are using version >=0.8 version without database upgrade: you should upgrade the DB by executing this SQL on your database \"update snmp_metric_cfg set Conversion=3 where datasrctype='OCTETSTRING';\", to avoid this message " time="2021-10-07 21:24:27" level=error msg="WARNING ON SNMPMETRIC ( apc-ups-upsBasicIdentModel ): You are using version >=0.8 version without database upgrade: you should upgrade the DB by executing this SQL on your database \"update snmp_metric_cfg set Conversion=3 where datasrctype='OCTETSTRING';\", to avoid this message " time="2021-10-07 21:24:27" level=error msg="WARNING ON SNMPMETRIC ( apc-ups-upsBasicIdentName ): You are using version >=0.8 version without database upgrade: you should upgrade the DB by executing this SQL on your database \"update snmp_metric_cfg set Conversion=3 where datasrctype='OCTETSTRING';\", to avoid this message " time="2021-10-07 21:24:27" level=error msg="WARNING ON SNMPMETRIC ( apc-ups-upsAdvIdentSerialNumber ): You are using version >=0.8 version without database upgrade: you should upgrade the DB by executing this SQL on your database \"update snmp_metric_cfg set Conversion=3 where datasrctype='OCTETSTRING';\", to avoid this message " time="2021-10-07 21:24:27" level=error msg="WARNING ON SNMPMETRIC ( apc-ups-upsAdvTestLastDiagDate ): You are using version >=0.8 version without database upgrade: you should upgrade the DB by executing this SQL on your database \"update snmp_metric_cfg set Conversion=3 where datasrctype='OCTETSTRING';\", to avoid this message " time="2021-10-07 21:24:27" level=error msg="WARNING ON SNMPMETRIC ( apc-ups-upsBasicBatteryLastReplaceDate ): You are using version >=0.8 version without database upgrade: you should upgrade the DB by executing this SQL on your database \"update snmp_metric_cfg set Conversion=3 where datasrctype='OCTETSTRING';\", to avoid this message " time="2021-10-07 21:24:27" level=info msg="SNMPDEVICE [APC01] Beginning SNMP connection for measurement APC-BasicBattery-Info" time="2021-10-07 21:24:27" level=info msg="First SNMP connection to host 10.0.0.51 stablished with MaxRepetitions set to 50" time="2021-10-07 21:24:27" level=info msg="Got basic system info snmp.SysInfo{SysDescr:\"APC Web/SNMP Management Card (MB:v3.9.2 PF:v3.7.3 PN:apc_hw02_aos_373.bin AF1:v3.7.2 AN1:apc_hw02_sumx_372.bin MN:AP9619 HR:A10 SN: JA0345037777 MD:11/10/2003) (Embedded PowerNet SNMP Agent SW v2.2 compatible)\", SysUptime:39390516000000000, SysContact:\"NFDA IT\", SysName:\"APC1\", SysLocation:\"Data Center Rack1\"} " time="2021-10-07 21:24:27" level=info msg="SNMPDEVICE [APC01] SNMP connection stablished Successfully for device and measurement APC-BasicBattery-Info" time="2021-10-07 21:24:27" level=error msg="MEASUREMENT [APC-Basic-Info] OID .1.3.6.1.4.1.318.1.1.1.7.2.1.0 Not Found in measurement APC-Basic-Info" time="2021-10-07 21:24:27" level=info msg="SNMPDEVICE [APC01] snmp INIT runtime measurements/filters took [1.704879153s] " time="2021-10-07 21:24:27" level=info msg="Waiting 32.227130605s to round until nearest interval... (Cycle = 60 seconds)" time="2021-10-07 21:25:00" level=info msg="SNMPDEVICE [APC01] Init gather cycle mode Concurrent [ true ]" time="2021-10-07 21:25:00" level=info msg="MEASUREMENT [APC-BasicBattery-Info] Not Oid CONDITIONEVAL metrics exist on this measurement" time="2021-10-07 21:25:00" level=info msg="MEASUREMENT [APC-BasicBattery-Info] Not EVAL metrics exist on this measurement" time="2021-10-07 21:25:00" level=info msg="MEASUREMENT [APC-QuickStats] Not Oid CONDITIONEVAL metrics exist on this measurement" time="2021-10-07 21:25:00" level=info msg="MEASUREMENT [APC-QuickStats] Not EVAL metrics exist on this measurement" time="2021-10-07 21:25:00" level=error msg="MEASUREMENT [APC-Basic-Info] OID .1.3.6.1.4.1.318.1.1.1.7.2.1.0 Not Found in measurement APC-Basic-Info" time="2021-10-07 21:25:00" level=info msg="MEASUREMENT [APC-Basic-Info] Not Oid CONDITIONEVAL metrics exist on this measurement" time="2021-10-07 21:25:00" level=info msg="MEASUREMENT [APC-Basic-Info] Not EVAL metrics exist on this measurement" time="2021-10-07 21:25:00" level=warning msg="Warning METRIC ID [apc-ups-upsAdvTestDiagSch] from MEASUREMENT[ APC-Basic-Info ] with TAGS [map[UPS:APC01]] has no valid data => See Metric Runtime [ &{cfg:0xc0025b7050 Valid:false CookedValue: CurValue: LastValue: CurTime:0001-01-01 00:00:00 +0000 UTC LastTime:0001-01-01 00:00:00 +0000 UTC ElapsedTime:0 Compute: Scale:0x9dd1e0 Convert:0x9e09c0 SetRawData:0x9dd460 RealOID:..1.3.6.1.4.1.318.1.1.1.7.2.1.0 Report:1 re: mm:[] expr: condflt: log:0xc00020fc70} ]"
time="2021-10-07 21:25:00" level=info msg="MEASUREMENT [apc-ups-upsProbeTable] Not Oid CONDITIONEVAL metrics exist on this measurement"
time="2021-10-07 21:25:00" level=info msg="MEASUREMENT [apc-ups-upsProbeTable] Not EVAL metrics exist on this measurement"
time="2021-10-07 21:25:00" level=info msg="STATS SNMP GET: snmp polling took [0.620136 seconds] SNMP: Gets [25] , Processed [24], Errors [0]"
time="2021-10-07 21:25:00" level=info msg="STATS SNMP FILTER: filter polling took [0.000000 seconds] "
time="2021-10-07 21:25:00" level=info msg="STATS INFLUX: influx send took [0.000005 seconds]"
This section bellow is repeated multiple times
time="2021-10-08 19:59:00" level=info msg="SNMPDEVICE [APC01] Init gather cycle mode Concurrent [ true ]" time="2021-10-08 19:59:00" level=info msg="MEASUREMENT [APC-QuickStats] Not Oid CONDITIONEVAL metrics exist on this measurement" time="2021-10-08 19:59:00" level=info msg="MEASUREMENT [APC-QuickStats] Not EVAL metrics exist on this measurement" time="2021-10-08 19:59:00" level=error msg="MEASUREMENT [APC-Basic-Info] OID .1.3.6.1.4.1.318.1.1.1.7.2.1.0 Not Found in measurement APC-Basic-Info" time="2021-10-08 19:59:00" level=info msg="MEASUREMENT [APC-BasicBattery-Info] Not Oid CONDITIONEVAL metrics exist on this measurement" time="2021-10-08 19:59:00" level=info msg="MEASUREMENT [APC-BasicBattery-Info] Not EVAL metrics exist on this measurement" time="2021-10-08 19:59:00" level=info msg="MEASUREMENT [APC-Basic-Info] Not Oid CONDITIONEVAL metrics exist on this measurement" time="2021-10-08 19:59:00" level=info msg="MEASUREMENT [APC-Basic-Info] Not EVAL metrics exist on this measurement" time="2021-10-08 19:59:00" level=warning msg="Warning METRIC ID [apc-ups-upsAdvTestDiagSch] from MEASUREMENT[ APC-Basic-Info ] with TAGS [map[UPS:APC01]] has no valid data => See Metric Runtime [ &{cfg:0xc00047c480 Valid:false CookedValue: CurValue: LastValue: CurTime:0001-01-01 00:00:00 +0000 UTC LastTime:0001-01-01 00:00:00 +0000 UTC ElapsedTime:0 Compute: Scale:0x9dd1e0 Convert:0x9e09c0 SetRawData:0x9dd460 RealOID:..1.3.6.1.4.1.318.1.1.1.7.2.1.0 Report:1 re: mm:[] expr: condflt: log:0xc0001a2070} ]"
time="2021-10-08 19:59:00" level=info msg="MEASUREMENT [apc-ups-upsProbeTable] Not Oid CONDITIONEVAL metrics exist on this measurement"
time="2021-10-08 19:59:00" level=info msg="MEASUREMENT [apc-ups-upsProbeTable] Not EVAL metrics exist on this measurement"
time="2021-10-08 19:59:00" level=info msg="STATS SNMP GET: snmp polling took [0.604706 seconds] SNMP: Gets [25] , Processed [24], Errors [0]"
time="2021-10-08 19:59:00" level=info msg="STATS SNMP FILTER: filter polling took [0.000000 seconds] "
time="2021-10-08 19:59:00" level=info msg="STATS INFLUX: influx send took [0.000007 seconds]"
So I'm looking for help as to why snmpcollector isn't writing to influxdb.
Thanks in advance,
Matt