Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal disk_persist/disk_persistor.go:53 #6

Open
chaiguifeng007 opened this issue Apr 12, 2024 · 0 comments
Open

fatal disk_persist/disk_persistor.go:53 #6

chaiguifeng007 opened this issue Apr 12, 2024 · 0 comments

Comments

@chaiguifeng007
Copy link

chaiguifeng007 commented Apr 12, 2024

4月 12 17:30:43 snmpcoll snmpcoll[6142]: 2024-04-12T17:30:43.740+0800        fatal        disk_persist/disk_persistor.go:53        failed reading definition files        {"error": "error reading object definition - error while merging object definitions - vendor-specific object 'ARISTA-ASIC-COUNTER>
4月 12 17:30:43 snmpcoll snmpcoll[6142]: github.com/elastiflow/flowcoll/pkg/inputs/snmp/disk_persist.New
4月 12 17:30:43 snmpcoll snmpcoll[6142]:         /tmp/collectors/pkg/inputs/snmp/disk_persist/disk_persistor.go:53
4月 12 17:30:43 snmpcoll snmpcoll[6142]: github.com/elastiflow/flowcoll/pkg/inputs/snmp.(*Snmp).Run
4月 12 17:30:43 snmpcoll snmpcoll[6142]:         /tmp/collectors/pkg/inputs/snmp/snmp.go:60
4月 12 17:30:43 snmpcoll systemd[1]: snmpcoll.service: Main process exited, code=exited, status=1/FAILURE
4月 12 17:30:43 snmpcoll systemd[1]: snmpcoll.service: Failed with result 'exit-code'.
4月 12 17:30:43 snmpcoll systemd[1]: snmpcoll.service: Service RestartSec=100ms expired, scheduling restart.
4月 12 17:30:43 snmpcoll systemd[1]: snmpcoll.service: Scheduled restart job, restart counter is at 4.
4月 12 17:30:43 snmpcoll systemd[1]: Stopped ElastiFlow SNMP Collector.
4月 12 17:30:43 snmpcoll systemd[1]: Started ElastiFlow SNMP Collector.
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.964+0800        info        snmpcoll.license[default]        envconf/logger.go:49        EF_ACCOUNT_ID=6606160797246e8760c1512f
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.964+0800        info        snmpcoll.license[default]        envconf/logger.go:49        EF_SNMP_LICENSE_KEY=*********************************************************************************************************************************>
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.964+0800        info        snmpcoll.license[default]        envconf/logger.go:49        EF_SNMP_LICENSED_CORES=0
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.964+0800        info        snmpcoll.license[default]        envconf/logger.go:49        EF_SNMP_LICENSED_UNITS=1
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.964+0800        info        snmpcoll.license[default]        envconf/logger.go:49        EF_LICENSE_ACCEPTED=true
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.965+0800        info        snmpcoll        lic/snmp.go:39        By running this software, you and/or the organization using the software agree and are bound to the terms of an ElastiFlow Inc. End-User License Agreement (EULA). For the C>
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.965+0800        info        snmpcoll        snmpcoll/main.go:63        version        {"version": "6.4.3"}
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.965+0800        info        snmpcoll.snmp[default]        envconf/logger.go:49        EF_INPUT_SNMP_ENABLE=true
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.965+0800        info        snmpcoll.snmp[default]        envconf/logger.go:49        EF_INPUT_SNMP_POLLER_WORKER_POOL_SIZE=16
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.965+0800        info        snmpcoll.snmp[default]        envconf/logger.go:49        EF_INPUT_SNMP_DEFAULTS_DIRECTORY_PATH=/etc/elastiflow/snmp/defaults
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.965+0800        info        snmpcoll.snmp[default]        envconf/logger.go:49        EF_INPUT_SNMP_DEVICE_DEFINITIONS_DIRECTORY_PATH=/etc/elastiflow/snmp/devices
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.965+0800        info        snmpcoll.snmp[default]        envconf/logger.go:49        EF_INPUT_SNMP_DEVICE_GROUP_DEFINITIONS_DIRECTORY_PATH=/etc/elastiflow/snmp/device_groups
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.965+0800        info        snmpcoll.snmp[default]        envconf/logger.go:49        EF_INPUT_SNMP_OBJECT_GROUP_DEFINITIONS_DIRECTORY_PATH=/etc/elastiflow/snmp/object_groups
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.965+0800        info        snmpcoll.snmp[default]        envconf/logger.go:49        EF_INPUT_SNMP_OBJECT_DEFINITIONS_DIRECTORY_PATH=/etc/elastiflow/snmp/objects
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.965+0800        info        snmpcoll.snmp[default]        envconf/logger.go:49        EF_INPUT_SNMP_PERSIST_ENABLE=true
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.965+0800        info        snmpcoll.snmp[default]        envconf/logger.go:49        EF_INPUT_SNMP_PERSIST_DIRECTORY_PATH=/usr/share/elastiflow/snmpcoll
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.965+0800        info        snmpcoll.snmp[default]        envconf/logger.go:49        EF_INPUT_SNMP_POLLER_OP_STREAM_MAX_SIZE=65536
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.965+0800        info        snmpcoll.snmp[default]        envconf/logger.go:49        EF_INPUT_SNMP_DEVICE_OP_STREAMS_SIZE=1024
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.965+0800        info        snmpcoll.snmp[default]        envconf/logger.go:49        EF_INPUT_SNMP_POLLER_ERROR_HANDLING=partial
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.966+0800        info        snmpdata/conf.go:421        Field to Drop:
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.966+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_TRANSLATE_KEEP_IDS=default
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.966+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_IPADDR_TTL=7200
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.966+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_IPADDR_METADATA_ENABLE=true
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.966+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_IPADDR_METADATA_USERDEF_PATH=/etc/elastiflow/metadata/ipaddrs.yml
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.966+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_IPADDR_METADATA_REFRESH_RATE=15
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.966+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_IPADDR_DNS_ENABLE=false
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.966+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_IPADDR_DNS_NAMESERVER_IP=
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.966+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_IPADDR_DNS_NAMESERVER_TIMEOUT=3000
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_IPADDR_DNS_RESOLVE_PRIVATE=true
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_IPADDR_DNS_RESOLVE_PUBLIC=true
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_IPADDR_DNS_USERDEF_PATH=/etc/elastiflow/hostname/user_defined.yml
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_IPADDR_DNS_USERDEF_REFRESH_RATE=15
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_IPADDR_DNS_INCLEXCL_PATH=/etc/elastiflow/hostname/incl_excl.yml
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_IPADDR_DNS_INCLEXCL_REFRESH_RATE=15
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_IPADDR_MAXMIND_ASN_ENABLE=false
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_IPADDR_MAXMIND_ASN_PATH=/etc/elastiflow/maxmind/GeoLite2-ASN.mmdb
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_IPADDR_MAXMIND_GEOIP_ENABLE=false
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_IPADDR_MAXMIND_GEOIP_PATH=/etc/elastiflow/maxmind/GeoLite2-City.mmdb
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_IPADDR_MAXMIND_GEOIP_VALUES=city,country,country_code,location,timezone
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_IPADDR_MAXMIND_GEOIP_LANG=en
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_IPADDR_MAXMIND_GEOIP_INCLEXCL_PATH=
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_IPADDR_MAXMIND_GEOIP_INCLEXCL_REFRESH_RATE=15
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_IPADDR_RISKIQ_ASN_ENABLE=false
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_IPADDR_RISKIQ_ASN_ENDPOINT=https://api.passivetotal.org/v2/netflow/as/download
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_IPADDR_RISKIQ_ASN_REFRESH_INTERVAL=1440
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_IPADDR_RISKIQ_THREAT_ENABLE=false
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_IPADDR_RISKIQ_THREAT_ENDPOINT=https://api.passivetotal.org/v2/netflow/blocklist/download
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_IPADDR_RISKIQ_THREAT_REFRESH_INTERVAL=1440
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_IPADDR_RISKIQ_THREAT_INCLEXCL_PATH=
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_IPADDR_RISKIQ_THREAT_INCLEXCL_REFRESH_RATE=15
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_IPADDR_RISKIQ_API_USER=
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_IPADDR_RISKIQ_API_KEY=
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_IPADDR_RISKIQ_API_TIMEOUT=180
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_NETIF_TTL=7200
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_NETIF_METADATA_ENABLE=false
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_NETIF_METADATA_USERDEF_PATH=
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_NETIF_METADATA_REFRESH_RATE=15
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_NETIF_SNMP_ENABLE=false
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_NETIF_SNMP_PORT=161
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_NETIF_SNMP_VERSION=2
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_NETIF_SNMP_COMMUNITIES=public
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_NETIF_SNMP_TIMEOUT=2
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_NETIF_SNMP_RETRIES=1
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_NETIF_SNMP_V3_AUTHORITATIVE_ENGINE_ID=
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_NETIF_SNMP_V3_AUTHORITATIVE_ENGINE_BOOTS=0
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_NETIF_SNMP_V3_AUTHORITATIVE_ENGINE_TIME=0
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_NETIF_SNMP_V3_USERNAME=
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_NETIF_SNMP_V3_AUTHENTICATION_PARAMETERS=
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_NETIF_SNMP_V3_PRIVACY_PARAMETERS=
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_NETIF_SNMP_V3_AUTHENTICATION_PROTOCOL=noauth
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_NETIF_SNMP_V3_PRIVACY_PROTOCOL=nopriv
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_NETIF_SNMP_V3_AUTHENTICATION_PASSPHRASE=
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_NETIF_SNMP_V3_PRIVACY_PASSPHRASE=
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_NETIF_SNMP_V3_SECRET_KEY=
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.967+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_NETIF_SNMP_V3_PRIVACY_KEY=
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.968+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_ENRICH_ASN_PREF=lookup
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.968+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_SNMP_ENUM_ENABLE=true
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.968+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_SNMP_ENUM_DEFINITIONS_DIRECTORY_PATH=/etc/elastiflow/snmp/enums
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.968+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_DURATION_PRECISION=ms
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.968+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_TIMESTAMP_PRECISION=ms
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.968+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_PERCENT_NORM=100
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.968+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_KEEP_CPU_TICKS=true
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.968+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_POOL_SIZE=4
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.968+0800        info        snmpcoll.processor[default]        envconf/logger.go:49        EF_PROCESSOR_DROP_FIELDS=
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.971+0800        info        snmpcoll.httpserver        httpserver/httpserver.go:28        endpoint exposed        {"url": "http://0.0.0.0:8080/readyz"}
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.971+0800        info        snmpcoll.httpserver        httpserver/httpserver.go:28        endpoint exposed        {"url": "http://0.0.0.0:8080/livez"}
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.971+0800        info        snmpcoll.httpserver        httpserver/httpserver.go:28        endpoint exposed        {"url": "http://0.0.0.0:8080/api/v1/snmp/apply-definitions"}
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.971+0800        info        snmpcoll.httpserver        httpserver/httpserver.go:28        endpoint exposed        {"url": "http://0.0.0.0:8080/api/v1/snmp/rediscover-device"}
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.971+0800        info        snmpcoll.httpserver        httpserver/httpserver.go:28        endpoint exposed        {"url": "http://0.0.0.0:8080/support-bundle"}
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.971+0800        info        snmpcoll.httpserver        httpserver/httpserver.go:28        endpoint exposed        {"url": "http://0.0.0.0:8080/metrics"}
4月 12 17:30:43 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:43.971+0800        info        snmpcoll.snmp        snmp/instance_registration.go:75        instance created
4月 12 17:30:44 snmpcoll snmpcoll[6154]: 2024-04-12T17:30:44.000+0800        fatal        disk_persist/disk_persistor.go:53        failed reading definition files        {"error": "error reading object definition - error while merging object definitions - vendor-specific object 'ARISTA-ASIC-COUNTER>
4月 12 17:30:44 snmpcoll snmpcoll[6154]: github.com/elastiflow/flowcoll/pkg/inputs/snmp/disk_persist.New
4月 12 17:30:44 snmpcoll snmpcoll[6154]:         /tmp/collectors/pkg/inputs/snmp/disk_persist/disk_persistor.go:53
4月 12 17:30:44 snmpcoll snmpcoll[6154]: github.com/elastiflow/flowcoll/pkg/inputs/snmp.(*Snmp).Run
4月 12 17:30:44 snmpcoll snmpcoll[6154]:         /tmp/collectors/pkg/inputs/snmp/snmp.go:60
4月 12 17:30:44 snmpcoll systemd[1]: snmpcoll.service: Main process exited, code=exited, status=1/FAILURE
4月 12 17:30:44 snmpcoll systemd[1]: snmpcoll.service: Failed with result 'exit-code'.
4月 12 17:30:44 snmpcoll systemd[1]: snmpcoll.service: Service RestartSec=100ms expired, scheduling restart.
4月 12 17:30:44 snmpcoll systemd[1]: snmpcoll.service: Scheduled restart job, restart counter is at 5.
4月 12 17:30:44 snmpcoll systemd[1]: Stopped ElastiFlow SNMP Collector.
4月 12 17:30:44 snmpcoll systemd[1]: snmpcoll.service: Start request repeated too quickly.
4月 12 17:30:44 snmpcoll systemd[1]: snmpcoll.service: Failed with result 'exit-code'.
4月 12 17:30:44 snmpcoll systemd[1]: Failed to start ElastiFlow SNMP Collector.
4月 12 17:30:52 snmpcoll systemd[1]: /etc/systemd/system/snmpcoll.service.d/snmpcoll.conf:31: Invalid environment assignment, ignoring: #
4月 12 17:30:52 snmpcoll systemd[1]: /etc/systemd/system/snmpcoll.service.d/snmpcoll.conf:31: Invalid environment assignment, ignoring: defaults
4月 12 17:30:52 snmpcoll systemd[1]: /etc/systemd/system/snmpcoll.service.d/snmpcoll.conf:31: Invalid environment assignment, ignoring: to
4月 12 17:30:52 snmpcoll systemd[1]: /etc/systemd/system/snmpcoll.service.d/snmpcoll.conf:31: Invalid environment assignment, ignoring: the
4月 12 17:30:52 snmpcoll systemd[1]: /etc/systemd/system/snmpcoll.service.d/snmpcoll.conf:31: Invalid environment assignment, ignoring: number
4月 12 17:30:52 snmpcoll systemd[1]: /etc/systemd/system/snmpcoll.service.d/snmpcoll.conf:31: Invalid environment assignment, ignoring: of
4月 12 17:30:52 snmpcoll systemd[1]: /etc/systemd/system/snmpcoll.service.d/snmpcoll.conf:31: Invalid environment assignment, ignoring: CPU
4月 12 17:30:52 snmpcoll systemd[1]: /etc/systemd/system/snmpcoll.service.d/snmpcoll.conf:31: Invalid environment assignment, ignoring: threads
4月 12 17:30:52 snmpcoll systemd[1]: /etc/systemd/system/snmpcoll.service.d/snmpcoll.conf:31: Invalid environment assignment, ignoring: *
4月 12 17:30:52 snmpcoll systemd[1]: /etc/systemd/system/snmpcoll.service.d/snmpcoll.conf:31: Invalid environment assignment, ignoring: 4

/etc/systemd/system/snmpcoll.service.d/snmpcoll.conf

#Environment="EF_INSTANCE_NAME=default"

#Environment="EF_API_PORT="
#Environment="EF_API_IP="
#Environment="EF_API_BASIC_AUTH_ENABLE="
#Environment="EF_API_BASIC_AUTH_USERNAME="
#Environment="EF_API_BASIC_AUTH_PASSWORD="
#Environment="EF_API_TLS_ENABLE="
#Environment="EF_API_TLS_CERT_FILEPATH="
#Environment="EF_API_TLS_KEY_FILEPATH="

Environment="EF_LOGGER_LEVEL=info"
Environment="EF_LOGGER_ENCODING=console"
Environment="EF_LOGGER_FILE_LOG_ENABLE=true"
#Environment="EF_LOGGER_FILE_LOG_FILENAME=/var/log/elastiflow/snmpcoll/snmpcoll.log"
#Environment="EF_LOGGER_FILE_LOG_MAX_SIZE=100"
#Environment="EF_LOGGER_FILE_LOG_MAX_AGE="
#Environment="EF_LOGGER_FILE_LOG_MAX_BACKUPS=4"
#Environment="EF_LOGGER_FILE_LOG_COMPRESS=false"

Environment="EF_INPUT_SNMP_POLLER_WORKER_POOL_SIZE=16" # defaults to the number of CPU threads * 4
Environment="EF_INPUT_SNMP_POLLER_ERROR_HANDLING=partial"
Environment="EF_INPUT_SNMP_DEVICE_DEFINITIONS_DIRECTORY_PATH=/etc/elastiflow/snmp/devices"
Environment="EF_INPUT_SNMP_DEVICE_GROUP_DEFINITIONS_DIRECTORY_PATH=/etc/elastiflow/snmp/device_groups"
Environment="EF_INPUT_SNMP_OBJECT_GROUP_DEFINITIONS_DIRECTORY_PATH=/etc/elastiflow/snmp/object_groups"
Environment="EF_INPUT_SNMP_OBJECT_DEFINITIONS_DIRECTORY_PATH=/etc/elastiflow/snmp/objects"
Environment="EF_INPUT_SNMP_DEFAULTS_DIRECTORY_PATH=/etc/elastiflow/snmp/defaults"
Environment="EF_INPUT_SNMP_PERSIST_ENABLE=true"
Environment="EF_INPUT_SNMP_PERSIST_DIRECTORY_PATH=/usr/share/elastiflow/snmpcoll"

Environment="EF_PROCESSOR_SNMP_ENUM_DEFINITIONS_DIRECTORY_PATH=/etc/elastiflow/snmp/enums"
#Environment="EF_PROCESSOR_POOL_SIZE="
#Environment="EF_PROCESSOR_TRANSLATE_KEEP_IDS=default"

#Environment="EF_PROCESSOR_ENRICH_IPADDR_TTL=7200"

Environment="EF_PROCESSOR_ENRICH_IPADDR_METADATA_ENABLE=true"
Environment="EF_PROCESSOR_ENRICH_IPADDR_METADATA_USERDEF_PATH=/etc/elastiflow/metadata/ipaddrs.yml"
Environment="EF_PROCESSOR_ENRICH_IPADDR_METADATA_REFRESH_RATE=15"

Environment="EF_PROCESSOR_ENRICH_IPADDR_DNS_ENABLE=false"
Environment="EF_PROCESSOR_ENRICH_IPADDR_DNS_NAMESERVER_IP="
Environment="EF_PROCESSOR_ENRICH_IPADDR_DNS_NAMESERVER_TIMEOUT=3000"
Environment="EF_PROCESSOR_ENRICH_IPADDR_DNS_RESOLVE_PRIVATE=true"
Environment="EF_PROCESSOR_ENRICH_IPADDR_DNS_RESOLVE_PUBLIC=true"
Environment="EF_PROCESSOR_ENRICH_IPADDR_DNS_USERDEF_PATH=/etc/elastiflow/hostname/user_defined.yml"
Environment="EF_PROCESSOR_ENRICH_IPADDR_DNS_USERDEF_REFRESH_RATE=15"
Environment="EF_PROCESSOR_ENRICH_IPADDR_DNS_INCLEXCL_PATH=/etc/elastiflow/hostname/incl_excl.yml"
Environment="EF_PROCESSOR_ENRICH_IPADDR_DNS_INCLEXCL_REFRESH_RATE=15"

#Environment="EF_PROCESSOR_DURATION_PRECISION=ms"
#Environment="EF_PROCESSOR_TIMESTAMP_PRECISION=ms"
#Environment="EF_PROCESSOR_PERCENT_NORM=100"
#Environment="EF_PROCESSOR_KEEP_CPU_TICKS=false"

#Environment="EF_PROCESSOR_DROP_FIELDS="

# stdout
#Environment="EF_OUTPUT_STDOUT_ENABLE=false"
#Environment="EF_OUTPUT_STDOUT_FORMAT=json_pretty"

# monitor
#Environment="EF_OUTPUT_MONITOR_ENABLE=false"
#Environment="EF_OUTPUT_MONITOR_INTERVAL=300"

# Elasticsearch
Environment="EF_OUTPUT_ELASTICSEARCH_ENABLE=false"
Environment="EF_OUTPUT_ELASTICSEARCH_ECS_ENABLE=false"
#Environment="EF_OUTPUT_ELASTICSEARCH_BATCH_DEADLINE=2000"
#Environment="EF_OUTPUT_ELASTICSEARCH_BATCH_MAX_BYTES=8388608"
#Environment="EF_OUTPUT_ELASTICSEARCH_TIMESTAMP_SOURCE=collect"
#Environment="EF_OUTPUT_ELASTICSEARCH_INDEX_PERIOD=rollover"
#Environment="EF_OUTPUT_ELASTICSEARCH_INDEX_SUFFIX="
#Environment="EF_OUTPUT_ELASTICSEARCH_DROP_FIELDS="
#Environment="EF_OUTPUT_ELASTICSEARCH_ALLOWED_RECORD_TYPES=as_path_hop,flow_option,flow,ifa_hop,telemetry"

#Environment="EF_OUTPUT_ELASTICSEARCH_INDEX_TEMPLATE_ENABLE=true"
#Environment="EF_OUTPUT_ELASTICSEARCH_INDEX_TEMPLATE_OVERWRITE=true"
Environment="EF_OUTPUT_ELASTICSEARCH_INDEX_TEMPLATE_SHARDS=1"
Environment="EF_OUTPUT_ELASTICSEARCH_INDEX_TEMPLATE_REPLICAS=0"
#Environment="EF_OUTPUT_ELASTICSEARCH_INDEX_TEMPLATE_REFRESH_INTERVAL=10s"
#Environment="EF_OUTPUT_ELASTICSEARCH_INDEX_TEMPLATE_CODEC=best_compression"
#Environment="EF_OUTPUT_ELASTICSEARCH_INDEX_TEMPLATE_ILM_LIFECYCLE="
#Environment="EF_OUTPUT_ELASTICSEARCH_INDEX_TEMPLATE_PIPELINE_DEFAULT=_none"
#Environment="EF_OUTPUT_ELASTICSEARCH_INDEX_TEMPLATE_PIPELINE_FINAL=_none"

# A comma separated list of Elasticsearch nodes to use. DO NOT include "http://" or "https://"
Environment="EF_OUTPUT_ELASTICSEARCH_ADDRESSES=127.0.0.1:9200"
Environment="EF_OUTPUT_ELASTICSEARCH_USERNAME=elastic"
Environment="EF_OUTPUT_ELASTICSEARCH_PASSWORD=changeme"
#Environment="EF_OUTPUT_ELASTICSEARCH_CLOUD_ID="
#Environment="EF_OUTPUT_ELASTICSEARCH_API_KEY="
#Environment="EF_OUTPUT_ELASTICSEARCH_CLIENT_CA_CERT_FILEPATH="
#Environment="EF_OUTPUT_ELASTICSEARCH_CLIENT_CERT_FILEPATH="
#Environment="EF_OUTPUT_ELASTICSEARCH_CLIENT_KEY_FILEPATH="

Environment="EF_OUTPUT_ELASTICSEARCH_TLS_ENABLE=false"
Environment="EF_OUTPUT_ELASTICSEARCH_TLS_SKIP_VERIFICATION=false"
Environment="EF_OUTPUT_ELASTICSEARCH_TLS_CA_CERT_FILEPATH="

#Environment="EF_OUTPUT_ELASTICSEARCH_RETRY_ENABLE=true"
#Environment="EF_OUTPUT_ELASTICSEARCH_RETRY_ON_TIMEOUT_ENABLE=true"
#Environment="EF_OUTPUT_ELASTICSEARCH_MAX_RETRIES=3"
#Environment="EF_OUTPUT_ELASTICSEARCH_RETRY_BACKOFF=1000"

# OpenSearch
Environment="EF_OUTPUT_OPENSEARCH_ENABLE=false"
Environment="EF_OUTPUT_OPENSEARCH_ECS_ENABLE=false"
#Environment="EF_OUTPUT_OPENSEARCH_BATCH_DEADLINE=2000"
#Environment="EF_OUTPUT_OPENSEARCH_BATCH_MAX_BYTES=8388608"
#Environment="EF_OUTPUT_OPENSEARCH_TIMESTAMP_SOURCE=collect"
#Environment="EF_OUTPUT_OPENSEARCH_INDEX_PERIOD=daily"
#Environment="EF_OUTPUT_OPENSEARCH_INDEX_SUFFIX="
#Environment="EF_OUTPUT_OPENSEARCH_DROP_FIELDS="
#Environment="EF_OUTPUT_OPENSEARCH_ALLOWED_RECORD_TYPES=as_path_hop,flow_option,flow,ifa_hop,telemetry"

#Environment="EF_OUTPUT_OPENSEARCH_INDEX_TEMPLATE_ENABLE=true"
#Environment="EF_OUTPUT_OPENSEARCH_INDEX_TEMPLATE_OVERWRITE=true"
Environment="EF_OUTPUT_OPENSEARCH_INDEX_TEMPLATE_SHARDS=1"
Environment="EF_OUTPUT_OPENSEARCH_INDEX_TEMPLATE_REPLICAS=0"
#Environment="EF_OUTPUT_OPENSEARCH_INDEX_TEMPLATE_REFRESH_INTERVAL=10s"
#Environment="EF_OUTPUT_OPENSEARCH_INDEX_TEMPLATE_CODEC=best_compression"
#Environment="EF_OUTPUT_OPENSEARCH_INDEX_TEMPLATE_ISM_POLICY="
#Environment="EF_OUTPUT_OPENSEARCH_INDEX_TEMPLATE_PIPELINE_DEFAULT=_none"
#Environment="EF_OUTPUT_OPENSEARCH_INDEX_TEMPLATE_PIPELINE_FINAL=_none"

# A comma separated list of OpenSearch nodes to use. DO NOT include "http://" or "https://"
Environment="EF_OUTPUT_OPENSEARCH_ADDRESSES=127.0.0.1:9200"
Environment="EF_OUTPUT_OPENSEARCH_USERNAME=admin"
Environment="EF_OUTPUT_OPENSEARCH_PASSWORD=admin"
#Environment="EF_OUTPUT_OPENSEARCH_CLIENT_CA_CERT_FILEPATH="
#Environment="EF_OUTPUT_OPENSEARCH_CLIENT_CERT_FILEPATH="
#Environment="EF_OUTPUT_OPENSEARCH_CLIENT_KEY_FILEPATH="

Environment="EF_OUTPUT_OPENSEARCH_TLS_ENABLE=false"
Environment="EF_OUTPUT_OPENSEARCH_TLS_SKIP_VERIFICATION=false"
Environment="EF_OUTPUT_OPENSEARCH_TLS_CA_CERT_FILEPATH="

#Environment="EF_OUTPUT_OPENSEARCH_RETRY_ENABLE=true"
#Environment="EF_OUTPUT_OPENSEARCH_RETRY_ON_TIMEOUT_ENABLE=true"
#Environment="EF_OUTPUT_OPENSEARCH_MAX_RETRIES=3"
#Environment="EF_OUTPUT_OPENSEARCH_RETRY_BACKOFF=1000"

# Splunk
Environment="EF_OUTPUT_SPLUNK_HEC_ENABLE=false"
#Environment="EF_OUTPUT_SPLUNK_HEC_CIM_ENABLE=false"
Environment="EF_OUTPUT_SPLUNK_HEC_ADDRESSES=127.0.0.1:8088"
Environment="EF_OUTPUT_SPLUNK_HEC_TOKEN="
#Environment="EF_OUTPUT_SPLUNK_HEC_BATCH_MAX_BYTES=8388608"
#Environment="EF_OUTPUT_SPLUNK_HEC_BATCH_DEADLINE=2000"
#Environment="EF_OUTPUT_SPLUNK_HEC_TLS_ENABLE=true"
#Environment="EF_OUTPUT_SPLUNK_HEC_TLS_SKIP_VERIFICATION=false"
#Environment="EF_OUTPUT_SPLUNK_HEC_TLS_CA_CERT_FILEPATH="
#Environment="EF_OUTPUT_SPLUNK_HEC_DROP_FIELDS="

# Kafka
Environment="EF_OUTPUT_KAFKA_ENABLE=false"
Environment="EF_OUTPUT_KAFKA_BROKERS="
#Environment="EF_OUTPUT_KAFKA_VERSION=1.0.0"
#Environment="EF_OUTPUT_KAFKA_TOPIC=elastiflow-flow-codex"
#Environment="EF_OUTPUT_KAFKA_PARTITION_KEY=flow.export.ip.addr"
#Environment="EF_OUTPUT_KAFKA_CLIENT_ID=elastiflow-flowcoll"
#Environment="EF_OUTPUT_KAFKA_RACK_ID="
#Environment="EF_OUTPUT_KAFKA_TIMEOUT=30"
#Environment="EF_OUTPUT_KAFKA_DROP_FIELDS="
#Environment="EF_OUTPUT_KAFKA_ALLOWED_RECORD_TYPES=as_path_hop,flow_option,flow,ifa_hop,telemetry"

Environment="EF_OUTPUT_KAFKA_SASL_ENABLE=false"
#Environment="EF_OUTPUT_KAFKA_SASL_USERNAME="
#Environment="EF_OUTPUT_KAFKA_SASL_PASSWORD="

#Environment="EF_OUTPUT_KAFKA_TLS_ENABLE=false"
#Environment="EF_OUTPUT_KAFKA_TLS_CA_CERT_FILEPATH="
#Environment="EF_OUTPUT_KAFKA_TLS_CERT_FILEPATH="
#Environment="EF_OUTPUT_KAFKA_TLS_KEY_FILEPATH="
#Environment="EF_OUTPUT_KAFKA_TLS_SKIP_VERIFICATION=false"

#Environment="EF_OUTPUT_KAFKA_PRODUCER_MAX_MESSAGE_BYTES=1000000"
#Environment="EF_OUTPUT_KAFKA_PRODUCER_REQUIRED_ACKS=1"
#Environment="EF_OUTPUT_KAFKA_PRODUCER_TIMEOUT=10"
#Environment="EF_OUTPUT_KAFKA_PRODUCER_COMPRESSION=3"
#Environment="EF_OUTPUT_KAFKA_PRODUCER_COMPRESSION_LEVEL=-1000"
#Environment="EF_OUTPUT_KAFKA_PRODUCER_FLUSH_BYTES=1000000"
#Environment="EF_OUTPUT_KAFKA_PRODUCER_FLUSH_MESSAGES=1024"
#Environment="EF_OUTPUT_KAFKA_PRODUCER_FLUSH_FREQUENCY=1000"
#Environment="EF_OUTPUT_KAFKA_PRODUCER_FLUSH_MAX_MESSAGES=0"
#Environment="EF_OUTPUT_KAFKA_PRODUCER_RETRY_MAX=3"
#Environment="EF_OUTPUT_KAFKA_PRODUCER_RETRY_BACKOFF=100"

# Cribl
Environment="EF_OUTPUT_CRIBL_ENABLE=false"
Environment="EF_OUTPUT_CRIBL_ADDRESSES=127.0.0.1:10080"
Environment="EF_OUTPUT_CRIBL_TOKEN="
#Environment="EF_OUTPUT_CRIBL_BATCH_DEADLINE=2000"
#Environment="EF_OUTPUT_CRIBL_BATCH_MAX_BYTES=8388608"
#Environment="EF_OUTPUT_CRIBL_TLS_ENABLE=false"
#Environment="EF_OUTPUT_CRIBL_TLS_SKIP_VERIFICATION=false"
#Environment="EF_OUTPUT_CRIBL_TLS_CA_CERT_FILEPATH="
#Environment="EF_OUTPUT_CRIBL_DROP_FIELDS="

# Generic HTTP
Environment="EF_OUTPUT_GENERIC_HTTP_ENABLE=false"
Environment="EF_OUTPUT_GENERIC_HTTP_ECS_ENABLE=false"
#Environment="EF_OUTPUT_GENERIC_HTTP_BATCH_DEADLINE=2000"
#Environment="EF_OUTPUT_GENERIC_HTTP_BATCH_MAX_BYTES=8388608"
Environment="EF_OUTPUT_GENERIC_HTTP_ADDRESSES=127.0.0.1:8888"
#Environment="EF_OUTPUT_GENERIC_HTTP_USERNAME="
#Environment="EF_OUTPUT_GENERIC_HTTP_PASSWORD="
#Environment="EF_OUTPUT_GENERIC_HTTP_TLS_ENABLE=false"
#Environment="EF_OUTPUT_GENERIC_HTTP_TLS_SKIP_VERIFICATION=false"
#Environment="EF_OUTPUT_GENERIC_HTTP_TLS_CA_CERT_FILEPATH="
#Environment="EF_OUTPUT_GENERIC_HTTP_DROP_FIELDS="
#Environment="EF_OUTPUT_GENERIC_HTTP_TIMESTAMP_SOURCE=collect"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant