[mrtg] New Mrtg Server very high CPU usage.

DA Forsyth iwrtech at iwr.ru.ac.za
Fri Aug 8 08:43:36 CEST 2008


On 7 Aug 2008 , Mersberger, Robert entreated about
 "[mrtg] New Mrtg Server very high CPU usage.":

> runs via a cron job every 5 minutes
> #############
> mrtg_run
> ############
> #! /bin/bash
> 
> for fn in /etc/mrtg/*.cfg; do
>         env LANG=C /usr/bin/mrtg "$fn" &
> done
> ####################################
> 
> I am looking for ways to improve performance  have some cpu left over
> for other task.

only start every odd numbered script in the back ground to spread the 
load a bit.  i do this in all my mrtg setups, for example

--- script called by cron ---
mrtg setup1.cfg &
mrtg setup2.cfg
mrtg setup3.cfg &
mrtg setup4.cfg
---end script----

I've got scripts  called every 5 minutes, 15 minutes and 30 minutes, 
so at some points they overlap, and I have no high usage spikes.


--
       DA Fo rsyth            Network Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/




More information about the mrtg mailing list