Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Gateway as variable #60

Open
PhoenixC46 opened this issue Apr 9, 2022 · 3 comments
Open

No Gateway as variable #60

PhoenixC46 opened this issue Apr 9, 2022 · 3 comments

Comments

@PhoenixC46
Copy link

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! 👍

@skollrc
Copy link

skollrc commented Apr 15, 2022

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

@spencerskinner99
Copy link

spencerskinner99 commented May 13, 2022

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

Did you find a solution?

@jorlandobr
Copy link

jorlandobr commented Dec 14, 2022

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 added a commit to jorlandobr/pfSense-Dashboard that referenced this issue Dec 14, 2022
I think it solves issues VictorRobellini#60 and VictorRobellini#64.

I added a definition for wifi cards (associated) and corrected from "status" to "iftstaus" on the first printf.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants