Skip to content

Latest commit

 

History

History
15 lines (14 loc) · 673 Bytes

README.md

File metadata and controls

15 lines (14 loc) · 673 Bytes

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