Securifi Community Forum
Securifi Products => Almond+ => Topic started by: dbuttke on July 14, 2014, 09:00:33 pm
-
In Openwrt under status and realtime graphs none of them work...they say plugin needed, but can't tell me what plugin.
Any ideas??
-
Once upon a time, browsers didn't support SVG and there was a plugin http://www.adobe.com/devnet/svg/adobe-svg-viewer-download-area.html
Every modern browser should support the graphs.
That said, the graphs don't work for me either. Chrome (stable and beta) pops up with a download prompt rather than drawing anything. This happens for me with any current OpenWRT release, so it's not specifically Securifi's fault. If I had to guess, I'd say the data is being returned with a application/binary mimetype rather than the SVG mimetype.
-
Actually it's not a browser plugin issue. We plan to add bandwidth monitor stuff in our Nutos [ UI ] and it is in our todo list.
-
A good response would be as to what we can do to view the graphs. I've used IE11, Firefox 30, and Chrome 35 and the graphs don't work in any of them. Integrating them into NutsOS in a future release is good to know but doesn't allay the current issue.
-
Sadly, you can't view the graphs.
As explained elsewhere, OpenWRT is provided as is, but maybe this is something we should've communicated more clearly.
The graphs don't work as our hardware partner didn't implement the feature properly in their build of OpenWRT and we've been told that they have no plans on fixing it, as they don't think it's an important feature.
We'll be doing our own bandwidth monitoring features in NutsOS as stated, but it'll take some time.
With regards to OpenWRT, we want to offer an upgrade to a more recent build, but without the help of our chipset partners, this is going to be a real challenge. We hope to have something in the next 6-12 months, but it's not something we can't guarantee.
-
After a bit of research I have found a fix for the real time graph issue on the OpenWRT interface for the Almond+ Router. I claim no responsibility if you have problems, but here here are the steps I followed to resolve the real time graph issue:
1. Open a new SSH session into your Almond+. (I used PuTTY (http://"http://www.putty.org/")to manage the connection)
2. Log into your router with the appropriate credentials.
3. You'll need to edit the lighttpd.conf file. (If you are uncomfortable using command lind editor VI here is a guide http://www.washington.edu/computing/unix/vi.html (http://www.washington.edu/computing/unix/vi.html)) To edit I issued the following command:
vi /etc/lighttpd/lighttpd.conf
4. The OpenWRT build of lighttpd Securifi uses is missing the mimetype for svg, which is why the browser is trying to download it. To correct this I added a new entry (using the i command) after line 47 (".png" => "image/png",) for the following:
".svg" => "image/svg+xml",
here is what my screen looked like after the entry:
(https://s3.amazonaws.com/tenny/almond_openwrt_svg_code.png)
5. Save (using :w command) and exit (using ZZ command)
6. (Optional step) If you want to you can verify that the setting saved by running the following command:
cat /etc/lighttpd/lighttpd.conf
7. Reboot your router (you can do this issuing a reboot command at) and you should be all set (unless you have certain cable modems which may mean you have to do the whole hard powercycle thing).
Here is a screenshot of my Almond+ (note the "AlmondPlus | Kamikaze" in the top left) with correctly running graphs:
(https://s3.amazonaws.com/tenny/almond_openwrt_realtime_graphs.png)
-
Nice. This worked for me.
-
Good work, jmtenny. Exactly as I suspected :)
-
So much for being told it hasn't been implemented. I'll get the software team to apply this fix.
Oh and thanks ;)
-
Awesome jmtenny.
Thank you for contributing!!
-
Works Awesome! appreciated the tip
-
We've fixed this in the upcoming firmware.
-
I upgraded to R065 and the new line for the sag file type wasn't in my lightttpd.conf
I still had to add it manually in order for it to work.
-
That's interesting, it's possible that it requires a hard reset, but it shouldn't.
I'll have to test tomorrow on a unit that hasn't had the fix and see if it works or not.
-
I'll confirm this issue as well. I didn't add the mime type originally... and I expected it to appear after the upgrade. But it didn't get added after the firmware update, so I broke down and add it myself.
-
Thank you jmtenny!
A quickie FYI for those not wanting to use vi. You can connect to the Almond + with WinSCP (Wintel only) and edit files easily.
You just need to make one change to the WinSCP configuration to be able to utilize it; otherwise you get a bash script error when logging in with WinSCP.
See attached pictures for changes to WinSCP.
-
Yeah, it isn't in my R065 either - had to manually apply the change.
-
I've reported this to the software team. I guess they missed it as it was fixed in an internal release.
-
Thanks jmtenny, worked here too.
-
Thanks jmtenny, worked here too.
Or maybe only partially. There is some graphics drawn, but only on the right side of the chart area (as with your example below). If I change the zoom level and hit F5/refresh, the graphics stay in the same place (on the right side), but appear in a different 'one minute' segment (zooming adds or removes segments on the right of the chart).
Also, the 'now','1m',2m','3m',... on the left side never have graphics (in a few minutes of trying).
-
Does anybody happen to have a copy of the original lighttpd.conf. I seem to have deleted something from mine, and I can't figure out where it's all going wrong. I am now unable to access the backend web console. :-[
-
Please see the attachement.
-
Thank you Lars :D
-
For what it's worth, it looks like this changed missed 066 as well since that's what I'm running and I had to manually add it myself.
-
Thank you jmtenny!
A quickie FYI for those not wanting to use vi. You can connect to the Almond + with WinSCP (Wintel only) and edit files easily.
You just need to make one change to the WinSCP configuration to be able to utilize it; otherwise you get a bash script error when logging in with WinSCP.
See attached pictures for changes to WinSCP.
The original images attached to this post seem to be scrambled. Can anyone post the configuration changes required in WinSCP to allow connection to the Almond+?
Thanks
-
Never-mind, I found this works