On 1/10/11 2:27 PM, "Geoff Powell" <[email protected]> wrote:
> In article <[email protected]
> nd.ac.nz>, Steve Shipway <[email protected]> writes
>
> My idea of a "helper script" was something invoked by MRTG at each run
> which would SNMPGET IfInOctets and IfOutOctets for the WAN interface,
> and clear the IfInOctets variable between the hours of Midnight and 8
> a.m., posting the result in the usual 4 line format. But my Perl-fu
> isn't up to the task. Maybe I could do it in shell.
Just don't poll between 8am and midnight. A crontab entry like:
*/5 8-23 * * * /usr/bin/mrtg.pl var/lib/mrtg/mrtg.cfg
Would do the trick.
If you want to skip weekends too, it would be:
*/5 8-23 * * 1-5 /usr/bin/mrtg.pl var/lib/mrtg/mrtg.cfg
As long as you have options[]: unknownaszero you should be fine with no
interpolation. There might be some funkiness at 8:00am, but it is unlikely
to be statistically significant.
--
Daniel J McDonald, CCIE # 2495, CISSP # 78281
_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg