Re: [Cflowd] Semaphore problems (cflowdmux)

From: Martin van den Nieuwelaar (martin@gadgets.co.nz)
Date: Tue Aug 20 2002 - 14:32:49 PDT

  • Next message: Martin van den Nieuwelaar: "Re: [Cflowd] Semaphore problems (cflowdmux) - aha!"

    Hi Rui,

    Glad to hear you found the problem. I took a look on my systems as I
    wasn't familiar with /proc/sys/kernel/sem. I see it doesn't exist
    under RH6.2, but it does under RH7.2. Looking on the Net I see
    someone with RH7.1 is referring to it too. So somewhere along the
    line there it appears to have been introduced.

    A user-friendly way to view the current values is using the ipcs
    command. This seems to work on both the newer and older systems.

    I don't see a way to set the values if running an old (6.2 for
    example) version of RedHat. Anyone else know how?

    I see that it's also necessary to set these parameters each time you
    boot (typically in one of the rc scripts).

    Regards,

    -Martin

    Rui Bernardino wrote:
    >
    > Hi,
    > While using 'apachectl' I found out it wasn't a 'Cflowd' problem...
    > Solved using:
    > echo "500 64000 64 256" > /proc/sys/kernel/sem
    > which doubles all kernel semaphore parameters...
    >
    > Thanks anyway.
    >
    > Regards,
    >
    > -----Original Message-----
    > From: Martin van den Nieuwelaar [mailto:martin@gadgets.co.nz]
    > Sent: segunda-feira, 19 de Agosto de 2002 22:40
    > To: Rui Bernardino
    > Subject: Re: [Cflowd] Semaphore problems (cflowdmux)
    >
    > Hmm, how about a permissions problem? If you originally installed the
    > package as root but are now running it as something else you may not
    > have permission to create the socket file in /usr/local/arts/etc/ ...
    > Just a thought.
    >
    > Rui Bernardino wrote:
    > >
    > > Hi,
    > > I'm running Linux (Redhat 7.2); I did look at the semaphore
    > > nuances on Solaris but the problem shouldn't apply for Linux.
    > >
    > > Thanks
    > >
    > > -----Original Message-----
    > > From: Martin van den Nieuwelaar [mailto:martin@gadgets.co.nz]
    > > Sent: segunda-feira, 19 de Agosto de 2002 21:55
    > > To: Rui Bernardino
    > > Subject: Re: [Cflowd] Semaphore problems (cflowdmux)
    > >
    > > What OS are you running? I remember for Solaris there was a
    > > modification required to the /etc/system file to make the shared
    > > memory component of CFlowd work.
    > >
    > > Regards,
    > >
    > > -Martin
    > >
    > > Rui Bernardino wrote:
    > > >
    > > > Hi,
    > > > I've been trying to install cflow (+FlowScan) and I get this
    > > message everytime I try to launch 'cflowdmux':
    > > >
    > > > Aug 19 10:53:26 lula cflowdmux[1743]: [I] cflowdmux (version
    > > cflowd-2-1-b1) started.
    > > > Aug 19 10:53:26 lula cflowdmux[1743]: [I] created 1052672 byte packet
    > > queue shmem segment {CflowdPacketQueue.cc:247}
    > > > Aug 19 10:53:26 lula cflowdmux[1743]: [I] attached to 1052672 byte
    > > packet queue at 0x401e1000
    > > > Aug 19 10:53:26 lula cflowdmux[1743]: [E]
    > > semget(ftok("/usr/local/arts/etc/cflowd.conf",0),2,IPC_CREAT|S_IRWXU|S_I
    > > RWXG|S_IRWXO) failed: No space left on device {CflowdPacketQueue.cc:149}
    > > > Aug 19 10:53:26 lula cflowdmux[1743]: [I] created semaphore: id -1
    > > > Aug 19 10:53:26 lula cflowdmux[1743]: [E] semop(-1,0xbffff9c0,2)
    > > failed to get semaphore: Invalid argument {CflowdPacketQueue.cc:416}
    > > >
    > > > The 'No space left on device' is quite weird as there is allot
    > > of free space on most file systems:
    > > > # df -k
    > > > Filesystem 1k-blocks Used Available Use% Mounted on
    > > > /dev/cciss/c0d0p2 14111760 6228808 7166096 47% /
    > > > /dev/cciss/c0d0p1 130377 6034 117611 5% /boot
    > > > none 256676 0 256676 0% /dev/shm
    > > > /dev/cciss/c0d0p6 18698212 2974196 14774196 17% /var
    > > >
    > > > I'm using a 'almost default' cflowd.conf (only changed the
    > > CISCOEXPORTER part).
    > > >
    > > > Any help?
    > > >
    > > > TIA
    > > >
    > > > _______________________________________________
    > > > Cflowd mailing list
    > > > Cflowd@caida.org
    > > > http://login.caida.org/mailman/listinfo/cflowd

    -- 
    Expert carrier network traffic analysis and visualisation
    http://www.networkintelligence.biz
    xenaphobia: The fear of being beaten to a
    pulp by a leather-clad, New Zealand woman
    

    _______________________________________________ Cflowd mailing list Cflowd@caida.org http://login.caida.org/mailman/listinfo/cflowd



    This archive was generated by hypermail 2.1.4 : Tue Aug 20 2002 - 14:45:05 PDT