[Orca-users] related to graphs

Tankersley, Jon jon.tankersley at eds.com
Tue Feb 14 07:49:49 PST 2006


You have to patch rrdtool's rrd_graph.c.
I've got a patch I've been trying to get autoconf to recognize for it...
Basically you change the strings that this structure is presenting for
those time frames.  '%b %d' would be Feb 14 for today and would show up
in the middle of the interval.  '%m/%y' would me 02/06 and again show up
in the middle of the interval.  An interval would be the area between
two of the thicker vertical lines on the graph.
 
I was trying to make the formatting more of an option.   The Week WW
doesn't mean much to the people that I have looking at the data.  This
worked nicely, once they understood that the date is the middle
'section' of the interval and they can then count up or down
appropriately.
 
 
--- orca/packages/rrdtool-1.0.49/src/rrd_graph.c        (revision 410)
+++ orca/packages/rrdtool-1.0.49/src/rrd_graph.c        (working copy)
@@ -53,13 +53,23 @@
     {60,       TMT_MINUTE,30, TMT_HOUR,2,    TMT_HOUR,2,
0,"%H:%M"},
     {180,      TMT_HOUR,1,    TMT_HOUR,6,    TMT_HOUR,6,
0,"%H:%M"},
  /* {300,      TMT_HOUR,3,    TMT_HOUR,12,   TMT_HOUR,12,
12*3600,"%a %p"},  this looks silly */
+#ifdef ALTERNATE_DATE
+    {600,      TMT_HOUR,6,    TMT_DAY,1,     TMT_DAY,1,     24*3600,"%a
%d"},
+    {1800,     TMT_HOUR,12,   TMT_DAY,1,     TMT_DAY,2,     24*3600,"%a
%d"},
+    {3600,     TMT_DAY,1,     TMT_WEEK,1,    TMT_WEEK,1,  7*24*3600,"%b
%d"},
+    {3*3600,   TMT_WEEK,1,    TMT_MONTH,1,   TMT_WEEK,2,  7*24*3600,"%b
%d"},
+    {6*3600,   TMT_MONTH,1,   TMT_MONTH,1,   TMT_MONTH,1,
30*24*3600,"%m/%y"},
+    {48*3600,  TMT_MONTH,1,   TMT_MONTH,3,   TMT_MONTH,3,
30*24*3600,"%m/%y"},
+    {10*24*3600, TMT_YEAR,1,  TMT_YEAR,1,    TMT_YEAR,1,
365*24*3600,"%y"},
+#else
     {600,      TMT_HOUR,6,    TMT_DAY,1,     TMT_DAY,1,
24*3600,"%a"},
     {1800,     TMT_HOUR,12,   TMT_DAY,1,     TMT_DAY,2,
24*3600,"%a"},
-    {3600,     TMT_DAY,1,     TMT_WEEK,1,     TMT_WEEK,1,
7*24*3600,"Week %V"},
-    {3*3600,   TMT_WEEK,1,      TMT_MONTH,1,     TMT_WEEK,2,
7*24*3600,"Week %V"},
+    {3600,     TMT_DAY,1,     TMT_WEEK,1,    TMT_WEEK,1,
7*24*3600,"Week %V"},
+    {3*3600,   TMT_WEEK,1,    TMT_MONTH,1,   TMT_WEEK,2,
7*24*3600,"Week %V"},
     {6*3600,   TMT_MONTH,1,   TMT_MONTH,1,   TMT_MONTH,1,
30*24*3600,"%b"},
     {48*3600,  TMT_MONTH,1,   TMT_MONTH,3,   TMT_MONTH,3,
30*24*3600,"%b"},
     {10*24*3600, TMT_YEAR,1,  TMT_YEAR,1,    TMT_YEAR,1,
365*24*3600,"%y"},
+#endif
     {-1,TMT_MONTH,0,TMT_MONTH,0,TMT_MONTH,0,0,""}



________________________________

	From: orca-users-bounces+jon.tankersley=eds.com at orcaware.com
[mailto:orca-users-bounces+jon.tankersley=eds.com at orcaware.com] On
Behalf Of Ramkumar Raghavan
	Sent: Tuesday, February 14, 2006 1:26 AM
	To: orca-users at orcaware.com
	Subject: [Orca-users] related to graphs
	
	
	Hi All,
	 
	  I have configured orca server with 4 sun clients. The orca
server is running fine and generating graphs.
	 
	But in graphs I see every weekly report and monthly report
doesnt have the month names or week names.
	 
	For example, for febrauary monthly report I need febrauary to be
displayed in the graph.
	 
	Please let me know how to go about this.
	
	Best Regards
	Ramkumar Raghavan
	
	
	 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/orca-users/attachments/20060214/910d3150/attachment.html>


More information about the Orca-users mailing list