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

Config flags don't work #5

Closed
DamianZaremba opened this issue Apr 24, 2017 · 1 comment
Closed

Config flags don't work #5

DamianZaremba opened this issue Apr 24, 2017 · 1 comment
Labels

Comments

@DamianZaremba
Copy link

The -config flag is documented @ https://github.com/VerizonDigital/vflow/blob/master/docs/config.md, as well as in --help.

Using it to specify an alternate config file doesn't appear to function as expected;

# vflow -config test.conf
[vflow] 2017/04/24 08:37:27 open /usr/local/vflow/etc/vflow.conf: no such file or directory

Strace confirms the binary isn't attempting to open the test file;

openat(AT_FDCWD, "/proc/sys/net/core/somaxconn", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/local/vflow/etc/vflow.conf", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/zoneinfo//:/etc/localtime", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/lib/zoneinfo//:/etc/localtime", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/locale/TZ//:/etc/localtime", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib64/go/lib/time/zoneinfo.zip", O_RDONLY) = -1 ENOENT (No such file or directory)
[vflow] 2017/04/24 08:38:17 open /usr/local/vflow/etc/vflow.conf: no such file or directory
openat(AT_FDCWD, "/var/run/vflow.pid", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/dev/null", O_RDONLY|O_CLOEXEC) = 3
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=2017, si_status=1, si_utime=0, si_stime=0} ---
openat(AT_FDCWD, "/var/run/vflow.pid", O_WRONLY|O_CREAT|O_CLOEXEC, 0666) = 3
+++ exited with 1 +++

The message broker config appears to exhibit the same behaviour;
(/usr/local/vflow/etc/vflow.conf has been created in this example)

openat(AT_FDCWD, "/proc/sys/net/core/somaxconn", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/local/vflow/etc/vflow.conf", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/var/run/vflow.pid", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/dev/null", O_RDONLY|O_CLOEXEC) = 3
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=11094, si_status=1, si_utime=0, si_stime=0} ---
openat(AT_FDCWD, "/var/run/vflow.pid", O_WRONLY|O_CREAT|O_CLOEXEC, 0666) = 3
[vflow] 2017/04/24 08:40:08 sflow has been disabled
[vflow] 2017/04/24 08:40:08 starting stats web server ...
[vflow] 2017/04/24 08:40:08 ipfix is running (workers#: 200)
[vflow] 2017/04/24 08:40:08 ipfix RPC enabled
[vflow] 2017/04/24 08:40:09 kafka: client has run out of available brokers to talk to (Is your cluster reachable?)
+++ exited with 1 +++

This has been tested against the 0.3.0 tag and the current master.

@mehrdadrad
Copy link
Collaborator

@DamianZaremba Thank you for reporting this. I could duplicate the vflow.conf issue but not for broker config.

@mehrdadrad mehrdadrad added the bug label Apr 24, 2017
rachelScout added a commit to rachelScout/vflow that referenced this issue Oct 19, 2022
…/v9# This is the commit message Edgio#5:

add third parameter domainID/srcID to key in template cache for IPFix/v9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants