bsmithio / OPNsense-Dashboard

A functional and useful dashboard for OPNsense that utilizes InfluxDB, Grafana, Graylog, and Telegraf.
523 stars 66 forks source link

New install from docker compose is not working properly #60

Open BAAAASS opened 6 months ago

BAAAASS commented 6 months ago

I have thus far been unable to get this stack working at all. There two issus which are blocking, and I have been unable to find any solution:

Please let me know if there is any advice on this.

ultrawyde commented 6 months ago

I just spent many hours battling the same thing, graylog could not resolve the mongodb container despite being on the same bridge network. At first I thought it might be because I changed the container names, but reverting back to just naming it "mongo" did not fix the issue. Not sure if maybe it would have worked if I had nuked the bridge network and remade it? Anyway, in the end the solution for me was to add hostname: "mongo" under the mongodb section of the compose file. Now graylog can reach mongodb.

FeRChImoNdE commented 5 months ago

Fatal error: Uncaught Error: Call to undefined function get_interfaces_info() in /usr/local/bin/telegraf_pfifgw.php:13

Need to revert to an interfaces.inc file with the function defined. Found the answer in this reddit:

https://www.reddit.com/r/opnsense/comments/1aiqaz5/telegraf_error_after_upgrade_to_241/

Search for the get_interfaces_info() and just copy paste the whole function in your /usr/local/bin/telegraf_pfifgw.php file, just below the line:

require_once("util.inc");