[Orca-users] Re: Problem creating a new plot

Darren Dunham ddunham at taos.com
Wed Jun 19 08:57:01 PDT 2002


>
> If you can send a data file along that doesn't work, that would be good.

Here's the top of the data file that's not working..

# head -3 data
timestamp /Memory/Available_Bytes /Network_Interface-1-/Bytes_Received/sec /Network_Interface-1-/Bytes_Sent/sec /Paging_File-_Total-/%_Usage /PhysicalDisk-_Total-/%_Disk_Read_Time /PhysicalDisk-_Total-/%_Disk_Write_Time /Processor-0-/%_Processor_Time /Processor-1-/%_Processor_Time
1024494149 29331456 2013.0457940989554 2013.0457940989554 15.002604166666666 0 0 0.52784695487135824 0.59552925308065108
1024494449 30732288 2206.2591569246392 2206.2591569246392 15.043836805555555 0 0 0.58730410558758273 0.47793920361353104

Here's one that is similar, but the CPU figures are "total" rather than
individual, and the CPU figures actually plot when orca runs.

timestamp /Memory/Available_Bytes /Network_Interface-Intel_8255x-based_Integrated_Fast_Ethernet-/Bytes_Received/sec /Network_Interface-Intel_8255x-based_Integrated_Fast_Ethernet-/Bytes_Sent/sec /Paging_File-_Total-/%_Usage /PhysicalDisk-_Total-/%_Disk_Read_Time /PhysicalDisk-_Total-/%_Disk_Write_Time /PhysicalDisk-_Total-/%_Idle_Time /Processor-_Total-/%_Processor_Time /Web_Service-_Total-/Current_Connections
1024496221 1379553280 448.76545572079152 160.81109294369372 1.1312087609970676 0 0.021389129914084874 99.981458428534225 0.90606123724223941 0
1024496521 1379508224 302.38226780014656 142.89773836810727 1.1312087609970676 0 0.022015513307984791 0 0.89583333333332904 0

Finally, these are the first two plots in the config file in their entirety..

plot {
title                   %g CPU Usage
source                  windows
data                    /Processor-_Total-/%_Processor_Time
#data                   100 - /Processor-_Total-/%_Processor_Time
line_type               area
#line_type              stack
color                   ff0000
legend                  CPU Utilization
#legend                 CPU Idle
y_legend                Percent
data_min                0
data_max                100
#plot_min               0
#plot_max               100
#rigid_min_max          1
}

plot {
title                   %g CPU 0 Usage
source                  windows
data                    /Processor-_0-/%_Processor_Time
#data                   100 - /Processor-_Total-/%_Processor_Time
line_type               area
#line_type              stack
color                   ff0000
legend                  CPU0 Utilization
#legend                 CPU Idle
y_legend                Percent
data_min                0
data_max                100
#plot_min               0
#plot_max               100
#rigid_min_max          1
}

All I've done is copy the first one to the second and modify the title,
the legend, and the data lines.

When I run this with verbose options, this appears...

../bin/orca -o -v -v windows2.cfg
Orca version 0.263 using RRDs version 1.000331 at Wed Jun 19 08:52:48 2002.
Loading state from `/usr/local/orca/var/orca/rrd/windows2/windows.state'.
Creating orca.gif.
Creating rrdtool.gif.
Finding files and setting up data structures at Wed Jun 19 08:52:48 2002.
../bin/orca: warning: no substitutions performed for `data /Processor-_0-/%_Processor_Time' in plot #2 in `/usr/local/orca/var/orca/windows/ntapp14/data'.
../bin/orca: warning: cannot compile `sub { /Processor-_0-/%_Processor_Time }' for plot #2 `data /Processor-_0-/%_Processor_Time': Operator or semicolon missing before %_Processor_Time at (eval 9) line 1.
../bin/orca: warning: no substitutions performed for `data /Memory/Available_Bytes' in plot #4 in `/usr/local/orca/var/orca/windows/ntapp14/data'.
[... lots more "no substitutions" warnings...]

When I look at the html that is produced, there are other plots, but not
one for CPU (which is plot #2).  I can't figure out why if the first one
is valid, the second one isn't. 

I could preprocess the data and "average" the four individual CPU
figures into one and give it the same heading, but that seems silly.
I'd rather figure out why it's bombing out at that point.
--
Darren Dunham                                           ddunham at taos.com
Unix System Administrator                    Taos - The SysAdmin Company
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >



More information about the Orca-users mailing list