Skip to main content

SNMP collector through an Asyncio event loop

Setup using docker

Up and build docker container:

docker-compose up --build -d

Without docker:

Install requirements:

pip install -r requirements.txt

Run by downloading or cloning the repository:

python __main__.py

Config your desire OID(s) and metrics:

nano config/cofig.json

Setup through pip

pip install simple-snmp-collector pyserial easydict pysnmp==4.4.9 async-timeout uvloop

Configuration

Create a json config file with the following format:

[
  {
    "isEnable": true,
    "name": "snmp-model-1",
    "address": "192.168.1.120",
    "port": 161,
    "timeout": 1,
    "retries": 3,
    "version": 2,
    "sleep_time": 5,
    "community": "public",
    "metrics": [
      {
        "isEnable": true,
        "tag_name": "a-sample",
        "oid": "1.3.6.13.4.1.3.1112"
      }
    ],
    "meta_data": [{'key': 'value'}]
  }
]

Run

python -m snmp_collector --config=<path-to-your-config-file.json>

[NOTE]:

  • If you are a Windows user and you don’t want to use docker, comment out the uvloop package form requirements.txt

  • The value of -8555 means a problem is occurred during reading data over SNMP or in connection.

Metadata

Release files for simple-snmp-collector 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simple-snmp-collector 1.0.0
File Size Uploaded Provenance Actions
simple_snmp_collector-1.0.0.tar.gz 7.0 kB Without provenance Details for simple_snmp_collector-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for simple-snmp-collector 1.0.0
File Interpreter ABI Platform Actions
simple_snmp_collector-1.0.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for simple_snmp_collector-1.0.0-py2.py3-none-any.whl

Total release size: 17.2 kB

Release files / simple_snmp_collector-1.0.0.tar.gz

Download URL simple_snmp_collector-1.0.0.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
215accd50093a23580662959e555f5d03199a43ed734f4e98d2bcaf23ff27462
BLAKE2b-256 checksum
How to use checksums
368c6e55037bbb5b9ffd3f2fc656a915964b06e335542ca62ed340265c88bdf7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.9

Release files / simple_snmp_collector-1.0.0-py2.py3-none-any.whl

Download URL simple_snmp_collector-1.0.0-py2.py3-none-any.whl
Size 10.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
5af8f5d15978992580abbda875537d0331282f7ecdd4edb32b4db5dcf6981fd6
BLAKE2b-256 checksum
How to use checksums
7f363ec6ecde7a9d983cd2145bf392ed1a4bc51068958821243f0edcf759b2a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.9

Security for simple-snmp-collector 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page