Re: semaphore

From: Nikos Mouat (nikm@cyberflunk.com)
Date: Tue Jan 08 2002 - 11:12:02 PST

  • Next message: Goncalo Costa: "Re: semaphore"

    I get similiar errors when trying to start cflowdmux:

    # strings /usr/local/arts/sbin/cflowdmux | grep cflowdmux.cc
    cflowdmux.cc
    @(#) $Name: cflowd-2-1-b1 $ $Id: cflowdmux.cc,v 1.31 2000/10/24 16:18:54 dwm Exp $
    # uname -a
    SunOS netra 5.7 Generic_106541-18 sun4u sparc
    # /usr/local/arts/sbin/cflowdmux
    #

    and /var/adm/messages shows:

    Jan 8 11:08:13 netra cflowdmux[7726]: [E] shmget(ftok("/usr/local/arts/etc/cflowd.conf",0),2101248,IPC_CREAT|S_IRWXU|S_IRGRP|S_IROTH) failed: No such file or directory {CflowdPacketQueue.cc:241}
    Jan 8 11:08:13 netra cflowdmux[7726]: [A] g_packetQueue.Create("/usr/local/arts/etc/cflowd.conf",2097152) failed: No such file or directory {cflowdmux.cc:457}
    Jan 8 11:08:13 netra cflowdmux[7726]: [A] failed to create packet queue! Exiting. {cflowdmux.cc:459}

    # cat /usr/local/arts/etc/cflowd.conf | grep -v ^#

    OPTIONS {
      # syslog to local6 facility.
      LOGFACILITY: local6

      # Listen for connections from cfdcollect on port 2056.
      TCPCOLLECTPORT: 2056

      # Use a 2 megabyte packet buffer in shared memory.
      PKTBUFSIZE: 2097152

      # Use /usr/local/arts/etc/cflowdtable.socket as named stream socket
      # for connections from local clients (cfdases et. al.)
      TABLESOCKFILE: /usr/local/arts/etc/cflowdtable.socket

      # Keep raw flow files in /usr/local/arts/data/cflowd/flows directory.
      FLOWDIR: /usr/local/arts/data/cflowd/flows

      # Each raw flow file should be 1000000 bytes in length.
      FLOWFILELEN: 1000000

      # Keep 10 raw flow files per router.
      NUMFLOWFILES: 10

      # Log total missed flows from a router if it exceeds 1000 between
      # connections from cfdcollect.
      MINLOGMISSED: 1000
    }

    COLLECTOR {
      HOST: x.x.x.x # MY IP
      ADDRESSES: { x.x.x.x, 127.0.0.1 }
      AUTH: none
    }

    CISCOEXPORTER {
      HOST: x.x.x.1 # IP address of Cisco sending data.
      ADDRESSES: { x.x.x.1, # Ether IP
                      y.y.y.y } # WAN IP
      CFDATAPORT: 2055 # Port on which to listen for data.
      SNMPCOMM: 'public' # SNMP community name.
      LOCALAS: zzzz # Local AS of Cisco sending data.
      COLLECT: { protocol, portmatrix, ifmatrix, nexthop, netmatrix,
                      asmatrix, tos, flows }
    }

    #

    has anyone seens this???

    -nm

    On Mon, 7 Jan 2002, Goncalo Costa wrote:

    >
    > >> Has anyone found a way to fix the following error?
    > >>
    > >> Dec 21 12:33:43 monitor cflowd[17591]: [I] cflowd (version cflowd-2-1-b1)
    > >> started.
    > >> Dec 21 12:33:43 monitor cflowd[17591]: [E]
    > >> semget(ftok("/usr/local/arts/etc/cflowd.conf",0),2,S_IRWXU|S_IRWXG|S_IRWXO
    > >>) failed to get
    > >> semaphore set: No such file or directory {CflowdPacketQueue.cc:124}
    > >> Dec 21 12:33:43 monitor cflowd[17591]: [C] failed to get semaphore!
    > >> {CflowdPacketQueue.cc:331}
    > >> Dec 21 12:33:43 monitor cflowd[17591]: [A] failed to open packet queue!
    > >> Exiting. {cflowd.cc:991}
    >
    > I cannot check this at the moment, but I believe this could happen if
    > you call cflowd and cflowdmux is not running.
    >
    > Goncalo
    > --
    > cflowd mailing list
    > cflowd@caida.org
    >

    --
    cflowd mailing list
    cflowd@caida.org
    



    This archive was generated by hypermail 2b29 : Tue Jan 08 2002 - 11:20:12 PST