Securifi Community Forum

Securifi Products => Almond+ => Topic started by: dbuttke on July 14, 2014, 09:00:33 pm

Title: Graphs need plugin to be viewed??
Post 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??
Title: Re: Graphs need plugin to be viewed??
Post by: brycied00d on July 14, 2014, 11:53:05 pm
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.
Title: Re: Graphs need plugin to be viewed??
Post by: jjoepaulines on July 15, 2014, 12:38:38 am
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.
Title: Re: Graphs need plugin to be viewed??
Post by: rfoshee on July 16, 2014, 01:53:20 pm
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.
Title: Re: Graphs need plugin to be viewed??
Post by: LGNilsson on July 17, 2014, 01:13:35 am
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.
Title: Re: Graphs need plugin to be viewed??
Post by: jmtenny on July 17, 2014, 01:40:22 pm
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:

Code: [Select]
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:

Code: [Select]
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)
Title: Re: Graphs need plugin to be viewed??
Post by: Tiger Woods on July 17, 2014, 02:24:53 pm
Nice.  This worked for me.
Title: Re: Graphs need plugin to be viewed??
Post by: brycied00d on July 17, 2014, 08:22:55 pm
Good work, jmtenny. Exactly as I suspected  :)
Title: Re: Graphs need plugin to be viewed??
Post by: LGNilsson on July 17, 2014, 08:51:00 pm
So much for being told it hasn't been implemented. I'll get the software team to apply this fix.
Oh and thanks  ;)
Title: Re: Graphs need plugin to be viewed??
Post by: eldaria on July 18, 2014, 02:00:11 am
Awesome jmtenny.

Thank you for contributing!!
Title: Re: Graphs need plugin to be viewed??
Post by: red_sabre on August 05, 2014, 10:20:22 pm
Works Awesome! appreciated the tip
Title: Re: Graphs need plugin to be viewed??
Post by: LGNilsson on August 11, 2014, 09:21:51 am
We've fixed this in the upcoming firmware.
Title: Re: Graphs need plugin to be viewed??
Post by: reedog117 on August 16, 2014, 07:03:09 pm
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.
Title: Re: Graphs need plugin to be viewed??
Post by: LGNilsson on August 16, 2014, 09:32:03 pm
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.
Title: Re: Graphs need plugin to be viewed??
Post by: jake on August 17, 2014, 06:54:13 am
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.
Title: Re: Graphs need plugin to be viewed??
Post by: pete on August 17, 2014, 09:29:21 am
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.

Title: Re: Graphs need plugin to be viewed??
Post by: gergles on August 17, 2014, 01:19:58 pm
Yeah, it isn't in my R065 either - had to manually apply the change.
Title: Re: Graphs need plugin to be viewed??
Post by: LGNilsson on August 17, 2014, 11:16:14 pm
I've reported this to the software team. I guess they missed it as it was fixed in an internal release.
Title: Re: Graphs need plugin to be viewed??
Post by: mr23 on August 30, 2014, 07:16:18 pm
Thanks jmtenny, worked here too.
Title: Re: Graphs need plugin to be viewed??
Post by: mr23 on August 30, 2014, 07:26:25 pm
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).
Title: Re: Graphs need plugin to be viewed??
Post by: raihsidd on September 03, 2014, 11:12:54 am
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.  :-[
Title: Re: Graphs need plugin to be viewed??
Post by: LGNilsson on September 06, 2014, 11:52:14 pm
Please see the attachement.
Title: Re: Graphs need plugin to be viewed??
Post by: raihsidd on September 07, 2014, 02:45:51 am
Thank you Lars  :D
Title: Re: Graphs need plugin to be viewed??
Post by: psifertex on October 19, 2014, 03:58:55 pm
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.
Title: Re: Graphs need plugin to be viewed??
Post by: Automate on November 17, 2015, 12:45:02 pm
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
Title: Re: Graphs need plugin to be viewed??
Post by: Automate on November 17, 2015, 01:47:29 pm
Never-mind,  I found this works