Securifi Community Forum

Securifi Products => Almond+ => Topic started by: reedog117 on August 16, 2014, 02:49:50 am

Title: Can't view any realtime graphs in the OpenWRT section
Post by: reedog117 on August 16, 2014, 02:49:50 am
None of the realtime status graphs work in the OpenWRT section, at least on a Mac.  In Safari, it just continuously downloads SVG files. In Firefox, it says it's missing plugins.  In Chrome, it downloads the svg file to my default download directory, then shows a warning that the page is trying to download multiple files and asks whether to allow or deny.

I tried the newest versions available for OS X Mavericks for Safari, Firefox, and Chrome.

To duplicate, just go to the OpenWRT section and try going to Status > Realtime Graphs > (any of the four choices)

I'm running the newest version of the firmware (R065).
Title: Re: Can't view any realtime graphs in the OpenWRT section
Post by: The19th on August 16, 2014, 02:59:43 am
Not sure what to tell you.  I'm running R065 firmware, Safari 7.0.5 on 10.9.4 and it works:

(http://forum.securifi.com/index.php?action=dlattach;topic=1443.0;attach=287;image)

It was discovered in a previous firmware that there was a missing line in a .conf file and it should have been included in R065.

Also, check out this topic (http://forum.securifi.com/index.php/topic,1202.0.html).  I did the steps listed for a previous firmware version and it worked.  However, I have done multiple factory resets since installing R065, so those steps on my A+ should have been blown away by now if it wasn't fixed in firmware (which it should have)
Title: Re: Can't view any realtime graphs in the OpenWRT section
Post by: reedog117 on August 16, 2014, 07:06:23 pm
I SSH'ed into my router and the line was still missing.  After adding it manually and restarting lighttpd the graphs now work properly.
Title: Re: Can't view any realtime graphs in the OpenWRT section
Post by: hilo90mhz on August 16, 2014, 07:19:43 pm
My graphs are missing in R065 too.
Title: Re: Can't view any realtime graphs in the OpenWRT section
Post by: SecureComp on August 19, 2014, 10:34:42 am
I am on R065 and also do not have the live graphs.

Using MAC OSX and Safari, the svg files are downloaded, nothing is displayed.
Title: Re: Can't view any realtime graphs in the OpenWRT section
Post by: reedog117 on August 19, 2014, 11:23:36 am
I SSH'ed into my router and the line was still missing.  After adding it manually and restarting lighttpd the graphs now work properly.

I think I spoke too soon.  I can't see any graphs for wlan00.  Also, the graphs that I do see don't update at all.  It's like it just does one screen draw and then that's it.
Title: Re: Can't view any realtime graphs in the OpenWRT section
Post by: chevyman142000 on August 19, 2014, 11:42:07 am
I would agree that the graphs only do one draw. I found that if I repeatedly click on where it says "auto refresh" at the top it will sort of refresh/re-draw the graphs. Definitely a bug imo.
Title: Re: Can't view any realtime graphs in the OpenWRT section
Post by: czyzczyz on August 25, 2014, 09:06:51 pm
I think it's a mime-type issue -- svg is missing from lighttpd's list of mime-types.

You may need to add the line:
 ".svg"          =>      "image/svg+xml",   
to the mimetype.assign section of /etc/lighttpd/lighttpd.conf.

More info here:
https://forum.openwrt.org/viewtopic.php?id=31605

Title: Re: Can't view any realtime graphs in the OpenWRT section
Post by: LGNilsson on August 27, 2014, 11:33:20 am
This was supposed to be fixed, but seemingly wasn't in R065, it will be fixed in R066. That said, it seems like the graphs aren't really auto updating and I'm not sure why. Manual refresh seems to work though.
Title: Re: Can't view any realtime graphs in the OpenWRT section
Post by: sykocus on September 30, 2014, 06:42:55 am
This was supposed to be fixed, but seemingly wasn't in R065, it will be fixed in R066. That said, it seems like the graphs aren't really auto updating and I'm not sure why. Manual refresh seems to work though.

Did this make it into R066? The real time graphs still weren't working even after I updated.  My status page is showing R066 but I'm wondering if something went wrong with the update on my end.

I ended up editing the lighttpd.conf file on my own, but that was quite an adventure.
Title: Re: Can't view any realtime graphs in the OpenWRT section
Post by: LGNilsson on September 30, 2014, 06:48:02 am
It should have, yes, so strange it didn't work.
Title: Re: Can't view any realtime graphs in the OpenWRT section
Post by: burnz on September 30, 2014, 04:21:46 pm
My browser tries to download a file everytime i try to open the realtime graph page...
(tried chrome and safari on a mac yosemite on R066)
Title: Re: Can't view any realtime graphs in the OpenWRT section
Post by: burnz on October 06, 2014, 09:50:36 am
Any ideas how to fix it?
Title: Re: Can't view any realtime graphs in the OpenWRT section
Post by: burnz on October 15, 2014, 01:03:03 pm
No news here?
Title: Re: Can't view any realtime graphs in the OpenWRT section
Post by: verdantrouter on November 04, 2014, 05:08:58 am
Burnz I had similar situation on Yosemite with the R66 firmware just flashed. Don't know if it's an issue with retaining settings from previous state when flashing?
Bottom line is a line missing from the /etc/lighttpd/lighthttpd.conf

In the Terminal program on your Mac type   ssh root@10.10.10.254
(use the password which you have set, you'll have to accept the SSH fingerprint)
this substitutes for step 1. in the below which I've lifted from another thread.

once you're logged in you basically do
vi /etc/lighttpd/lighthttpd.conf
use cursor keys to move to the correct location
press i (which starts the insert mode)
press return (to give yourself a line to type)
the first section of space is a tab (don't know if it matters but have had bad experiences in the past so I put a tab in too)
then type in the missing configuration text exactly as per below (making sure you include the comma at the end!)
then press <Esc> (which tips it into command mode)
then :w (the : prepares it to take a command, the w means write, press return to make it happen)
then ZZ to get out of vi... (take a look at the vi editor tips linked in the really really helpful message I quote below)

then use the reboot command at the command line (easiest way, though doubtless there is a way to just reboot the web server)
(your connection to the router will, of course, die.. but the screen on the router will show you it starting up..)

Then.. ta-daa..
the images are correctly shown under Safari as installed with Mac OS X 10.10 (yosemite).

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: Can't view any realtime graphs in the OpenWRT section
Post by: adx on December 04, 2014, 11:56:28 am
now running firmware R069. on my Safari browser under OSX Yosemite the graphs are there but still no refresh.