From: Scott G. <gre...@fa...> - 2011-01-19 18:35:20
|
I am struggling with the same thing. If you change the template in your metric to this: template="sigar.ptql:Type=ProcState,Arg=:State:State.Name.eq=java,Args.*.ct=iipax.config.file" then it should correctly detect when the process is up. But in my testing using this kind of template, it doesn't correctly change the state to down when the process goes away. I'm guessing this is because sigar errors out instead of returning a ProcState value that indicates the process isn't running. Manually running the plugin with this kind of template gives this: sigar.ptql:Type=ProcState,Arg=:State:State.Name.eq=jsvc,Args.*.eq=-Dcatalina.home=/home/fs/tomcat,State.Name.Peq=jsvc getValue failed for metric: fs-public-api:sigar.ptql:Type=ProcState,Arg=:State:State.Name.eq=jsvc,Args.*.eq=-Dcatalina.home=/home/fs/tomcat,State.Name.Peq=jsvc MetricNotFoundException: Query did not match any processes |