On Thu, 2019-11-14 at 11:54 -0300, Roberto Carna wrote:
> 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

Your PHP installation is too new. The ereg() function was removed in
PHP 7.0.0.

  https://www.php.net/manual/en/function.ereg.php

If you cannot use an older PHP -- 5.4 works fine for us -- then you
could try to find and replace instances of "ereg" with for example
"preg_match". Take a look at this thread:

  
https://stackoverflow.com/questions/6270004/how-can-i-convert-ereg-expressions-to-preg-in-php

There might be other pitfalls though, so it's probably least work to
use an older PHP version.

-- 
Peter




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

Reply via email to