[ previous ] [ next ] [ threads ]
 
 From:  Max Khitrov <max at mxserve dot net>
 To:  m0n0wall dash dev at lists dot m0n0 dot ch
 Subject:  Replacement for CPU/Memory graph
 Date:  Mon, 17 Oct 2005 17:37:28 -0400
Hello everyone,

Just joined the dev list, so not sure if this has been discussed before 
or not, but I was wondering if there are any plans to replace the SVG 
graph with something that doesn't require additional software?

Over at my workplace I've been doing a lot of stuff with ajax lately, 
and one of the things I'm writing right now actually could very easily 
be integrated with m0n0wall. If you would like a quick demo, take a look 
here: http://mxserve.com/GraphLink/

The whole thing is actually a branch of a much larger project that I'm 
working. I needed a good way of graphing data, and came up with that, if 
you spot any errors, please let me know. From what I can tell, the SVG 
engine that you are using right now just reads the CPU usage value from 
stats.cgi. By changing one line of code from that demo, you can have a 
graph like that output the CPU usage, Memory, or anything else for 
m0n0wall. Could even do a live bandwidth usage output on the status 
page. All as long as you can get some script to output the values you 
need to graph.

Of course, the whole idea behind this is to create a way of accessing 
the same information with as little requirements as possible. As long as 
you have a javascript-enabled browser you should be good to go. The only 
thing that may need to be done is some css tweaking. I've tested the 
demo on Firefox and IE, so if it doesn't look right on another browser, 
please let me know.

Would really appreciate it if you guys considered replacing the SVG with 
something like this. I'd be happy to help with any more coding if you 
think this is a good idea. The ajax engine I use on that demo is still a 
work-in-progress and you wouldn't need anything as complicated as that. 
Of course, you can modify all the graphics and format as much as you 
like. This is more for proof of concept.

- Max