On Thu, May 03, 2007 at 03:41:50PM -0700, Adam Clark wrote: > SNMPv2-SMI::enterprises.9.9.41.1.2.3.1.5.54 = STRING: "A Unicast storm > detected on Fa0/1. A packet filter action has been applied on the > interface." [...]
> Where's .5.54? It's hiding, let's look at trap_receiver.php: if (preg_match ("/^(\S+)\s+=?\s?\"?([^\" \t]+)\"?$/", $line, $matches)) Let's look closer at this PCRE, see the string "?([^\" \t]+)\"? the problem with it is it will take a string with no quotes, spaces or tabs in it. Your string has spaces so it is not going to match. I'm not sure why spaces and tabs are not allowed, Javier may remember. You could try removing it, change the line to: if (preg_match ("/^(\S+)\s+=?\s?\"?([^\"]+)\"?$/", $line, $matches)) or, if you want it neater because I like using ' if (preg_match ('/^(\S+)\s+=?\s?"?([^"]+)"?$/', $line, $matches)) - Craig -- Craig Small GnuPG:1C1B D893 1418 2AF4 45EE 95CB C76C E5AC 12CA DFA5 http://www.enc.com.au/ csmall at : enc.com.au http://www.debian.org/ Debian GNU/Linux, software should be Free ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ jffnms-users mailing list jffnms-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jffnms-users