Schmidsfeld / TelegrafFritzBox

Telegraf collector help file for the FritzBox by AVM
MIT License
51 stars 12 forks source link

No data in influx #13

Open chrkan opened 9 months ago

chrkan commented 9 months ago

Hello, I have a running influx2 installation, in order to include the Fritzbox, Telegraf was installed afterwards. adapted to my settings according to these instructions: https://www.howtoforge.de/anleitung/so-installierst-du-den-tig-stack-telegraf-influxdb-und-grafana-auf-ubuntu-22-04/ Data was also stored in the bucket, which I call fritzbox

Bildschirmfoto 2024-01-21 um 11 44 36

I first created the bucket for the Fritzbox.

by means of telegraf --config telegrafFritzBox.conf --test

2024-01-21T10:14:44Z I! Loading config: telegrafFritzBox.conf
2024-01-21T10:14:44Z I! Starting Telegraf 1.29.2 brought to you by InfluxData the makers of InfluxDB
2024-01-21T10:14:44Z I! Available plugins: 241 inputs, 9 aggregators, 30 processors, 24 parsers, 60 outputs, 6 secret-stores
2024-01-21T10:14:44Z I! Loaded inputs: exec
2024-01-21T10:14:44Z I! Loaded aggregators: 
2024-01-21T10:14:44Z I! Loaded processors: 
2024-01-21T10:14:44Z I! Loaded secretstores: 
2024-01-21T10:14:44Z W! Outputs are not used in testing mode!
2024-01-21T10:14:44Z I! Tags enabled: host=grafana
> FritzBox,host=(none),source=general Firmware="7.57",ModelName="FRITZ!Box 7530",SerialNumber="989BCB48D594",WANAccessType="DSL" 1705832092000000000
> FritzBox,host=(none),source=status ConnectionStatus="Connected",LastError="ERROR_NONE",UpTime=10640i 1705832092000000000
> FritzBox,host=(none),source=wan ByteReceiveRate=139279i,ByteSendRate=3360i,ConnectionTime=2093i,Layer1DownstreamMaxBitRate=60321000i,Layer1UpstreamMaxBitRate=12443000i,PacketReceiveRate=0i,PacketSendRate=0i,TotalBytesReceived64=9382675459,TotalBytesSent64=169395675 1705832092000000000
> FritzBox,host=(none),source=dsl ATUCCRCErrors=0i,ATUCFECErrors=0i,ATUCHECErrors=0i,CRCErrors=0i,DownstreamAttenuation=200i,DownstreamCurrRate=62217i,DownstreamMaxRate=65044i,DownstreamNoiseMargin=110i,DownstreamPower=511i,FECErrors=0i,HECErrors=0i,UpstreamAttenuation=200i,UpstreamCurrRate=12736i,UpstreamMaxRate=37645i,UpstreamNoiseMargin=230i,UpstreamPower=510i 1705832092000000000
> FritzBox,host=(none),source=network DNSServers="2003:180:2:8100::53, 2003:180:2:8000::53,217.237.148.22,217.237.150.51",ExternalIPAddress="1234567890",HostNumberOfEntries=10i,HostsActive=2i,HostsActiveLAN=1i,HostsActiveWLAN=0i,HostsKnown=10i,HostsKnownLAN=1i,HostsKnownWLAN=0i,LocalDNSServer="192.168.X.1" 1705832092000000000
> FritzBox,host=(none),source=lan PacketsReceived=1587693i,PacketsSent=6363816i 1705832092000000000
> FritzBox,host=(none),source=wlan_2.4GHz Channel=1i,ClientsNumber=0i,PacketsReceived=2959i,PacketsSent=4226i,SSID="UTMGHZ" 1705832092000000000
> FritzBox,host=(none),source=wlan_5GHz Channel=116i,ClientsNumber=0i,PacketsReceived=647i,PacketsSent=1832i,SSID="UTMGHZ" 1705832092000000000
> FritzBox,host=(none),source=wlan_Guest Channel=1i,ClientsNumber=0i,PacketsReceived=0i,PacketsSent=0i,SSID="UTM4Work" 1705832092000000000

the telegraf config looks like this

 # Configuration for sending metrics to InfluxDB 2.0
 [[outputs.influxdb_v2]]
#   ## The URLs of the InfluxDB cluster nodes.
#   ##
#   ## Multiple URLs can be specified for a single cluster, only ONE of the
#   ## urls will be written to each interval.
#   ##   ex: urls = ["https://us-west-2-1.aws.cloud2.influxdata.com"]
   urls = ["http://192.168.X.Y:8086"]
#
#   ## Token for authentication.
   token = "---------------------------------------"
#
#   ## Organization is the name of the organization you wish to write to.
organization = "iobroker"
#
#   ## Destination bucket to write into.
   bucket = "fritzbox"

Does anyone have an idea why nothing gets into the bucket?