telegraf / influxdb | Upgrade to 2.7 issues
-
I am running pfSense+ latest stable release.
Prior to the update I had pfSense+, InfluxDBV2 & Grafana working from the Victor Robellini port:
https://github.com/VictorRobellini/pfSense-Dashboard
-
While most of my dashboard is working, the telegraf_pfifgw.php is no longer working and when troubleshooting the following errors are thrown in test and a telegraf log file:
Using" telegraf --test --config /usr/local/etc/telegraf.conf I get:
2023-09-24T23:07:16Z E! [inputs.exec] Error in plugin: exec: command timed out for command "/usr/local/bin/telegraf_pfifgw.php": pfctl: /dev/pf: Permission denied... -
When looking at the log file I get:
2023-09-24T22:44:55Z E! [inputs.exec] Error in plugin: exec: command timed out for command "/usr/local/bin/telegraf_pfifgw.php":
I believe the issue with the permission denied.
Looking for some advice. Thanks in advance.
I ran the file from ssh and got the following:
[23.05.1-RELEASE][vnetSense@vNetSense.vnetwork.home]/usr/local/bin: telegraf_pfifgw.php
pfctl: /dev/pf: Permission denied
interface,host=vNetSense.vnetwork.home,name=em1,ip4_address=10.0.0.4,ip4_subnet=24,ip6_address=Unassigned,ip6_subnet=Unassigned,mac_address=<REMOVED>,friendlyname=2_WAN_HOMEGATEWAY,source=pfconfig status=1
pfctl: /dev/pf: Permission denied
interface,host=vNetSense.vnetwork.home,name=ix3,ip4_address=10.27.27.1,ip4_subnet=24,ip6_address=Unassigned,ip6_subnet=Unassigned,mac_address=<REMOVED>,friendlyname=LAN,source=pfconfig status=0
pfctl: /dev/pf: Permission denied
interface,host=vNetSense.vnetwork.home,name=em0,ip4_address=Unassigned,ip4_subnet=0,ip6_address=Unassigned,ip6_subnet=Unassigned,mac_address=<REMOVED>,friendlyname=WAN_BUS,source=pfconfig status=0
pfctl: /dev/pf: Permission denied
interface,host=vNetSense.vnetwork.home,name=ix1,ip4_address=10.30.30.1,ip4_subnet=24,ip6_address=Unassigned,ip6_subnet=Unassigned,mac_address=<REMOVED>,friendlyname=UFI_LAN,source=pfconfig status=1
pfctl: /dev/pf: Permission denied
interface,host=vNetSense.vnetwork.home,name=ix2,ip4_address=172.18.10.1,ip4_subnet=24,ip6_address=Unassigned,ip6_subnet=Unassigned,mac_address=<REMOVED>,friendlyname=VLAN10,source=pfconfig status=1
pfctl: /dev/pf: Permission denied
interface,host=vNetSense.vnetwork.home,name=ix0,ip4_address=192.168.0.10,ip4_subnet=24,ip6_address=Unassigned,ip6_subnet=Unassigned,mac_address=<REMOVED>,friendlyname=1_WAN_FIBER,source=pfconfig status=1
gateways,host=vNetSense.vnetwork.home,interface=em1,gateway_name=WAN_HOMEGW monitor="10.0.0.1",source="10.0.0.4",defaultgw=0,gwdescr="XFI Consumer",delay=0.355,stddev=0.581,loss=0,status="online",status_code=0,substatus="none"
gateways,host=vNetSense.vnetwork.home,interface=ix1,gateway_name=UDMPGW monitor="10.30.30.2",source="10.30.30.1",defaultgw=0,gwdescr="",delay=0,stddev=0,loss=100,status="down",status_code=1,substatus="highloss"
gateways,host=vNetSense.vnetwork.home,interface=ix0,gateway_name=WAN_FIBERGW monitor="192.168.0.1",source="192.168.0.10",defaultgw=1,gwdescr="Frontier Fiber 10G",delay=0.433,stddev=0.245,loss=0,status="online",status_code=0,substatus="none"
gateways,host=vNetSense.vnetwork.home,interface=em0,gateway_name=WAN_BUS_DHCP monitor="Unavailable",source="Unavailable",defaultgw=0,gwdescr="Comcast Business Gateway",delay=0,stddev=0,loss=0,status="Unavailable",status_code=2,substatus="N/A" -