IPAUDIT FAQ


Last updated Oct 3, 2000

Questions

  1. Why don't get any graphics on the ipaudit home page? (Aug 23, 2000)

    The problem could might lie anywhere in a long sequence of events. Here are some things to look at.


  2. Is it possible to run IPAUDIT with multiple eth devices in the same config file? (Oct 3, 2000)

    ipaudit is based on libpcap, and libpcap does not provide the ability to tap two interfaces at once. However, there is a possible, though ugly, workaround.

    Run two instances of ipaudit, one for each interface, and write the output to two separate files. THEN, use 'total' to combine them. For example, something like

         ipaudit -ofile1.data
         ipaudit -ofile2.data
         
         cat file1.data file2.data | total 1,2,3,4,5 6,7,8,9 -  > both.data
    

    Then use the file both.data to do your statistics. Note that if you use ipaudit's -t option to save the times in file1.data and file2.data, you will not be able to use 'total' to combine the time fields. Maybe in the next version of 'total'.

    Told you it was ugly.


  3. When running IPAUDIT scripts (or when I try cron/cron30min) I get the following error
         /bin/date: invalid date `mer sep 27 16:59:56 CEST 2000'
         $IP_DIR/ipaudit died prematurely
    
    (Oct 3, 2000)

    I think its a bug in 'date', it cannot read the dates that is writes out when the date includes certain time zones, like 'CEST' or 'JAVT'.

    Here's how to work around it, in the file cron/cron30min change the line

         CURDATE_DEF=`$GNUDATE`
    to
         CURDATE_DEF=`$GNUDATE "+%Y-%m-%d %H:%M"`
    



  4. Why can't the ipaudit cron scripts create gif files? The output of cron says
         gnuplot> set term gif small size 600,150 xffffff x000000 xdddddd x880000 x008800 x000088 x666666 
                           ^ 
         line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list 
    
    (Oct 5, 2000)

    The problem is that your version of gnuplot does not produce gif files. You can convert ipaudit to use png files instead as follows.

    In the four files ~/reports/30min/graphic/Graph* change the line

         set term gif small size 600,150 xffffff x000000 xdddddd x880000 x008800 x000088 x666666
    to
         set term png small color
    
    AND, in the file ~/public_html/index.html change the four lines such as
        <img src=images/ReportTraffic.gif>
    to
        <img src=images/ReportTraffic.png>
    

    AND, in the file ~/reports/30min/graphic/runcron change the four lines such as
       TIMG=$IP_DIR/public_html/images/ReportTraffic.gif
    to
       TIMG=$IP_DIR/public_html/images/ReportTraffic.png
    
        Thanks to Andy Z for the solution.


  5. a script to regenerate all the image data from all the data wouldbe useful.. (Nov 21, 2000)

    You can regenerate the graphs by doing the following
       cd ~ipaudit/reports/30min/graphic
       ./runcron /home/ipaudit `date +%Y-%m-%d-%H:%M`
    
    or if you prefer you can replace the `date...` portion of the second command with a hard coded date/time string such as
       ./runcron /home/ipaudit 2000-11-21-14:22