[mrtg] Re: Proposal: "Passive" or "Serverized" MRTG. (Instead of collecting it

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Fri Feb 16 20:06:18 MET 2001


Jakob Ilves wrote:
> 
> Currently all data collection done by MRTG is scheduled by MRTG itself.
> This works great in many circumstances, where the SNMP polling or the
> external script doesn't take too long time.
> 
> However, I've encountered situations where the data gathering cannot be
> initiated by MRTG, instead, external sources (such as scripts running
> elsewhere) schedules the data collection.  What I would like to see is
> that MRTG somehow accept to stay "passive" and let the external sources
> contact it and tell it "Ok, this target now got these two values".

The MRTG process roughly exists of three parts.  There is a front end
which
a) parses the configuration file
b) collects the statistics
c) feeds the numbers to a back end (rateup or rrdtool)

What you (IMHO) want is only part c.  If so, just call the back end
with the proper parameters.

If you're using rateup as backend, depending on the parameters you
give it the data is entered in the log file or the graphics are
created.  Rrdtool works slightly different but in essence it works
the same.

My suggestion is to look into RRDtool. You'll probably find that it
will suit your needs. You can follow the tutorial or just start
experimenting by yourself.

FWiW, I did some monitoring on a firewall and could not (read: was not
allowed to) do anything more than run a script that gathered stats.

After moving this plain ascii log file to another machine, I imported
the data into rrdtool and created graphs from it.  There was no
difference with similar graphs being created by MRTG.

cheers.
-- 
   __________________________________________________________________
 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. | 
+----------------------------------------------------------------------+
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |
+----------------------------------------------------------------------+

--
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