On Sun, Jun 05, 2011 at 08:44:05PM +0200, Marek Królikowski wrote:
>    20:38:13 tcp_ports(): nmap returned 1
>    Warning: Wrong parameter count for strstr() in
>    /opt/jffnms2/lib/api.network.inc.php on line 462
Line 462 is this:
  if ( ($trim_status = strstr($status, '(', TRUE)) !== FALSE)

I just tried that bit of code and it works fine.  The three-parameter
strstr() appears in PHP 5.3.0, perhaps you are running an older PHP?

Try replacing that line and the return $trim_status with:
  if ( ($trim_pos = strpos($status, 'X')) !== FALSE)
      return substr($status,0,$trim_pos-1);

I suspect the other errors are due to the first.

 - Craig


-- 
Craig Small VK2XLZ    http://www.enc.com.au/       csmall at : enc.com.au
Debian GNU/Linux      http://www.debian.org/       csmall at : debian.org
GPG fingerprint:       1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
_______________________________________________
jffnms-users mailing list
jffnms-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jffnms-users

Reply via email to