Open alexwmaustin opened 6 months ago
@alexwmaustin In the dashboard variables, what did you put for the Gateway Variable?
I get the same results as your "after", but nothing appears in the dashboard gateway/RTT section
My gateway variables match the value from above.
I would check on InfluxDB GUI that you are getting the values in the database first. That way you can determine whether its a Influx -> Grafana problem or OPNSense -> Influx
First you have to follow the instructions of bsmithio.
Replace the file with this one : telegraf_pfifgw.zip
Disable Telegraf in OPNSense. Place the file 'telegraf_pfifgw.php' in OPNSense directory /usr/local/bin.
Test : sudo telegraf_pfifgw.php
Enable Telegraf.
This file is needed to get the the _measurement 'gateways' and the fields 'delay' and 'loss'.
Edit : works with OPNSense 24.1.6 Edit2 : Still works after upgrade to 24.1.7
root@sasuke:/usr/local/bin # pluginctl -r return_gateways_status { "dpinger": { "WAN_DHCP": { "status": "none", "monitor": "1.1.1.1", "name": "WAN_DHCP", "stddev": "0.3 ms", "delay": "9.0 ms", "loss": "0.0 %" }, "HEIPV6TUNNEL_TUNNELV6": { "status": "down", "monitor": "2600::", "name": "HEIPV6TUNNEL_TUNNELV6", "stddev": "0.0 ms", "delay": "0.0 ms", "loss": "100.0 %" } } }
Looks to be reading the ping fine, and the command returns all gateways including WAN
gateways,host=sasuke.eirikzlab.com,interface=wan,gateway_name=WAN_DHCP monitor="Unmonitored",source="195.1.60.1",gwdescr="Interface WAN_DHCP Gateway",delay=9,stddev=0.2,loss=0,status="1"
Yet no stats show up in dashboard
sudo su -m telegraf -c 'telegraf --test --config /usr/local/etc/telegraf.conf --config-directory /usr/local/etc/telegraf.d'
shows no gateways or temperature either.
Unfortunately, I'm experiencing exactly the same issue as described above; it doesn't work. As a result, both the Gateway RTT and the interfaces remain empty. As atcbyea described, I get a clean response from 'pluginctl -r return_gateways_status'. However, even with
sudo su -m telegraf -c 'telegraf --test --config /usr/local/etc/telegraf.conf --config-directory /usr/local/etc/telegraf.d'
, no gateways are listed.
Maybe someone will find a solution for this. Otherwise, the dashboard is really great.
20.08.2024 Update: In the Influx DB there is no entry for gateway or delay under _mesurment
The metrics for RTT and loss weren't displaying any values. The
telegraf_pfifgw.php
usesreturn_gateways_status
to query these values.To enable the query properly go into System > Gateways > Configuration in opnsense and uncheck Disable Gateway Monitoring for each gateway.
Using the command
pluginctl -r return_gateways_status
you can view the output from this query.Before
After