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

CYCLETIME not honored when launcing nfcapd processes #5

Closed
borjam opened this issue Feb 9, 2023 · 4 comments
Closed

CYCLETIME not honored when launcing nfcapd processes #5

borjam opened this issue Feb 9, 2023 · 4 comments

Comments

@borjam
Copy link

borjam commented Feb 9, 2023

Hi,

I´ve updated an old Nfsen installation that was running with CYCLETIME=60. I have noticed that nfcapd is no
longer launched with -t $CYCLETIME.

Is that deliberate or a bug? I have tried fixing mine by adding the missing bits to NfSenRC.pm and it seems to
work now. Before that nfdump was crashing for every cycle.

my $pidfile             = "$NfConf::PIDDIR/p${port}.pid";
my $extensions  = "";
>>>>my $rotate      = join ' ', "-t", $NfConf::CYCLETIME;

        my $ziparg = $NfConf::ZIPcollected ? '-y' : '';
        my $common_args = "-D -p $port -u $uid -g $gid $buffer_opts $subdirlayout -P $pidfile $ziparg $extensions $rotate";
        my $src_args;

@phaag
Copy link
Owner

phaag commented Feb 10, 2023

NfSen apparently did not honour the CYCLETIME when starting the collectors.
But nfdump crashing ?? Maybe it could not find a file, but that's not crashing.

@borjam
Copy link
Author

borjam commented Feb 10, 2023 via email

@phaag phaag closed this as completed in 6e52f80 Feb 10, 2023
@phaag
Copy link
Owner

phaag commented Feb 10, 2023

So coredump is 0! :) But if you would have selected a start/stop time slot unequal to 300s it does not find that file.

It's fixed in the main branch

@borjam
Copy link
Author

borjam commented Feb 10, 2023 via email

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

2 participants