Giter Club home page Giter Club logo

Comments (7)

sleinen avatar sleinen commented on September 3, 2024

From [email protected] on March 09, 2011 13:30:28

Samplicator reads its configuration file only on startup. Could that be your problem?
A possible enhancement would be for it to re-read its configuration file when it receives a HUP signal, like some other daemons do.

Labels: -Type-Defect Type-Enhancement

from samplicator.

sleinen avatar sleinen commented on September 3, 2024

From [email protected] on March 10, 2011 00:14:23

What do you mean by "Its configuration file is only read at startup"? Like after a physical reboot? And what possible enhancement are you suggesting?

from samplicator.

sleinen avatar sleinen commented on September 3, 2024

From [email protected] on March 14, 2011 11:00:37

By "Samplicator reads its configuration file only on startup", I mean the following: The "samplicate" program only reads its configuration file once, namely when it - the samplicate program - is started. (Note that this is only relevant when samplicate is asked to use a configuration file at all, i.e. when the "-c" argument is used.)
A possible enhancement would be to add the possibility to tell a running "samplicate" process to re-read its configuration file. Some other Unix daemons re-read their configuration when they receive a "HUP" signal (e.g. "kill -1 "). That is something that could probably be implemented for the samplicator. But someone would have to volunteer to do it. Personally I'm not motivated enough, because there's always the workaround of stopping (killing) and restarting the process.
That said, from your description it's not even clear that the root of your problem is the samplicator. You said you are using a "Netflow Tracker". I don't know this tool, but maybe it also needs to be told when a new source is added.

from samplicator.

sleinen avatar sleinen commented on September 3, 2024

From [email protected] on September 26, 2011 07:25:35

The reporter didn't respond to my request for additional information, so I conclude that he was able to solve the issue by himself, or that it is not that important to him. It is also not clear whether the issue is with samplicate or with the "downstream" flow consumer (Netflow Tracker).

It would still be an improvement if samplicate would reload its configuration upon receipt of a SIGHUP. But I don't consider this critical, because samplicate can be stopped and restarted if necessary - it is very quick to start up. Therefore I'm lowering the priority to "Low".

Labels: -Priority-Medium Priority-Low

from samplicator.

sleinen avatar sleinen commented on September 3, 2024

From [email protected] on September 28, 2011 05:50:39

Hi my apology for the very late response. However, I indeed was able to get the solution directly from the samplicator.conf file which is the txt file being read by the samplicate process. One thing I noticed is that "many spaces every after a line indeed made a difference" which means after i deleted extra spaces (no quote #), the devices are now displayed properly on the our Netflow Tracker.

from samplicator.

sleinen avatar sleinen commented on September 3, 2024

From [email protected] on September 30, 2011 15:06:32

Thanks. The configuration file parser in the currently released code (1.3.6) may well have bugs. When studying the source, I noticed that it seemed to ignore all lines where a `#' character occurred anywhere - I think it should only ignore those that start with a hash.

As part of extensive modifications for IPv6 support, I have largely rewritten the parser, and the new one shouldn't have that particular problem anymore. The code is in the trunk, as of revision r126 . It would be great if you could check whether this code handles your old configuration file better. I haven't made a tarball yet, but I can create a "pretest" one if you're interested.

from samplicator.

sleinen avatar sleinen commented on September 3, 2024

From [email protected] on March 14, 2012 14:40:33

I'm renaming this issue. The fix is probably already in the trunk, because the configuration-file parsing code has been largely rewritten.

Summary: Configuration file parser buggy/too strict
Status: Started

from samplicator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.