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'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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.