[drraw-users] v2.2a4 selection criteria and variable expansion

Lloyd Parkes Lloyd.Parkes at ird.govt.nz
Wed Nov 21 15:21:07 EST 2007


Hi there,
I'm trying to do something similar, and it took a bit of brute force and 
ignorance, but I got there.

I have a bunch of CPU usage rrds structured like this 
/<base_directory>/<server>.kstat.cpu<CPU#>.rrd and I want a template for the CPU 
usage of a whole server, not just a single CPU.

My base RE is (.+)\.kstat\.cpu31 so that I only get one match for each server. I 
have no Selection Expression. I have two File REs and they are both 
ASERVER\.kstat\.cpu[0-9]+. In the template info table I have 
ASERVER\.kstat\.cpu[0-9]+ mapped to $1.kstat.cpu[0-9]+

I think your problem is that your base RE is matching once for every file, 
rather than once for every <member>. Try changing your base RE to 
(.+)\/peerAS_209\.rrd and leaving your Selection Expression blank.

Cheers
-- 
Lloyd Parkes
Senior Systems Programmer
Open Systems
Ph: +64 4 890 2437


More information about the drraw-users mailing list