Michael Mansour wrote:
Hi,

I setup shorewall to do ip accounting for the
different IP's I run.

I use cacti to graph those bandwidth usage stats per
IP.

The problem I have is when I run:

# shorewall restart

all the accounting stats go to zero and cause spikes
on the graphs on the next run which I then have to
kill/remove (I have a killspikes script to do this but
it's tedious).

I think the spikes get graphed because cacti (or
really rrdtool) checks for the differences between the
previous kbps value and the next one it just got.

Is there a way I can tell shorewall not to clear the
accounting stats when I do a restart?

No -- your 'init' script needs to capture the counters before 'restart' and your 'start' script needs to capture the values after and adjust your stats accordingly.

-Tom
--
Tom Eastep    \ Nothing is foolproof to a sufficiently talented fool
Shoreline,     \ http://shorewall.net
Washington USA  \ [EMAIL PROTECTED]
PGP Public Key   \ https://lists.shorewall.net/teastep.pgp.key

Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to