Comments (7)
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.
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.
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.
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.
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.
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.
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)
- Comment describing the config format in read_config.c is wrong HOT 2
- how does samplicator.netflow get processed? HOT 2
- Ability to replicate packets with the original source IP and the samplicator server IP at the same time. HOT 2
- Allow receiver hostname definition HOT 2
- Performance: support recvmmsg()
- Performance: Support sendmmmsg() if it exists HOT 1
- Src IP or string based filter?
- Netflow v9 source_id
- socket: Message too long HOT 3
- Installation collaboration for a newbi HOT 3
- Multiples instances HOT 1
- How many output streams are supported?
- [QUESTION] add or delete receiver(s) dynamically HOT 3
- Spoofing multiple sources HOT 1
- Packets lost at a high rate HOT 3
- Release of current branch? HOT 3
- preserved source port for samplicated packet
- Trying to find samplicator with "-z" option to delay stream HOT 2
- Spoofing option is not working in AWS EC2
- how to use this to get multicast working inside a WireGuard tunnel
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from samplicator.