Talk:Creating Threshold Alarms
Subscribe

From OpenNMS

Jump to: navigation, search

I think this is wrong. (See Creating Threshold Alarms#Threshold.)

^[/|\w\:][^proc|dev|boot|sys|var/lib/nfs/rpc_pipefs](.*)|/$

If this is the Perl RE language, then the above means

  • A string beginning with two characters:
    • First character is any one of the following: "/", "|", ":", or any word character.
    • Second character is anything except the characters in the string "proc|dev|boot|sys|var/lib/nfs/rpc_pipefs", that is anything except those in
 |/_procdevbtsyvalinf
    • The (.*) has no effect here, except to define a group.
  • or a string that ends with "/"

I strongly doubt that was what was intended. If they would try "/problem" that would also not match.

I believe OpenNMS uses Perl/Java Regular Expressions]. There should be a reference somewhere that states that. I don't think that there is a way to say what was intended here, which is that none of the strings in square brackets match. So far as I know, there is no negation outside of character classes.

Gary Levin 13:26, 28 October 2008 (UTC)