Howdy, Yeah, I had someone take a look at that expression and determine it was disallowing whitespace. I haven't yet tried modifying the script, which I'm tempted to, but the other part of the problem I'm seeing is how to get the varbinds into event messages... there seems to be reference to handlers that need to be written, and other references to people who seem to have got things working the way they like.
I haven't yet seen a clear way on how to do it, though. However, I will probably give the whitespace removal a try. If anyone has info. on the rest of getting the events/alerts/triggers clarified, I'd be most grateful. Thanks, -Adam On Fri, May 04, 2007 at 11:45:24AM +1000 or thereabouts, Craig Small wrote: > 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 > ------------------------------------------------------------------------- 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