[mrtg] Re: Way to delay snmp gets?

Gabriel Lorenzo needle at arrakis.es
Thu Apr 14 23:46:34 MEST 2005


Hi,

You could use separate mrtg.cfg files and start them in Cron at 
different time intervals eg.

here is a cron job example (Very Exagerated!) for 5 different mrtg. 
config files running every 5 minutes but every one at a different time 
interval

0-55/5 * * * * root  if [ -x /usr/bin/mrtg ] && [ -r /etc/mrtg.cfg ]; 
then /usr/bin/mrtg /etc/mrtg-routers1.cfg >> /var/log/mrtg/mrtg.log 
2>&1; fi
1-56/5 * * * * root  if [ -x /usr/bin/mrtg ] && [ -r /etc/mrtg.cfg ]; 
then /usr/bin/mrtg /etc/mrtg-routers2.cfg  >> /var/log/mrtg/mrtg.log 
2>&1; fi
2-57/5 * * * * root  if [ -x /usr/bin/mrtg ] && [ -r /etc/mrtg.cfg ]; 
then /usr/bin/mrtg /etc/mrtg-routers3.cfg >> /var/log/mrtg/mrtg.log 
2>&1; fi
3-58/5 * * * * root  if [ -x /usr/bin/mrtg ] && [ -r /etc/mrtg.cfg ]; 
then /usr/bin/mrtg /etc/mrtg-routers4.cfg >> /var/log/mrtg/mrtg.log 
2>&1; fi
4-59/5 * * * * root  if [ -x /usr/bin/mrtg ] && [ -r /etc/mrtg.cfg ]; 
then /usr/bin/mrtg /etc/mrtg-routers5.cfg >> /var/log/mrtg/mrtg.log 
2>&1; fi

If you have lets say a mrtg.cfg with for example 30 equipments you could 
split them in 2 mrtg.cfg files 15 routers each-  mrtg-routers1.cfg and 
mrtg-routers2.cfg or whatever you want to call them
and run the first at minute 0 ( 0-55/5)  and the next on minute 3 
(3-58/5 ).

Its just an Idea hope this helps., i used this some time ago but for 
another reason,
the problem I had was that the box was querying 150 routers at the same 
time and CPU was reaching100% every 5 minutes Mrtg started,
so this way I achieved less CPU consumption.

      regards.

Christopher Croot wrote:

> Is there a way to implement a delay to the snmp get requests?
> We are currently using MRTG to monitor lots of parameters on some 
> equipment
> on relatively slow links and have found on occasion the quantity of 
> requests
> either swaps the equipment and requests are lost, or the link loses 
> them due
> to congestion.
>
> Is there a parameter somewhere that we can set so that there is a 
> delay of
> x before sending each PDU?
>
> Regards,
>
> Chris Croot.
>
> -- 
> Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
> Archive     http://lists.ee.ethz.ch/mrtg
> FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
> WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi
>
>
>  
>

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://lists.ee.ethz.ch/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the mrtg mailing list