Re: Multi-target frustration
Quanah Gibson-Mount <[email protected]>
| Newsgroups | gmane.network.cricket.user |
|---|---|
| Message-ID | <[email protected]> |
--On Thursday, June 01, 2006 9:23 AM +0100 "Edmonds, Alan" <[email protected]> wrote: > I see what's wrong. You have actually created a new target > with each individual ldap server in it. If you look in > your crcket-data directory, you will see an .rrd file > for each target. All the same size except for one that's > about 9 times bigger then the other 9. Actually, other than binds-all, they are all the same size, which is exactly what I expect? -rw-r--r-- 1 cricket cricket 266396 Jun 1 08:55 binds-all.rrd -rw-r--r-- 1 cricket cricket 30300 Jun 1 08:55 binds-master.rrd -rw-r--r-- 1 cricket cricket 30300 Jun 1 08:55 ldap0-binds.rrd -rw-r--r-- 1 cricket cricket 30300 Jun 1 08:55 ldap1-binds.rrd -rw-r--r-- 1 cricket cricket 30300 Jun 1 08:55 ldap2-binds.rrd -rw-r--r-- 1 cricket cricket 30300 Jun 1 08:55 ldap3-binds.rrd -rw-r--r-- 1 cricket cricket 30300 Jun 1 08:55 ldap4-binds.rrd -rw-r--r-- 1 cricket cricket 30300 Jun 1 08:55 ldap5-binds.rrd -rw-r--r-- 1 cricket cricket 30300 Jun 1 08:55 ldap6-binds.rrd -rw-r--r-- 1 cricket cricket 30300 Jun 1 08:55 ldap7-binds.rrd -rw-r--r-- 1 cricket cricket 30300 Jun 1 08:55 ldap8-binds.rrd -rw-r--r-- 1 cricket cricket 30300 Jun 1 08:55 ldap9-binds.rrd I'll give your suggestion a try, it is certainly cleaner. ;) --Quanah > mtargets only works when the target type of each element > of a mtargets= is the exact same target type (name wise). > > You can sum() dses from different target types together > with cricket easily. > > > I would have done it this way. > ># define an ldap binds target type > > targetType ldap-bind > ds = "binds-ldap" > > datasource binds-ldap > ds-source = "exec:0:/usr/local/bin/ldapmon -B -h %server%" > desc = "The number of binds/second on %server%." > rrd-ds-type = DERIVE > rrd-min = 0 > rrd-max = undef > ># define our ldap server > > target ldap1-binds > server = "ldap1.stanford.edu" > short-desc = "ldap1: binds" > target-type = ldap-binds > > target ldap2-binds > server = "ldap2.stanford.edu" > short-desc = "ldap2: binds" > target-type = ldap-binds > > etc.... > > Then define a multi target. This sums all datasources in each target > together producing a graph with one line per data source. > > target binds-total > short-desc = "binds/second total across all ldap servers" > long-desc = "binds/second total across the LDAP servers > dedicated to all queries" mtargets = > "ldap1-binds;ldap2-binds;ldap3-binds;ldap4-binds;ldap5-binds;ldap6-binds; > ldap7-binds;ldap8-binds;ldap9-binds" mtarget-ops = "sum()" > target-type = ldap-bind > > You can also have a graph showing each ldap server on a seperate graph. > you may want to set an y-max sp the graphs can be compared side by side. > I find that people don't notice the number on the y-axis at all times and > it can lead to confusion. > > target binds-all > short-desc = "binds/second across all ldap servers" > long-desc = "binds/second across the LDAP servers dedicated to > all queries" targets = > "ldap1-binds;ldap2-binds;ldap3-binds;ldap4-binds;ldap5-binds;ldap6-binds; > ldap7-binds;ldap8-binds;ldap9-binds" target-type = ldap-bind > > Alan > > -----Original Message----- > From: Quanah Gibson-Mount [mailto:[email protected]] > Sent: 01 June 2006 02:22 > To: Edmonds, Alan; [email protected] > Subject: RE: [cricket-users] Multi-target frustration > > > > > --On Wednesday, May 31, 2006 6:20 PM +0100 "Edmonds, Alan" > <[email protected]> wrote: > >> Strange. Here's one of mine: >> >> target weblogic-standard-storage_servers >> mtargets = >> "/portal/nextra/machines/rf03/standard-storage-servers;/portal/nextra/mac >> hines/rf04/standard-storage-servers" mtargets-ops = >> sum() target-type = standard-storage >> >> (lookOut word wrapped the above). What errors if any are you seeing in >> the httpd log files? > > You mean like the huge error log bit I sent to the list yesterday? ;) > > Here's my complete setup for this particular thing. Since mtargets is > not really well documented, I understand I may have any number of > mistakes in my assumptions. "binds-all" works and graphs as expect, so > I don't understand why "binds-total" doesn't. > > target ldap1-binds > short-desc = "ldap1: binds" > target-type = ldap1-binds > > target ldap2-binds > short-desc = "ldap2: binds" > target-type = ldap2-binds > > target ldap3-binds > short-desc = "ldap3: binds" > target-type = ldap3-binds > > target ldap4-binds > short-desc = "ldap4: binds" > target-type = ldap4-binds > > target ldap5-binds > short-desc = "ldap5: binds" > target-type = ldap5-binds > > target ldap6-binds > short-desc = "ldap6: binds" > target-type = ldap6-binds > > target ldap7-binds > short-desc = "ldap7: binds" > target-type = ldap7-binds > > target ldap8-binds > short-desc = "ldap8: binds" > target-type = ldap8-binds > > target ldap9-binds > short-desc = "ldap9: binds" > target-type = ldap9-binds > > target binds-all > short-desc = "binds/second on all ldap servers" > long-desc = "binds/second on the LDAP servers dedicated to all > queries" > target-type = binds-all > > target binds-total > short-desc = "binds/second total across all ldap servers" > long-desc = "binds/second total across the LDAP servers > dedicated to all queries" > mtargets = > "ldap1-binds;ldap2-binds;ldap3-binds;ldap4-binds;ldap5-binds;ldap6-binds; > ldap7-binds;ldap8-binds;ldap9-binds" mtarget-ops = "sum()" > target-type = binds-all > > targetType binds-all > ds = > "binds-ldap1,binds-ldap2,binds-ldap3,binds-ldap4,binds-ldap5,binds-ldap6, > binds-ldap7,binds-ldap8,binds-ldap9" > > targetType ldap1-binds > ds = "binds-ldap1" > > targetType ldap2-binds > ds = "binds-ldap2" > > targetType ldap3-binds > ds = "binds-ldap3" > > targetType ldap4-binds > ds = "binds-ldap4" > > targetType ldap5-binds > ds = "binds-ldap5" > > targetType ldap6-binds > ds = "binds-ldap6" > > targetType ldap7-binds > ds = "binds-ldap7" > > targetType ldap8-binds > ds = "binds-ldap8" > > targetType ldap9-binds > ds = "binds-ldap9" > > datasource binds-ldap1 > ds-source = "exec:0:/usr/local/bin/ldapmon -B -h > ldap1.stanford.edu" desc = "The number of binds/second on > ldap1.stanford.edu." rrd-ds-type = DERIVE > rrd-min = 0 > rrd-max = undef > > datasource binds-ldap2 > ds-source = "exec:0:/usr/local/bin/ldapmon -B -h > ldap2.stanford.edu" desc = "The number of binds/second on > ldap2.stanford.edu." rrd-ds-type = DERIVE > rrd-min = 0 > rrd-max = undef > > datasource binds-ldap3 > ds-source = "exec:0:/usr/local/bin/ldapmon -B -h > ldap3.stanford.edu" desc = "The number of binds/second on > ldap3.stanford.edu." rrd-ds-type = DERIVE > rrd-min = 0 > rrd-max = undef > > datasource binds-ldap4 > ds-source = "exec:0:/usr/local/bin/ldapmon -B -h > ldap4.stanford.edu" desc = "The number of binds/second on > ldap4.stanford.edu." rrd-ds-type = DERIVE > rrd-min = 0 > rrd-max = undef > > datasource binds-ldap5 > ds-source = "exec:0:/usr/local/bin/ldapmon -B -h > ldap5.stanford.edu" desc = "The number of binds/second on > ldap5.stanford.edu." rrd-ds-type = DERIVE > rrd-min = 0 > rrd-max = undef > > datasource binds-ldap6 > ds-source = "exec:0:/usr/local/bin/ldapmon -B -h > ldap6.stanford.edu" desc = "The number of binds/second on > ldap6.stanford.edu." rrd-ds-type = DERIVE > rrd-min = 0 > rrd-max = undef > > datasource binds-ldap7 > ds-source = "exec:0:/usr/local/bin/ldapmon -B -h > ldap7.stanford.edu" desc = "The number of binds/second on > ldap7.stanford.edu." rrd-ds-type = DERIVE > rrd-min = 0 > rrd-max = undef > > datasource binds-ldap8 > ds-source = "exec:0:/usr/local/bin/ldapmon -B -h > ldap8.stanford.edu" desc = "The number of binds/second on > ldap8.stanford.edu." rrd-ds-type = DERIVE > rrd-min = 0 > rrd-max = undef > > datasource binds-ldap9 > ds-source = "exec:0:/usr/local/bin/ldapmon -B -h > ldap9.stanford.edu" desc = "The number of binds/second on > ldap9.stanford.edu." rrd-ds-type = DERIVE > rrd-min = 0 > rrd-max = undef > > > -- > Quanah Gibson-Mount > Principal Software Developer > ITS/Shared Application Services > Stanford University > GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html -- Quanah Gibson-Mount Principal Software Developer ITS/Shared Application Services Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html