[mrtg] Summation problem
briang at zebec.net
Tue Mar 30 18:49:02 MEST 2004
-----BEGIN PGP SIGNED MESSAGE-----
I am trying to do something like this:
Target[<Target>]: 100 - ((<OID1>&<OID2>:community at x.x.x.1) +
(<OID1>&<OID2>:community at x.x.x.2))
Hosts x.x.x.1 and x.x.x.2 are two servers configured as a cluster.
The OID1 and OID2 values return a percentage of a cluster resource,
but only the server that is the active cluster can report on these
values. The other cannot return any information.
OID1 and OID2 are percentage values of a resource unused amount. The
goal is to come up with the inverse of the answer (100-answer) to
give a percentage of the resource used.
I'm running MRTG in rrd database mode. The symptom is that since one
of the two servers will always return an unknown value, it seems the
Target line is skipped. I have configured the unknaszero option, but
this does not appear to help at all. It appears that since a portion
of the answer is an unknown, the entire calculation is considered an
unknown. Can anyone offer a suggestion?
T. Brian Granier
GCIA, GCFW, GCIH, GCUX, CCSE, CHP, MCSE (NT4&W2K), et al.
Information Security Architect
Zebec Data Systems, Inc.
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.3
-----END PGP SIGNATURE-----
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
More information about the mrtg