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

Interface information missing + Gateway reporting #59

Open
morbiddk opened this issue Mar 5, 2024 · 3 comments
Open

Interface information missing + Gateway reporting #59

morbiddk opened this issue Mar 5, 2024 · 3 comments

Comments

@morbiddk
Copy link

morbiddk commented Mar 5, 2024

Love the dashboard and am getting close to getting everything setup and working, but I'm running into an issue that I cannot figure out. I have no gateway stats at all under Network Stats. The Interface Summary for each interface WAN or LAN is blank. WAN interface data is working fine but the LAN Interface just shows - ALL even with regex in place that should cause it to show at least 2 interfaces but it only reports as All so I'm pretty sure something is amiss or missing.
/^(?!enc0$|em0$|igb2$|igb3$)/

I have dual WAN setup, so em0 and igb2; igb3 is an extra interface not currently in use and of course the enc0 interface.

Looking at the data, I'm not seeing any gateway under _measurements, I'm also not seeing a status _field that it looks like the interface summaries need.

Not sure if this has to do with the telegraph error every 10 seconds in the OPNsense log.
2024-03-05T19:18:20Z E! [inputs.exec] Error in plugin: exec: exit status 1 for command "sudo /usr/local/bin/telegraf_pfifgw.php": /usr/local/etc/sudoers:135:55: Alias "PFIFGW" already defined...

Any help would be greatly appreciated.

@DannyJanmaat
Copy link

telegraf_pfifgw.zip

Use this file, enjoy

@morbiddk
Copy link
Author

diff doesn't see any changes between this file and the one installed on my OPNsense.

@DannyJanmaat
Copy link

The file I mentioned gives you the metrics for the interfaces in influxdb. If you don't see this data in influxdb then there goes something wrong with the connection from opnsense via Telegraf to influxdb. You first have to solve this.

The error message is just a double line in sudoers file you have to delete, cause multiple execution script.

I have this fully working and more. Let me know if you have any questions.

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

2 participants