pfSense-Dashboard icon indicating copy to clipboard operation
pfSense-Dashboard copied to clipboard

No Gateway as variable

Open PhoenixC46 opened this issue 2 years ago • 3 comments

I've managed to get most of the dashboard working on pfSense 2.6 (Influx 1.8.10) but can't seem to get any gateway info to display in the Gateway RTT gauge. The variable (dropdown menu) for Gateways is also empty. Have i missed a step somewhere? Everything else is working great! Awesome work on this! 👍

PhoenixC46 avatar Apr 09 '22 02:04 PhoenixC46

Hi everyone, Same problem here. I have gateways Loss data but no RTT's Edit : I change "mean(rtt)" to "mean(delay)" as mentioned in issue 47 and it works fine

skollrc avatar Apr 15 '22 22:04 skollrc

I also have the same issue and have no gateways in the menu.

Did you find a solution?

spencerskinner99 avatar May 13 '22 20:05 spencerskinner99

I was having the same problem and I think that I found what was causing the issue. Two problems, in my case:

Plugin file telegraf_pfifgw.php, line 64 ends with status

    printf(
        "interface,host=%s,name=%s,ip4_address=%s,ip4_subnet=%s,ip6_address=%s,ip6_subnet=%s,mac_address=%s,friendlyname=%s,source=%s status=%s\n",

It should be ifstatus (variable defined on line 74)

    printf(
        "interface,host=%s,name=%s,ip4_address=%s,ip4_subnet=%s,ip6_address=%s,ip6_subnet=%s,mac_address=%s,friendlyname=%s,source=%s ifstatus=%s\n",

I am using a wifi card, the status associated isn't defined, so I added that definition

I found it using the debug command "telegraf --test --config /usr/local/etc/telegraf.conf". Since these erros happen before the gateway section, gateways data are not populated on the database.

I think that issue #64 has the same cause.

diff:

29a30,32
>     }
>     if (strtolower($ifstatus) == "associated") {
>         $ifstatus = 1;
31,33d33
<
<
<
67c67
<         "interface,host=%s,name=%s,ip4_address=%s,ip4_subnet=%s,ip6_address=%s,ip6_subnet=%s,mac_address=%s,friendlyname=%s,source=%s status=%s\n",
---
>         "interface,host=%s,name=%s,ip4_address=%s,ip4_subnet=%s,ip6_address=%s,ip6_subnet=%s,mac_address=%s,friendlyname=%s,source=%s ifstatus=%s\n",

jorlandobr avatar Dec 14 '22 02:12 jorlandobr