Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Floatig point exception for IPFIX output #49

Open
thorgrin opened this issue Mar 19, 2021 · 0 comments
Open

Floatig point exception for IPFIX output #49

thorgrin opened this issue Mar 19, 2021 · 0 comments

Comments

@thorgrin
Copy link
Contributor

I'm getting a floating point exception for this version and configuration:

Version:      2.2.1
GIT hash:     db9a5d4
Build type:   Release
Architecture: x86-64 (little endian)
Compiler:     GNU 7.4.0
Copyright (C) 2018 CESNET z.s.p.o.

My full config file

<ipfixcol2>
  <!-- Input plugins -->
  <inputPlugins>
    <input>
      <name>TCP collector</name>
      <plugin>tcp</plugin>
      <params>
        <!-- List on port 4739 -->
        <localPort>4739</localPort>
        <!-- Bind to all local adresses -->
        <localIPAddress></localIPAddress>
      </params>
    </input>
  </inputPlugins>

  <!-- Output plugins -->
  <outputPlugins>
    <output>
      <name>JSON output</name>
      <plugin>json</plugin>
      <params>
        <tcpFlags>formatted</tcpFlags>
        <timestamp>unix</timestamp>
        <protocol>raw</protocol>
        <ignoreUnknown>false</ignoreUnknown>
        <ignoreOptions>false</ignoreOptions>
        <nonPrintableChar>true</nonPrintableChar>
        <detailedInfo>true</detailedInfo>
        <templateInfo>true</templateInfo>

        <!-- Output methods -->
        <outputs>
          <!-- Store as files into /tmp/ipfixcol/... -->
          <file>
            <name>Store to files</name>
<!--            <path>/tmp/ipfixcol2/</path> -->
                        <path>/home/ubuntu/ipfixcol2</path>
            <prefix>json.</prefix>
            <timeWindow>3000</timeWindow>
            <timeAlignment>no</timeAlignment>
          </file>
        </outputs>
      </params>
    </output>
    <output>
      <name>IPFIX output</name>
      <plugin>ipfix</plugin>
      <params>
        <filename>/home/ubuntu/ipfixcol2/data.ipfix</filename>
        <useLocalTime>false</useLocalTime>
        <windowSize>0</windowSize>
        <alignWindows>true</alignWindows>
        <preserveOriginal>false</preserveOriginal>
        <rotateOnExportTime>false</rotateOnExportTime>
      </params>
    </output>
  </outputPlugins>
</ipfixcol2>

This is what I get:

INFO: TCP collector: New exporter connected from '172.16.10.163'.
INFO: TCP collector (parser): [172.16.10.163:35188, ODID: 0] New connection detected!
DEBUG: TCP collector (parser): [172.16.10.163:35188, ODID: 0] Processing an IPFIX Message (Seq. number 0)
DEBUG: TCP collector (parser): [172.16.10.163:35188, ODID: 0] Processing a definition of Template ID 257 ...
INFO: TCP collector (parser): [172.16.10.163:35188, ODID: 0] A definition of the Template ID 257 has been accepted.
INFO: IPFIX output: [ODID: 0] '172.16.10.163:35188' has been granted access to write to the file with the given ODID.
Floating point exception (core dumped)

The problem seems to be in the windowSize argument, when I increase it to a 1000, it works just fine. However, the documentation says that 0 is the default value, so it should work, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant