Hi Nikolaos, I don't know this plugin, but it looks like you have to add the final Perl 1 at the end of the file Event.pm:
1; Each Module need to load true; - Peter On 10/18/12 22:46, Nikolaos Milas wrote: > On 17/10/2012 3:48 μμ, Nikolaos Milas wrote: > >> First problem: I am trying to finish Botnets configuration, so according >> to README plugin, I need to define an alert with "Conditions based on >> plugin", but this option is unavailable: No plugins are listed and the >> radio button is greyed-out. It seems nfsen does not "see" the available >> plugins properly? > > Some additional info: > > When I start nfsen, I see in nfsen.log: > > Oct 18 23:30:06 netvis nfsen[27349]: Loading plugin 'Events': Failed. > Oct 18 23:30:06 netvis nfsen[27349]: ERROR: Events.pm did not return a > true value at /data/nfsen/libexec/Nfcomm.pm line 513. > Oct 18 23:30:06 netvis nfsen[27349]: Loading plugin 'Events_mail': Failed. > Oct 18 23:30:06 netvis nfsen[27349]: ERROR: Events.pm did not return a > true value at /data/nfsen/plugins/Events_mail.pm line 51. BEGIN > failed--compilation aborted at /data/nfsen/plugins/Events_mail.pm line > 51. Compilation failed in require at /data/nfsen/libexec/Nfcomm.pm line > 513. > Oct 18 23:30:06 netvis nfsen[27349]: Loading plugin 'Botnets': Failed. > Oct 18 23:30:06 netvis nfsen[27349]: ERROR: Events.pm did not return a > true value at /data/nfsen/plugins/Botnets.pm line 46. BEGIN > failed--compilation aborted at /data/nfsen/plugins/Botnets.pm line 46. > Compilation failed in require at /data/nfsen/libexec/Nfcomm.pm line 513. > > Around line 513 of /data/nfsen/libexec/Nfcomm.pm we see: > > # cat -n /data/nfsen/libexec/Nfcomm.pm | sed -n '505,520p' > 505 > 506 sub load_module { > 507 my $module = shift; > 508 > 509 my ($HasRun, $HasAlertCondition, $HasAlertAction) = (0, 0, 0); > 510 > 511 eval { > 512 local $SIG{'__DIE__'} = 'DEFAULT'; > 513 require "$module.pm"; > 514 }; > 515 > 516 if ( my $err = $@ ) { > 517 syslog('err', "Loading plugin '$module': Failed."); > 518 syslog('err', "ERROR: $err"); > 519 return ($HasRun, $HasAlertCondition, $HasAlertAction); > 520 } > > Is there something wrong with Nfcomm.pm or with Events.pm, > Events_mail.pm, Botnets.pm? I realize that these plugins are a bit old. > > Here is: # ls -la /data/nfsen/plugins/ > total 76 > drwxr-xr-x 2 nfsen nfsenadmin 4096 Oct 17 11:25 . > drwxr-xr-x 11 nfsen nfsenadmin 4096 Apr 24 21:54 .. > -rw-r--r-- 1 root nfsenadmin 5477 Sep 29 2008 Botnets.pm > -rw-r--r-- 1 root nfsenadmin 5503 Apr 24 22:03 demoplugin.pm > -rw-r--r-- 1 root nfsenadmin 5292 Oct 17 10:17 Events_mail.pm > -rw-r--r-- 1 root nfsenadmin 19515 Oct 16 12:31 Events.pm > -rw-r--r-- 1 root nfsenadmin 13692 Apr 24 22:03 smily.jpg > > Please advise how I should pursue a resolution. > > Regards, > Nick > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > Nfsen-discuss mailing list > Nfsen-discuss@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nfsen-discuss > -- -- Be nice to your netflow data ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ Nfsen-discuss mailing list Nfsen-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfsen-discuss