Please replace your calendar.php with the attached one. This will connect the calendars so that if you set the start after the end, it will correct that error to result in a 1 hour difference that will plot instead of breaking the graphs.
Then, if you edit header.php like the below, you get a new "Clear" button to reset the form if you want to (setting the menu to non-custom also does this). It also makes the text widgets a bit smaller which should format nicer on small displays. Thanks to Bernard Li for the ideas. -- <[EMAIL PROTECTED]>; I don't speak for Intel or anyone. *** 3.0.4/web/header.php 11 Apr 2007 17:05:38 -0000 1.11 --- 3.0.4/web/header.php 18 Jul 2007 15:35:06 -0000 *************** *** 266,271 **** --- 266,272 ---- $range_menu .= ">$v\n"; } $range_menu .= "</SELECT>\n"; + $range_menu .= "<input type=\"button\" value=\"Clear\" onclick=\"myclear(1)\">\n"; $tpl->assign("range_menu", $range_menu); } *************** *** 384,393 **** { $examples = "Feb 27 2007 00:00, 2/27/2007, 27.2.2007, now -1 week," . " -2 days, start + 1 hour, etc."; ! $custom_time .= "<br>or from <INPUT TYPE=\"TEXT\" TITLE=\"$examples\" NAME=\"cs\" ID=\"cs\""; if ($cs) $custom_time .= " value=\"$cs\""; ! $custom_time .= "> to <INPUT TYPE=\"TEXT\" TITLE=\"$examples\" NAME=\"ce\" ID=\"ce\""; if ($ce) $custom_time .= " value=\"$ce\""; $custom_time .= "><input type=\"submit\" value=\"Go\">\n"; --- 385,394 ---- { $examples = "Feb 27 2007 00:00, 2/27/2007, 27.2.2007, now -1 week," . " -2 days, start + 1 hour, etc."; ! $custom_time .= "<br>or from <INPUT TYPE=\"TEXT\" TITLE=\"$examples\" NAME=\"cs\" ID=\"cs\" SIZE=\"17\""; if ($cs) $custom_time .= " value=\"$cs\""; ! $custom_time .= "> to <INPUT TYPE=\"TEXT\" TITLE=\"$examples\" NAME=\"ce\" ID=\"ce\" SIZE=\"17\""; if ($ce) $custom_time .= " value=\"$ce\""; $custom_time .= "><input type=\"submit\" value=\"Go\">\n"; ________________________________ From: john allspaw [mailto:[EMAIL PROTECTED] Sent: Monday, July 16, 2007 1:06 PM To: Witham, Timothy D; Walid; ganglia-general@lists.sourceforge.net Subject: Re: [Ganglia-general] Web Front end start-end time monitoring/zooming ok so: 1 - this is sweet! 2 - yes please to getting this connected to the custom graph patch, which we use extensively... --j ----- Original Message ---- From: "Witham, Timothy D" <[EMAIL PROTECTED]> To: Walid <[EMAIL PROTECTED]>; ganglia-general@lists.sourceforge.net Sent: Monday, July 16, 2007 10:53:02 AM Subject: Re: [Ganglia-general] Web Front end start-end time monitoring/zooming I hacked my own, possibly starting from one of the original hacks initially, but I have forgot the source. I have been meaning to publish the result, so thanks for the reminder! One nice calendar/time selector widget is at: http://www.dynarch.com/projects/calendar/ If you install that in jscalendar-1.0/ in your web root, then the attached patch against 3.0.4 will connect that calendar widget to new cs and ce fields for custom start and custom end times respectively. If you pick start or end times, then the range is auto-set to new "custom" value and passed on with all clicks until you change it. If your browser doesn't do javascript, then you can just type in any values that rrdtool will accept. I also have this connected to the addons/custom_graph patch if anyone is interested. -- <[EMAIL PROTECTED]>; I don't speak for Intel or anyone. ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Walid Sent: Monday, July 16, 2007 3:04 AM To: ganglia-general@lists.sourceforge.net Subject: [Ganglia-general] Web Front end start-end time monitoring/zooming Hi All, I have seen before some hacks for the web front end to allow it display a period of time by specifying from, and to, but i am not able to locate them, I would appreciate any URLS/ references to these hacks, i am using Web Front end version 3.0.4, is there another web/gui tool that could zoom in the RRD database and show these information regards Walid ________________________________ Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center. <http://us.rd.yahoo.com/evt=48246/*http:/autos.yahoo.com/green_center/;_ ylc=X3oDMTE5cDF2bXZzBF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDZ3JlZW4tY2Vu dGVy>
calendar.php
Description: calendar.php
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ Ganglia-general mailing list Ganglia-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-general