1. mesajele cu chain exist sunt ca rulezi de fiecare daca scriptu si iar faci chainu ...., tre un script care numai face list (-L) 2. vezi in htmlu de la mrtg ca ca sa faca graficele trebuie sa ii dai datele sub un anumit format.
C --- George Tolea <[EMAIL PROTECTED]> wrote: > > Neatza! > Am o problema si nu shtiu de unde e eroarea. > Am facut un /etc/mrtg-2/mrtg.cfg cu : > > WorkDir: /var/www/html/mrtg > Options[_]: bits, growright > Target[ipchains]: `/etc/mrtg-2/ipchainacc.rules` > MaxBytes[ipchains]: 1000000 > Title[ipchains]: Traffic Statistics > PageTop[ipchains]: Traffic Statistics > RunAsDaemon: Yes > > iar /etc/mrtg-2/ipchainacc.rules contine: > > #!/bin/bash > # Flush the rules in case they exist already > /sbin/ipchains -F acctin > /sbin/ipchains -F acctout > > # add the new rule chains > /sbin/ipchains -N acctin > /sbin/ipchains -N acctout > > # add empty rules to the new chains just for > accounting > /sbin/ipchains -A acctin > /sbin/ipchains -A acctout > > # insert rules into the input and output streams. > # Packets will first pass through these rules before > # returning to the other rules in the chains > # You might not want this if you are trying to > # completely ignore certain hosts. > /sbin/ipchains -I input -j acctin > /sbin/ipchains -I output -j acctout > > # if you wanted to narrow the accouting to a single > IP > # you could do these lines instead of the above 2 > (not tested) > # (assuming your IP address was 192.168.1.1) > /sbin/ipchains -I input -d 192.168.3.45 -j acctin > /sbin/ipchains -I output -s 192.168.3.45 -j acctout > > > si apar urmatoarele cand dau: > /usr/local/mrtg-2/bin/mrtg /etc/mrtg-2/mrtg.cfg > > Daemonizing MRTG ... > ipchains: Chain already exists > ipchains: Chain already exists > WARNING: Could not get any data from external > command > '/etc/mrtg-2/ipchainacc.rules' > Maybe the external command did not even start. > (Illegal seek) > > Use of uninitialized value in substitution (s///) at > /usr/local/mrtg-2/bin/mrtg line 1462. > Use of uninitialized value in substitution (s///) at > /usr/local/mrtg-2/bin/mrtg line 1462. > Use of uninitialized value in substitution (s///) at > /usr/local/mrtg-2/bin/mrtg line 1463. > Use of uninitialized value in substitution (s///) at > /usr/local/mrtg-2/bin/mrtg line 1463. > > Cum scap de kestia asta ...si de ce apare ? > > > -- > "Intr-o zi trecutul nu s-a intamplat niciodata" > (Alan Lightman) > -- > George Tolea > Grup Administrare Retea Locala > INMH - Bucuresti > http://www.inmh.ro > > > > > --- > Pentru dezabonare, trimiteti mail la > [EMAIL PROTECTED] cu subiectul 'unsubscribe rlug'. > REGULI, arhive si alte informatii: > http://www.lug.ro/mlist/ > > __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ --- Pentru dezabonare, trimiteti mail la [EMAIL PROTECTED] cu subiectul 'unsubscribe rlug'. REGULI, arhive si alte informatii: http://www.lug.ro/mlist/
