[Orca-users] Regex problem with orcallator.se
David Michaels
dragon at raytheon.com
Mon Mar 21 15:17:33 PST 2005
I found a better solution. As was pointed out to me off-list, the
'regex' that SE uses is from the standard regex library, and does not
have functions like what 'egrep' uses, so its functions are somewhat
limited--no 'or' function for me. However, I forgot that orcallator.cfg
can do some degree of manipulation of column data before presenting it
in the graph. So, I simply split my vob_server and vob_rpcserver counts
into two columns in orcallator.se, then modified orcallator.cfg to add
these two columns together when graphing it (see below).
The reason for combining them is that the sum of these two process
counts is tied via a formula directly to one of the lockmanager (almd)
settings for ClearCase. It's a small step or two, then, to include this
data on the overview chart, with anything over 1.0 indicating
insufficient lockmgr sizes.
Anyone else using ClearCase out there who might care? ;)
--Dragon
plot {
title %g Number of System & ClearCase Server Processes
source orcallator
data #proc
data #miscprocs
data #miscprocs2
data #miscprocs3 + #miscprocs4
line_type line1
line_type area
line_type stack
line_type stack
legend System total
legend view_server procs
legend db_server procs
legend vob & vobrpc procs
y_legend Number Processes
data_min 0
data_max 10000
color 0000ff
color 00ff00
color ff0000
color aa00aa
href
http://www.orcaware.com/orca/docs/orcallator.html#number_system_processes
}
David Michaels wrote:
>
> In my orcallator.se file, I've tweaked the part that tracks system
> processes (which optionally includes httpd procs). I wanted to add
> ClearCase processes to the list of those tracked. I wanted one column
> to track the total number of vob_server or vobrpc_server procs, but
> the regexp doens't seem to be working. Here's the latest effort:
>
> if (www_misc_proc_name3 == nil || www_misc_proc_name3 == "") {
> www_misc_proc_name3 = "((vob_server)|(vobrpc_server))";
> }
>
> I'm pretty sure the strings are interpreted as regexps, because of
> count_procs use of:
>
> if (p.pr_fname =~ regexs[i]) {
> ++count_procs_results[i];
> }
>
> Which I assume is a regexp comparison. But perhaps SE's "regex"
> doesn't allow for multiple words in teh same regex.
>
> Is there a better way to do this that I'm missing?
>
> --Dragon
>
> _______________________________________________
> Orca-users mailing list
> Orca-users at orcaware.com
> http://www.orcaware.com/mailman/listinfo/orca-users
--
Raytheon
*David P. Michaels*
Senior Multi-Disciplined Engineer II W.H.
NPOESS IS
Platform OS Unix
303.344.6840
720.858.5952 fax
720.521.0561 pager
dragon at raytheon.com <mailto:dragon at raytheon.com> *aka "Dragon"*
"I wonder what news is doing..."
news at newshost <29> ps -fu news
news 18624 12367 2 0:00 makehistory
"News is making history."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/orca-users/attachments/20050321/6a30f341/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Raytheon.gif
Type: image/gif
Size: 481 bytes
Desc: not available
URL: </pipermail/orca-users/attachments/20050321/6a30f341/attachment.gif>
More information about the Orca-users
mailing list