Skip to content

Python script to poll various stats from a DrayTek Modem via Telnet

Notifications You must be signed in to change notification settings

uffsalot/telegraf-draytek

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

telegraf-python-draytek

Python script for use with telegraf to poll various stats from a DrayTek Modem via Telnet. A big part of the script is borrowed from linuxthings.co.uk. I have adapted it so that it works directly with Telegraf.

Installation

  1. Copy the script draytekstatus.py to a directory of your choice (I use /opt/telegraf)
  2. Make the script executable chmod +x /opt/telegraf/draytekstatus.py
  3. Configure the script
[[inputs.exec]]
  commands = ["python3 /opt/telegraf/draytekstatus.py"]
  timeout = "15s"
  data_format = "influx"
  1. Restart telegraf

About

Python script to poll various stats from a DrayTek Modem via Telnet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages