Re: Multi-target frustration
"Edmonds, Alan" <[email protected]>
| Newsgroups | gmane.network.cricket.user |
|---|---|
| Message-ID | <CA82669882D4A14EA98E013430F5A4E34B75E4@tmexbridge.hammersmith.t-motion.co.uk> |
You are correct. binds-total should be a sum of each of the individual ldapX-bind
targets. There's a problem in the summing I would guess.
It seems like a strange thing, but try taking the sum() out of quotes in the
ldap-total target.
mtarget-ops = sum()
I think I ran into this at one time. Also, try running the grapher with
extra logging to see if you see any hints in the httpd-error log.
I don't see anything else wrong. I think it should work.
What a minute. You have the wrong target type in the total target.
Change the target-type in the totals and -all targets
to ldap-binds (not ldap-bind).
Alan
-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of Quanah
Gibson-Mount
Sent: 01 June 2006 17:37
To: [email protected]
Subject: Re: [cricket-users] Multi-target frustration
--On Thursday, June 01, 2006 9:23 AM +0100 "Edmonds, Alan"
<[email protected]> wrote:
I've updated my configuration like this:
target ldap0-binds
server = "ldap0.stanford.edu"
short-desc = "ldap0: binds"
target-type = ldap-binds
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
target ldap3-binds
server = "ldap3.stanford.edu"
short-desc = "ldap3: binds"
target-type = ldap-binds
target ldap4-binds
server = "ldap4.stanford.edu"
short-desc = "ldap4: binds"
target-type = ldap-binds
target ldap5-binds
server = "ldap5.stanford.edu"
short-desc = "ldap5: binds"
target-type = ldap-binds
target ldap6-binds
server = "ldap6.stanford.edu"
short-desc = "ldap6: binds"
target-type = ldap-binds
target ldap7-binds
server = "ldap7.stanford.edu"
short-desc = "ldap7: binds"
target-type = ldap-binds
target ldap8-binds
server = "ldap8.stanford.edu"
short-desc = "ldap8: binds"
target-type = ldap-binds
target ldap9-binds
server = "ldap9.stanford.edu"
short-desc = "ldap9: binds"
target-type = ldap-binds
target binds-master
short-desc = "binds/second on LDAP master"
long-desc = "binds/second on master LDAP server"
targets = "ldap0-binds"
target-type = ldap-bind
target binds-all
short-desc = "binds/second on all ldap servers"
long-desc = "binds/second on 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
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
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
targetType ldap-binds
ds = "binds-ldap"
And things are still not doing what I want:
(a) binds-all now shows individual graphs for everything, which is not what
I wanted. I wanted the overlayed graph I had before. Changing the ";" to
"," just results in errors.
(b) binds-total now shows all the graphs as overlayed, like "binds-all"
used to do. It is not summing up the target values to draw a single line,
which is why I started this entire exercise in the first place.
I can fix (a) easily enough by making its definition match the binds-total
setup, but what I really really want is a single graph showing the total
number of searches for all my ldap servers summed together, which is what
binds-total is supposed to be doing, right?
--Quanah
--
Quanah Gibson-Mount
Principal Software Developer
ITS/Shared Application Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html
_______________________________________________
cricket-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cricket-users