[mrtg] Re: mrtg runtime
Repucci, John (STP)
john.repucci at guidant.com
Wed Dec 1 14:47:39 MET 1999
See the following cron job that we run. It sends timing output to the
CVS-runtime file. ( See below for an example of that as well. )
We have about 8 cron jobs that kick off for the various sets of devices that
we are monitoring ( organized by world region, generally ). By examining
each of the runtime files, we can determine how long each cron job is
taking.
The disadvantage of this method is that every so often you have to "cp
/dev/null CVS-runtime" to clear the logs as they grow quite large. I
generally let them get to about 3 meg each before I get around to clearing
them. I do have a batch file to clear them and I suppose I could cron that
as well, but being lazy .... :-)
John Repucci
Global Network Services
Guidant Corp.
(v) 651.582.4552
john.repucci at guidant.com
/opt/mrtg/mrtg-run/run/CVS > ls
CVS-runtime cvs-r-i.cfg new-CVS.cfg.bak
cronerr.log mrtg-CVS.cron new-CVS.cfg_l_22212
cvs-a-i.cfg new-CVS.cfg new-CVS.ok
/opt/mrtg/mrtg-run/run/CVS > more *.cron
#!/bin/sh
# mrtg.cron 04-14-99 JLR
#
# to enable the mrtg cron job run ./start.cron
# to stop the mrtg cron job run ./stop.cron
# Started by crontab
if [ -f /opt/mrtg/mrtg-run/run/mrtg.cron.stop ]; then
exit;
else
DATE1=`date`
/opt/mrtg/mrtg-run/run/mrtg /opt/mrtg/mrtg-run/run/CVS/new-CVS.cfg
DATE2=`date`
echo "mrtg start: $DATE1 & stop: $DATE2 " >>
/opt/mrtg/mrtg-run/run/CVS/CVS-ru
ntime;
fi
#
/opt/mrtg/mrtg-run/run/CVS >
/opt/mrtg/mrtg-run/run/CVS > more CVS-runtime
mrtg start: Mon Nov 29 08:48:00 CST 1999 & stop: Mon Nov 29 08:48:25 CST
1999
mrtg start: Mon Nov 29 08:53:00 CST 1999 & stop: Mon Nov 29 08:53:30 CST
1999
mrtg start: Mon Nov 29 08:58:00 CST 1999 & stop: Mon Nov 29 08:58:24 CST
1999
mrtg start: Mon Nov 29 09:03:00 CST 1999 & stop: Mon Nov 29 09:03:29 CST
1999
mrtg start: Mon Nov 29 09:08:00 CST 1999 & stop: Mon Nov 29 09:08:34 CST
1999
> -----Original Message-----
> From: Leonard Robert-G2091C [SMTP:G2091C at email.mot.com]
> Sent: Tuesday, November 30, 1999 7:28 PM
> To: mrtg at list.ee.ethz.ch
> Subject: [mrtg] mrtg runtime
>
> i'm currently running mrtg-2.8.8 on mandrake-2.2.9-27. I would like to
> know
> how long it takes to process my current mrtg.cfg file, as i'm am looking
> to
> expand the # of devices i'm monitoring by about 200. Anyone know the best
> way to go about this?
>
> TIA,
>
> --
> * To unsubscribe from the mrtg mailing list, send a message with the
> subject: unsubscribe to mrtg-request at list.ee.ethz.ch
> * The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg
--
* To unsubscribe from the mrtg mailing list, send a message with the
subject: unsubscribe to mrtg-request at list.ee.ethz.ch
* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg
More information about the mrtg
mailing list