1. 27 Oct, 2007 2 commits
  2. 26 Oct, 2007 1 commit
  3. 25 Oct, 2007 1 commit
  4. 24 Oct, 2007 2 commits
    • 's avatar
      Added support for multiple host, which includes multiple interface support too. · 4ff73f0d
      authored
      Tested with new GUI (PHP); CGI GUI shows just first two hosts.
      
      Flow is assigned to opposite sensor when it appears there too (same flow).
      Unassigned flows are dropped, so filter has not to be exact,
      something void like "greater 0" should work.
      
      The differences against prev. impl. of multiple interface support
      (subject to keep or change?):
      
      prev.:
      Usage: hostA:if1:if2, hostB... "filter"
      
      now:
      Usage: "hostA:if1, hostA:if2" "hostB..." "filter"
      
      -more typing
      +DiMAPI syntax
      ?no need to parse and store device names
      
      prev.:
      mapi_stats("hostA:if1", &(stats1->statstable[i%countA]))
      mapi_stats("hostA:if2", &(stats1->statstable[++i%countA]))
      
      now:
      mapi_stats("host1:if1, host1:if2", &host[0].mapi_stats_dev).
      
      -order of devices not guaranteed so reordering* is done via pointers
      +less mapi function calls
      ?no need to store device names
      ?unique interface names required in case of reordering*
      *)for now, order never changes
      
      prev:
        for(i = 0; i < stats1.count;i++) { // host1
          stats = stats1.statstable[i];
          stats.hostname...
        for(i = 0; i < stats2.count;i++) { // host2
          ...
      
      now:
        for(h = 0; h < hosts; h++) {
          for(d = 0; d < host[h].devices; d++) {
            stats = host[h].mapi_stats_dev[d];
            host[h].name...
      
      parse_hosts() -- not a function (more simple as device names are not parsed and
      stored, just counted)
      
      get_mapi_stats() -- not a function (more simple because of prev. mentioned diffs)
      
      GUI (CSV, PHP, JS) -- several updates
      
      
      
      git-svn-id: file:///home/svn/mapi/trunk@1340 8d5bb341-7cf1-0310-8cf6-ba355fef3186
      4ff73f0d
    • 's avatar
      Fixed bug #478 · 662258a4
      authored
      git-svn-id: file:///home/svn/mapi/trunk@1339 8d5bb341-7cf1-0310-8cf6-ba355fef3186
      662258a4
  5. 17 Oct, 2007 1 commit
  6. 15 Oct, 2007 4 commits
  7. 10 Oct, 2007 1 commit
  8. 04 Oct, 2007 2 commits
  9. 02 Oct, 2007 1 commit
  10. 24 Sep, 2007 2 commits
  11. 22 Sep, 2007 1 commit
  12. 21 Sep, 2007 1 commit
  13. 17 Sep, 2007 1 commit
  14. 16 Sep, 2007 1 commit
  15. 14 Sep, 2007 2 commits
  16. 06 Sep, 2007 1 commit
  17. 05 Sep, 2007 1 commit
  18. 03 Sep, 2007 2 commits
  19. 30 Aug, 2007 1 commit
  20. 29 Aug, 2007 2 commits
  21. 28 Aug, 2007 1 commit
  22. 25 Aug, 2007 2 commits
  23. 24 Aug, 2007 4 commits
  24. 23 Aug, 2007 2 commits
  25. 22 Aug, 2007 1 commit
    • 's avatar
      Logging Mechanism Updated. Now MAPI supports logging to files and syslog. · b27d4c0f
      authored
      In order to log messages to syslog, mapid and/or mapicommd should be executed
      with the flag -s (mapid -s and/or mapicommd -s). 
      Two different types of messages are sent to syslog, debug messages and
      general information messages. In /usr/local/etc/mapi/mapi.conf the syslog
      level can be configured.
      
      syslog_level=0 : Log only general information and not debugging messages
      syslog_level=1 : Log general information plus debugging information (debug messages are printed to stdout and syslog)
      syslog_level=2 : Log general information plus debugging information (debug messages are printed only to syslog)
      
      The default level is 2 (temporary the default level is 1).
      
      In order to log debug messages and general information messages to separate log files,
      syslog daemon must be configured as follows:
      
      File /etc/syslog.conf should have the following two entries:
      
      local1.info;local1.!=debug				/var/tmp/info.syslog
      local1.debug;local1.!=info				/var/tmp/debug.syslog
      
      /var/tmp/info.syslog & /var/tmp/debug.syslog are indicative names of files, where debug and information messages are appended.
      The /var/tmp/info.syslog & /var/tmp/debug.syslog files must exist before the syslogd daemon re-reads the /etc/syslog.conf
      configuration file, in order for the syslogd daemon to log messages to these files. To create these files, issue the following commands:
      
      touch /var/tmp/info.syslog
      touch /var/tmp/debug.syslog
      
      Then issue the following command to force the syslogd daemon to re-read its configuration file: kill -HUP <syslogd's process id>
      
      Define DEBUG is default enabled. In the future mapi configuration will have an extra flag (--enable-debug), thus a MAPI
      user might select if MAPI prints debug messages or no.
      
      
      git-svn-id: file:///home/svn/mapi/trunk@1292 8d5bb341-7cf1-0310-8cf6-ba355fef3186
      b27d4c0f