Kindly disregard. I completely forgot that this was all perl, so I was able
to figure out my mistake.

 

The -i option added to the optargs is incorrect for nfcapd. I had added that
a while ago to the dist config but never installed it in the target
directory.

 

The correct option for nfcapd is actually -d 127.0.0.1, which is what I
changed it to and now it's working.

 

Suggestion: when the command to start nfcapd fails, it should print out the
command line that it tried. If it had done that I would have seen that error
much earlier.

 

Thanks

-Mike

 

From: Mike Pepe <lam...@doki-doki.net> 
Sent: Sunday, December 8, 2024 4:41 PM
To: nfsen-discuss@lists.sourceforge.net
Subject: [Nfsen-discuss] updated collector names - now nfsen won't start

 

Hi all, can someone point me into the way to troubleshoot this issue?

 

I had nfsen up and running and it's proven to be helpful. But when I set it
up, I used the interface names to label the collector data, and I wanted to
make the graphs show a friendly name instead of the interface name (like
LAN, Internet, etc)

 

I stopped nfsen. I edited the etc/nfsen.conf in the distro directory and
changed the collector names, so it looks like this now:

 

%sources = (

    'LAN'        => { 'port' => '22201', 'col' => '#000000', 'type' =>
'netflow', 'optarg' => '-i lo' },

    'internet1'    => { 'port' => '22202', 'col' => '#FF0000', 'type' =>
'netflow', 'optarg' => '-i lo' },

    'internet2'      => { 'port' => '22203', 'col' => '#FF8000', 'type' =>
'netflow', 'optarg' => '-i lo' },

    'Cameras'    => { 'port' => '22204', 'col' => '#0000FF', 'type' =>
'netflow', 'optarg' => '-i lo' },

    'tun0_vpn1'  => { 'port' => '22205', 'col' => '#40FF40', 'type' =>
'netflow', 'optarg' => '-i lo' },

    'wg0_vpn2'   => { 'port' => '22206', 'col' => '#FF80FF', 'type' =>
'netflow', 'optarg' => '-i lo' },

    'wg3_vpn3' => { 'port' => '22207', 'col' => '#0CA2FF', 'type' =>
'netflow', 'optarg' => '-i lo' }

);

 

I then delete the contents of BASEDIR and  HTMLDIR and re-ran the install
script, and made sure to correct any ownership errors in HTMLDIR as it was
configured before

 

[root@lamunet-router nfsen]# /opt/nfsen/bin/nfsen start

Starting nfcapd:(Ziply)metric interval < 10s not allowed

: collector did not start - see logfile (LAN)metric interval < 10s not
allowed

: collector did not start - see logfile (internet1)metric interval < 10s not
allowed

: collector did not start - see logfile (wg3_vpn3)metric interval < 10s not
allowed

: collector did not start - see logfile (Cameras)metric interval < 10s not
allowed

: collector did not start - see logfile (wg0_vpn2metric interval < 10s not
allowed

: collector did not start - see logfile (tun0_vpn1)metric interval < 10s not
allowed

: collector did not start - see logfile

Starting nfsend.

 

I'm not sure why changing the source names caused this failure behavior. I
also don't see anything in syslog nor do I see another logfile that might
explain why the collector won't start.

 

Thanks

-Mike

_______________________________________________
Nfsen-discuss mailing list
Nfsen-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss

Reply via email to