[Orca-users] Re: How to customize the time axis (x-axis)?

simon.klyne at arcordia.com simon.klyne at arcordia.com
Wed May 30 08:04:55 PDT 2001


Here's is a small Korn shell script that shows one way of graphing data for
a specific time interval from the RRD files created
by Orca:
(See attached file: report1.sh)

and here is the output:

(See attached file: 20010525_0000_Process_fail.png)(See attached file:
Performance_Report.html)

BTW I find it much easier to do this with perl, if I get time I may post a
perl script that does the same sort of thing


Simon






ppchu99 at yahoo.com on 30/05/2001 15:06:28

Please respond to orca-discuss at yahoogroups.com

To:   orca-discuss at yahoogroups.com
cc:
Subject:  [orca-discuss] Re: How to customize the time axis (x-axis)?


Hi Simon,

I am a newbie on this..Could you be a bit more specific on this
subject ?? for example, where do you place this shell script in
respect to rddtool ??

thx
--- In orca-discuss at y..., simon.klyne at a... wrote:
>
> Hi
>
> I use Orca for graphing all sorts of measurements of our system and
produce
> a daily report on it's own web page.
> I acheive this by using rrdtool directly on the RRD files created by
Orca.
> Here is a fragment of shell script ( bourne/korn ) that produces a
PNG
> graph and the line of html to paste into a web page to pick up the
graph:
>
>   ${bindir1}/rrdtool graph
${graph_dir}/${date_fnam_str}Proc_fail_time_series.png \
>     --end "${year}${month}${day} ${hour}:${mins}" \
>     --start end-4weeks \
>     --imginfo "<IMG SRC=\"${web_graph_dir}/%s\" WIDTH=\"%lu\"
HEIGHT=\"%lu\" ALT=\"Process Restarts last 4 weeks\">" \
>     --height $height --width $width \
>     --vertical-label 'Process Restart Count' \
>     --title "Automatic Process Restarts for 4 weeks to
$title_date_str" \
>
"DEF:A=${OrcaDir}/${Proc_fail}/STS/Proc_fail_GCT.rrd:Orca19990222:AVER
AGE" \
>
"DEF:B=${OrcaDir}/${Proc_fail}/STS/Proc_fail_NM.rrd:Orca19990222:AVERA
GE" \
>
"DEF:C=${OrcaDir}/${Proc_fail}/STS/Proc_fail_QM.rrd:Orca19990222:AVERA
GE" \
>
"DEF:D=${OrcaDir}/${Proc_fail}/STS/Proc_fail_SM.rrd:Orca19990222:AVERA
GE" \
>     'AREA:A#A6A6AA:GCT' \
>     'STACK:B#6A5ACD:NM' \
>     'STACK:C#4169E1:QM' \
>     'STACK:D#40E0D0:SM' \
>     "COMMENT:\s" \
>     "COMMENT:\s" \
>     "COMMENT:\s" \
>     "COMMENT:$date_str" | \
>       grep IMG > $Proc_fail_TS_html
>
> For me this was the best approach since I still wanted the
underlying Orca pages to be relect the latest status.
>
>
> Simon
>
>
>
>
>
> ppchu99 at y... on 24/05/2001 17:07:22
>
> Please respond to orca-discuss at y...
>
> To:   orca-discuss at y...
> cc:
> Subject:  [orca-discuss] Re: How to customize the time axis
(x-axis)?
>
>
> Hi,
>
> Could you be a bit more specific on this subject, since I am new to
> this ??
>
> I understand the part of the change is on lib/Orca/ImageFile.pm
>
> The segment of the code is:
>
> # Create the options for RRDs::graph that do not change across any
>   # invocations of RRDs::graph.
>   my @options = (
>     '-v', ::replace_subgroup_name($plot_ref->{y_legend},
> $subgroup_name),
>     '-b', $plot_ref->{base}
>   );
>
> thx
>
> --- In orca-discuss at y..., Blair Zajac <blair at a...> wrote:
> > Hello,
> >
> > While RRDtool can be specified to plot a specific time span using
> > the -e and -s command line options (see the rrdgraph and rrdfetch
> > manual pages) Orca is not currently designed to pass these options
> > to RRDtool.
> >
> > If you wanted to, you could edit lib/Orca/ImageFile.pm and add the
> > -e and -s rrdgraph options to @options.  Look at the rrdfetch
manual
> > page for hints on getting the 3pm to 5pm time span.
> >
> > I'd be interested in seeing what changes you need to make this
> happen
> > and the specific arguments to -e and -s to get the consistent 3pm
> and
> > 5pm times.
> >
> > Regards,
> > Blair
> >
> > Cindy_Liu at i... wrote:
> > >
> > > Hello there,
> > >
> > > How can I customize the time axis so that I can see report for a
> > > certain defined period, say from 3pm to 5pm?
> > >
> > > Thanks,
>
>
>
>
http://docs.yahoo.com/info/terms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: report1.sh
Type: application/x-sh
Size: 4363 bytes
Desc: 
URL: </pipermail/orca-users/attachments/20010530/e872c6dd/attachment.sh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20010525_0000_Process_fail.png
Type: application/octet-stream
Size: 30736 bytes
Desc: not available
URL: </pipermail/orca-users/attachments/20010530/e872c6dd/attachment.obj>
-------------- next part --------------
PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9JRVRGLy9EVEQgSFRNTC8vRU4iPgo8aHRtbD4K ICA8aGVhZD4KICAgIDx0aXRsZT5QZXJmb3JtYW5jZSBSZXBvcnQgLSAKICAgICAgMjUgTWF5 IDIwMDEgIDAwOjAwCiAgICA8L3RpdGxlPgogIDwvaGVhZD4KPGJvZHkgPgogIDxoMT5QZXJm b3JtYW5jZSBSZXBvcnQgLSAKICAgIDI1IE1heSAyMDAxICAwMDowMAogIDwvaDE+CiAgPGhy PgogIDxoMj5Ub3RhbCBEYWlseSBBdXRvbWF0aWMgUmVzdGFydHMgZm9yIDUgZGF5cyB0byAy NSBNYXkgMjAwMSAgMDA6MDAKICAgIDxzcGFjZXIgdHlwZT1ob3Jpem9udGFsIHNpemU9NTA+ CiAgPC9oMj4KICA8dGFibGUgY2VsbHBhZGRpbmc9MCBib3JkZXI9Mz4KICAgIDx0cj4KICAg ICAgPHRkPgo8SU1HIFNSQz0iMjAwMTA1MjVfMDAwMF9Qcm9jZXNzX2ZhaWwucG5nIiBXSURU SD0iNjk1IiBIRUlHSFQ9IjI1MyIgQUxUPSJBdXRvbWF0aWMgUmVzdGFydHMgbGFzdCA0IHdl ZWtzIj4KICAgICAgPC90ZD4KICAgIDwvdHI+CiAgPC90YWJsZT4KICA8aHI+CiAgPHNwYWNl
ciB0eXBlPXZlcnRpY2FsIHNpemU9MzAwPgo8IS0tIENyZWF0ZWQ6IDI1IE1heSAyMDAxIDAw OjAwIC0tPgo8L2JvZHk+CjwvaHRtbD4K


More information about the Orca-users mailing list