[mrtg] math involving previous run's value
Richard Johnson
rdump at river.com
Mon Jul 17 23:42:26 MEST 2000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'd like to do something like the following:
Target[qwer]: `/etc/script -c`
Target[uiop]: `/etc/script -p`
Target[asdf]: ({qwer value} - {qwer value from previous mrtg invocation}) /
({uiop value} - {uiop value from previous mrtg invocation})
Is there a way to pull the previous run's info from mrtg's data within the
mrtg.cfg file itself, plus do math on the results of other script-driven
targets?
If not, I can write the script to save the previous values or pull them out of
the mrtg logs by itself, and just call it 4 times. I'd like to avoid doing
that, however, as I'm already slow enough. :-)
Rich
-----BEGIN PGP SIGNATURE-----
Version: PGP Personal Privacy 6.5.2
Comment: www.europarl.eu.int/dg4/stoa/en/publi/166499/execsum.htm
iQA/AwUBOXN9iWKSuJuuNAZUEQJHwQCfXR775B69EbYH7LKE2MMfD+qMcHoAoNVj
3V+Z4f23kzYYeoNXAIg3cNAM
=uwZc
-----END PGP SIGNATURE-----
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list