You'll also need to quote the key of that map. Only simple strings
can leave the quotes off.
['process.query' : 'State.Name.eq=puppetd']
-- Jon
On Apr 21, 2008, at 6:30 AM, Brian McDonald wrote:
> On Sunday 20 April 2008 5:00 pm, Ed Bailey wrote:
>> Hi
>>
>> I noticed that in the new hqu plugin section one can create a mass
>> http
> monitor and I am hoping that I can use something similar to create
> a mass
> process monitor so I don't have to create the process monitor one
> by one. I
> cant find any docs regarding how groovy works in regards to
> existing hq
> services so I am guessing with my settings - this is what I tried
> to use to
> create a process monitor that is is looking for the puppetd process
> on every
> server
>
> I used a method similar to this to mass load a bunch of InetAddress
> Ping
> services.. It was.. well, groovy.
>
> [snip]
>
>> It seems that groovy does not like
>>
>> "[process.query : State.Name.eq=puppetd])"
>
> I think you need quotes around your string:
>
> [ process.query : "State.Name.eq=puppetd" ]
>
> Brian
> --
> Brian McDonald, Senior Consultant
> The Occam Group of Professional Computers Services Organization
> 1919 Birchwood
> Troy, MI 48083
> Office: 248.528.3770 / Fax: 248.528.3573 / Mobile: 614.209.0260