pmie ruleset question

"Chandana De Silva" <[email protected]>
Newsgroups gmane.comp.sysutils.pcp
Message-ID <[email protected]>
I am trying to create a pmie ruleset with a slightly complex rule

This works

delta = 1 min; ruleset ( count_inst( match_inst "/usr/bin/somebinary" proc.psinfo.pid:'local:' > 0) == 1) -> print "OK, %v somebinary processess\n" otherwise -> print "NOT OK, %v somebinary processess\n" ; This does not
$ cat test0.pmie delta = 1 min; ruleset ( count_inst( match_inst "/usr/bin/somebinary" proc.psinfo.pid:'local:' > 0) == 1) -> print "OK, %v somebinary processess\n" ( count_inst( match_inst "/usr/bin/somebinary" proc.psinfo.pid:'local:' > 0) == 0) -> print "NOT OK, %v somebinary processess\n" otherwise -> print "NOT OK, %v somebinary processess\n" ; $ pmie -c test0.pmie -C pmie: syntax error - near line 7 of file test0.pmie arithmetic expression expected to precede >
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.