Hello,

I'm trying to remove a source from my nfsen configuration file (commented
the source out) and I issue a nfsen reconfig. This is the output I get:

[r...@hail bin]# [r...@hail libexec]# [r...@hail bin]# ./nfsen reconfig
Remove configured sources: Relad
Continue? [y/n] y

Delete source(s): Relad:
Delete source 'Relad'     Shutdown nfcapd: (Can't use string ("Relad") as an
ARRAY ref while "strict refs" in use at /data/nfsen/libexec/NfSenRC.pm line
127.



I've managed to get past it by commenting out "use strict" in NfSenRC.pm,
but it still complains when I remove a source. I have recently upgraded to
nfsen 1.3.4 and nfdump 1.6.1.

This is how the output looks like after commenting out use strict:
[r...@hail bin]# ./nfsen reconfig
Remove configured sources: Relad
Continue? [y/n] y

Delete source(s): Relad:
Delete source 'Relad'     Shutdown nfcapd: ()Use of uninitialized value in
concatenation (.) or string at /data/nfsen/libexec/NfSenRC.pm line 321.
[no collector]
Restart nfsend:[17757]

Is this behaviour known, or is my system messed up (went through a few
upgrade/downgrade cycles)?

This is my source definition:
'Relad'        => { 'port' => '9925', 'col' => '#fedcba', 'type' =>
'netflow', 'optarg' => '-s -1'},

Regards,
Adrian

P.S. I get the following errors when I try to add a new source (with the
same override):
[r...@hail bin]# [r...@hail bin]# ./nfsen reconfig
New sources to configure : Router2
Continue? [y/n] y

Add source(s): Router2:
Add source 'Router2'    Start nfcapd: ()Use of uninitialized value in hash
element at /data/nfsen/libexec/NfSenRC.pm line 58.
Use of uninitialized value in hash element at /data/nfsen/libexec/NfSenRC.pm
line 60.
Use of uninitialized value in numeric eq (==) at
/data/nfsen/libexec/NfSenRC.pm line 63.
[no collector]


Restart nfsend:[22152]
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Nfsen-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss

Reply via email to