Hi!
Can you please help me to write regex for snmptrap?
I want accept string wich has "lhnNsmNotification" or "lhnUserNotification" words but not "lhnNsmNotificationManager" word.
Those examples does not works.
snmptrap["(?!.*lhnNsmNotificationManager)(.*lhnNsmNotificat ion.*|.*lhnUserNotification.*)"]
nor
snmptrap["(?!lhnNsmNotificationManager)(lhnNsmNotification| lhnUserNotification)"]
working example
snmptrap["(lhnNsmNotification|lhnUserNotification)"]
How to write "not" in snmptrap item?
Can you please help me to write regex for snmptrap?
I want accept string wich has "lhnNsmNotification" or "lhnUserNotification" words but not "lhnNsmNotificationManager" word.
Those examples does not works.
snmptrap["(?!.*lhnNsmNotificationManager)(.*lhnNsmNotificat ion.*|.*lhnUserNotification.*)"]
nor
snmptrap["(?!lhnNsmNotificationManager)(lhnNsmNotification| lhnUserNotification)"]
working example
snmptrap["(lhnNsmNotification|lhnUserNotification)"]
How to write "not" in snmptrap item?