[Orca-users] Once a day plotting

jerome bauwens jerome.bauwens at steria.com
Tue Oct 8 06:41:02 PDT 2002


Hello,

I'm trying to plot some daily NetBackup activity. I want to run orca only o=
nce at noon with only a single line of input everyday. I ran it for the pas=
t five days with the following input files:

[zeus]:/usr/local/orca/nblog/input>ls -l
total 10
-rw-r--r--   1 root     other         49 Oct  4 16:45 nb.orca.20021004
-rw-r--r--   1 root     other         49 Oct  5 12:00 nb.orca.20021005
-rw-r--r--   1 root     other         49 Oct  6 12:00 nb.orca.20021006
-rw-r--r--   1 root     other         49 Oct  7 12:00 nb.orca.20021007
-rw-r--r--   1 root     other         49 Oct  8 12:27 nb.orca.20021008
[zeus]:/usr/local/orca/nblog/input>cat *
1033742716       18       88     421948044       88
1033812001       32       72     680048925       87
1033898400       39       43     584608708       78
1033984801       21       21     312067414       69
1034072820       13       23     283324056       87
[zeus]:/usr/local/orca/nblog/input>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
I'm running orca with orca -o orcaconf_tape:

[zeus]:/usr/local/orca/scripts>cat orcaconf_tape
state_file /usr/local/orca/nblog/state/nb_state
rrd_dir /usr/local/orca/nblog/rrd
html_dir /usr/local/orca/nblog/html/orca-html
html_page_header <a href=3D"index.html">NB INDEX</a>
generate_hourly_plot    0
generate_daily_plot     0
generate_weekly_plot    1
generate_monthly_plot   1
generate_quarterly_plot 0
generate_yearly_plot    0

group nbjobs {
find_files /usr/local/orca/nblog/input/nb.orca.(\d{4}\d{2})\d{2}
column_description etime nbtape nbscratch sumkb nbjob
date_source column_name etime
interval 86400
}

plot {
title TAPE USED AND SCRATCH
source nbjobs
data nbtape
data nbscratch
line_type LINE2
line_type STACK
legend cartouches utilisees pendant la nuit=20
legend nombre de cartouches dans le scratch
}

plot {
title Kb SUM
source nbjobs
data sumkb
line_type LINE3
legend kk
}

plot {
title NOMBRE DE JOBS
source nbjobs
data nbjob
line_type AREA
y_legend nombre de jobs au cours de la nuit
}
[zeus]:/usr/local/orca/scripts>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
The plot I get seem to be some kind of average as the "TAPE USED AND SCRATC=
H" shows a value of 16,333 instead of 13 for the number of tapes used last =
night. What am I missing ? I really can't run my script at midnight as my b=
ackup window goes from 7 pm to 11am and I'd like to update my rrd and html =
files the same day the backups were done (even though some of them actually=
 started the day before). Don't pay attention to the type of lines or legen=
ds as I am still testing (duh!)

Thanks in advance

Jerome
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nbjobs_200210_gauge_nbtape,__nbscratch-weekly.png
Type: image/png
Size: 5622 bytes
Desc: not available
URL: </pipermail/orca-users/attachments/20021008/86888c66/attachment.png>


More information about the Orca-users mailing list