Dear, I solved the email alert sending problem in this way:

In /var/www/nfsen/alerting.php I comment this lines:

//if ( !ereg("^[A-Za-z0-9_\.@-]{6,128}$", $email) ) {
//                        SetMessage('error', "Error illegal characters in
email address //'$email'");
//                        return 1;
//                }

But now every time an alert mail is sent, I can't connect to the nfsen web
interface:

ERROR: nfsend connect() error: No such file or directory!
ERROR: nfsend - connection failed!!
ERROR: Can not initialize globals!

So I have to kill and start the nfsen process in order to access the web
interface.

What can be the problem now ?

Thanks a lot again !!!

El jue., 14 nov. 2019 a las 11:54, Roberto Carna (<robertocarn...@gmail.com>)
escribió:

> Dear, I've installed a Debian 10 box with nfsen 1.3.8  (tar package) and
> nfdump 1.6.17 (Debian package).
>
> Everything seems OK, except for the new alert definition:
>
> If I create a new alert with "no action", it is OK.
>
> But if I create a new alert defining an email address, I can't do that. I
> get an HTTP error 500, and in the Apache error log I get this:
>
> [Thu Nov 14 11:36:17.460388 2019] [php7:error] [pid 705] [client
> 10.12.8.165:33382] PHP Fatal error:  Uncaught Error: Call to undefined
> function ereg() in /var/www/nfsen/alerting.php:118\nStack trace:\n#0
> /var/www/nfsen/nfsen.php(222): check_email_address('alcabrera@provi...',
> Array)\n#1 /var/www/nfsen/alerting.php(1326): ParseForm(Array)\n#2
> /var/www/nfsen/nfsen.php(689): Process_alert_tab(0, 0)\n#3 {main}\n  thrown
> in /var/www/nfsen/alerting.php on line 118, referer:
> http://172.31.24.50/nfsen.php
>
> Please can yuo help me ???
>
> Special thanks.
>
> Robert
>
_______________________________________________
Nfsen-discuss mailing list
Nfsen-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss

Reply via email to