Git Product home page Git Product logo

sb6183-stats-for-influxdb's Introduction

SB6183 Modem Stats emitted to Influxdb running as a Docker container

Screenshot

This tool is a parser of the Arris SB6183 cable modem to emit signal & power metrics to InfluxDB

Grafana dashboard example

See this example json for a grafana dashboard as shown in the screenshot above

Configuration within config.ini

GENERAL

Key Description
Delay Delay between runs
Output Write console output while tool is running

INFLUXDB

Key Description
Address Delay between updating metrics
Port InfluxDB port to connect to. 8086 in most cases
Database Database to write collected stats to
Username User that has access to the database
Password Password for above user

MODEM

Key Description
URL URL of the cable modem info page. Leave blank for http://192.168.100.1/RgConnect.asp

Usage

Before the first use run pip3 install -r requirements.txt

Enter your desired information in config.ini and run SB6183.py

Optionally, you can specify the --config argument to load the config file from a different location.

Requirements

Python 3+

You will need the influxdb library installed to use this - Found Here

Docker Setup

  1. Install Docker

  2. Make a directory to hold the config.ini file. Navigate to that directory and download the sample config.ini in this repo.

mkdir SB6183-stats-for-influxdb
curl -O https://raw.githubusercontent.com/billimek/SB6183-stats-for-influxdb/blob/master/config.ini SB6183-stats-for-influxdb/config.ini
cd SB6183-stats-for-influxdb
  1. Modify the config file with your influxdb settings.
vim config.ini

Modify the 'Address =' line include the ip or hostname of your influxdb instance. Example:

Address = 10.13.14.200

. Run the container, pointing to the directory with the config file. This should now pull the image from Docker hub. You can do this by either running docker run or by using docker-compose.

docker run -d \
--name="sb6183" \
-v $PWD/config.ini:/src/config.ini \
--restart="always" \
billimek/sb6183-for-influxdb

sb6183-stats-for-influxdb's People

Contributors

billimek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sb6183-stats-for-influxdb's Issues

Support for SB8200?

Is there any chance you could add support for an Arris SB8200? I tried to run the docker image as-is but get:

docker start modemmonitor;docker logs -f modemmonitor
modemmonitor
Loading Configuration File config.ini
Configuration Successfully Loaded
Getting modem stats
Traceback (most recent call last):
  File "/src/SB6183.py", line 188, in <module>
    main()
  File "/src/SB6183.py", line 185, in main
    collector.run()
  File "/src/SB6183.py", line 145, in run
    self.parse_modem()
  File "/src/SB6183.py", line 95, in parse_modem
    'channel_id': int(channel_id),
ValueError: invalid literal for int() with base 10: 'SC-QAM'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.