RRD graphs error on 2.0-BETA4 (i386) Aug 27 23:40:39 (RESOLVED)
-
If someone has a good calendar or time picker tool that easily fills the field with the correct unix timestamp value I'm open for suggestions.
I would firmly recommend jQuery and one of the many associated plugins if time picking is desired as well.
I have worked a tremendous amount with jQuery and it never fails to impress me.Here is the "builtin" datepicker with an icon trigger: http://jqueryui.com/demos/datepicker/#icon-trigger
It is extremely flexible as you can see from the "Examples" section on the right hand side of the page. You can have it restrict to certain rangers, give drop down selectors for the months/years, display multiple months at a time, and it will output to any string format you want or multiple to multiple target locations if you wanted. I would recommend however placing a human readable format, ideally the ISO/ANSI standard of YYYY-MM-DD HH:II:SS since you can wrap most anything with strtotime() in PHP to get the unix timestamp you need on the back end. That gives more freedom to the person inputing as well if they wish to do it manually instead of using the picker.Now in addition to the native picker, there are some other options to extend functionality. For example:
http://www.filamentgroup.com/lab/date_range_picker_using_jquery_ui_16_and_jquery_ui_css_framework/
That simplifies the selecting of a date range if you want to use only one input field. When triggered it offers one click access to "Today", "Last week", "Last month" etc… while also giving the three click option of a custom date range.Time pickers are a little more tricky because they can also be more trouble than they are worth in terms of how easy they are to use.
These use Google Calendar style time pickers:- http://tobiascohen.com/demos/calendrical/
- http://labs.perifer.se/timedatepicker/
These use sliders to select time:
- http://trentrichardson.com/examples/timepicker/
- http://source.cet.uct.ac.za/svn/sakai/ux/timepicker/
This one uses a more flow oriented point click method:
- http://www.ama3.com/anytime/
I would strongly recommend looking this route as you will end up with a highly browser independent solution which is backed by a very reliable JS framework. Now jQuery is not without its flaws, but back when I was in the position I had to choose one to live with, after all the evaluations I did, I picked it over the other options and have been happy with my choice. I have no qualms with the fact that I am now married to it. And you needn't only take my word for it, it seems to be doing well for these guys too: http://docs.jquery.com/Sites_Using_jQuery (I realize it is a logical fallacy to think something is good based on how many or who is using it, but I did want to point out that there are some precedents out there).
I hope this helps, and if you need help implementing one of these, get my attention somehow and I will lend a hand as time permits.
Cheers,
CHgsd
-
We can't use jquery. Currently, prototype is used and unless someone wants to completely rewrite all of the JS to be jquery, it'll stay prototype :-)
It's a discussion that's been raised before, and already decided upon.
Anything used has to either be based on prototype, or neutral in terms of the framework.
-
Well it is what it is I suppose. With that in mind, Any+Time used to use Prototype before they evolved to jQuery. They still have their old Prototype version available here:
- http://www.ama3.com/anytime/#prototype
It is probably your best bet because it has I believe all the features you need (down to time selection). Then if you, me, or someone else, were to ever make the migration from Prototype to jQuery like the aforementioned project, there would be a simpler upgrade path ;)
Other Prototype options:
- http://stephencelis.github.com/timeframe/
- http://scal.fieldguidetoprogrammers.com/scal-v02-documentation/scal-demo
- http://www.ajaxorized.com/dateslider/slider.html
I hope this helps.
Cheers,
CHgsd
-
This is on the latest update (from the autoupdater page)
Dec 31 01:50:34 kernel: FreeBSD 8.1-RELEASE-p2 #1: Thu Dec 30 20:39:36 EST 2010 Dec 31 01:50:34 kernel: sullrich@FreeBSD_8.0_pfSense_2.0-snaps.pfsense.org:/usr/obj.pfSense/usr/pfSensesrc/src/sys/pfSense_SMP.8 i386
I have this a bit up in the log as well:
Dec 31 01:50:48 php: : The command '/usr/bin/nice -n20 /usr/local/bin/rrdtool update /var/db/rrd/lan-queues.rrd -t :lan:qInternet:qACK:qDefault:qP2P:qGames:qOthersHigh:qOthersLow N:U:U:U:U:U:U:U:U' returned exit code '1', the output was 'ERROR: unknown DS name ''' Dec 31 01:50:48 php: : The command '/usr/bin/nice -n20 /usr/local/bin/rrdtool update /var/db/rrd/lan-queuedrops.rrd -t :lan:qInternet:qACK:qDefault:qP2P:qGames:qOthersHigh:qOthersLow N:U:U:U:U:U:U:U:U' returned exit code '1', the output was 'ERROR: unknown DS name ''' Dec 31 01:50:48 php: : The command '/usr/bin/nice -n20 /usr/local/bin/rrdtool update /var/db/rrd/wan-queues.rrd -t :wan:qACK:qDefault:qP2P:qGames:qOthersHigh:qOthersLow N:U:U:U:U:U:U:U' returned exit code '1', the output was 'ERROR: unknown DS name ''' Dec 31 01:50:48 php: : The command '/usr/bin/nice -n20 /usr/local/bin/rrdtool update /var/db/rrd/wan-queuedrops.rrd -t :wan:qACK:qDefault:qP2P:qGames:qOthersHigh:qOthersLow N:U:U:U:U:U:U:U' returned exit code '1', the output was 'ERROR: unknown DS name '''
Then a bit further down, I see:
Dec 31 02:01:29 php: /status_rrd_graph_img.php: Failed to create graph with error code 1, the error is: ERROR: start (1293800400) should be less than end (1293778889)/usr/bin/nice -n20 /usr/local/bin/rrdtool graph /tmp/system-processor.rrd-8hour.png --start 1293800400 --end 1293778889 --vertical-label "utilization, number" --color SHADEA#eeeeee --color SHADEB#eeeeee --title "`hostname` - System :: Processor - 6 hours - 1 minute average" --height 200 --width 620 DEF:"user=/var/db/rrd/system-processor.rrd:user:AVERAGE" DEF:"nice=/var/db/rrd/system-processor.rrd:nice:AVERAGE" DEF:"system=/var/db/rrd/system-processor.rrd:system:AVERAGE" DEF:"interrupt=/var/db/rrd/system-processor.rrd:interrupt:AVERAGE" DEF:"processes=/var/db/rrd/system-processor.rrd:processes:AVERAGE" AREA:"user#990000:user" AREA:"nice#a83c3c:nice:STACK" AREA:"system#b36666:system:STACK" AREA:"interrupt#bd9090:interrupt:STACK" LINE2:"processes#cccccc:processes" COMMENT:"\n" COMMENT:" minimum average maximum current