a fix for: failed to create packet queue

From: Neal Rauhauser (nealr@pensat.com)
Date: Wed Sep 27 2000 - 10:00:04 PDT

  • Next message: Clark Gaylord: "Re: failed to create packet queue"

        cflowd its very, very fussy about where it lives based on the little
    time I've spent with it.

        get the binaries, unpack them from the root directory of the machine you
    want to run them on, and you'll find a /usr/local/arts/* structure when its
    done. edit the example files in the directory where you find them.

       you'll likely have to create /usr/local/arts/data/cflowd/flows by hand
    since I don't think this comes out of the tar of binaries.

    I believe I also had to create this symlink to get the program to run on
    FBSD 4.0

    /usr/lib
    lrwxr-xr-x 1 root wheel 9 Aug 18 09:07 libc.so.3 -> libc.so.4

      Once this is done it ought to come right up and work.

       Also suggest you change the SNMP community string on your router to
    something other than 'public' now that you've published its IP for us :-)

    Clark Gaylord wrote:

    > I have recently built cflowd on FreeBSD, but cannot get cflowdmux to
    > start. I am receiving the following syslog messages on starting
    > cflowdmux:
    >
    > ======================================================================
    > Sep 27 11:35:21 mfvg-test2 cflowdmux[36714]: [E]
    > shmget(ftok("/home/cgaylord/cflowd/etc/cflowd.conf",0),
    > 10489856,IPC_CREAT|S_IRWXU|S_IRGRP|S_IROTH)
    > failed: No such file or directory {CflowdPacketQueue.cc:241}
    >
    > Sep 27 11:35:21 mfvg-test2 cflowdmux[36714]: [A]
    > g_packetQueue.Create("/home/cgaylord/cflowd/etc/cflowd.conf",10485760)
    > failed: No such file or directory {cflowdmux.cc:454}
    >
    > Sep 27 11:35:21 mfvg-test2 cflowdmux[36714]: [A] failed to create
    > packet queue! Exiting. {cflowdmux.cc:456}
    > ======================================================================
    >
    > I have looked through ClowdPacketQueue.cc and cflowdmux.cc to try to
    > discern what file is being created, but cannot tease it out. Any
    > assistance would be apprecited.
    >
    > Thank you.
    > --
    > Clark K. Gaylord
    > Senior Research Engineer
    > Communications Network Services
    > Virginia Tech, Blacksburg, Virginia 24061-0506
    > Voice: 540/231-2347 Fax: 540/231-3928 E-mail: cgaylord@cns.vt.edu
    >
    > My conf file is:
    > ======================================================================
    > OPTIONS {
    > PKTBUFSIZE: 10485760
    > TABLESOCKFILE: /home/cgaylord/cflowd/etc/cflowdtable.socket
    > FLOWDIR: /home/cgaylord/cflowd/flows
    > FLOWFILELEN: 10000000
    > NUMFLOWFILES: 50
    > MINLOGMISSED: 1000
    > }
    >
    > COLLECTOR {
    > HOST: 128.173.15.167
    > ADDRESSES: { 128.173.15.167 }
    > AUTH: none
    > }
    >
    > CISCOEXPORTER {
    > HOST: 192.70.187.246
    > ADDRESSES: { 192.70.187.246 }
    > CFDATAPORT: 9996
    > SNMPCOMM: 'public'
    > LOCALAS: 1312
    > COLLECT: { protocol, portmatrix, ifmatrix, nexthop, netmatrix,
    > tos, flows }
    > }
    > ======================================================================
    >
    > --
    > cflowd mailing list
    > cflowd@caida.org

    --
    cflowd mailing list
    cflowd@caida.org
    



    This archive was generated by hypermail 2b29 : Wed Sep 27 2000 - 10:16:10 PDT