Additional...
The data source (observed) mbean is never called. Why? The action is
called once when the rule is activated. No error messages logged...
I am basing this on an example found here:
https://glassfish.dev.java.net/javaee5/selfmanagement/selfmanagement_example.html
This is the way the rule get written:
<management-rules enabled="true">
<management-rule enabled="true" name="CMS_Memory_Rule">
<event level="WARNING" record-event="true" type="monitor">
<description>Memory Alert</description>
<property name="observedobject"
value="user:impl-class-name=com.iwsinc.cms.monitor.memory.CMSMemory,name=CMSMemoryMBean,server=server"/>
<property name="observedattribute" value="FreeMemory"/>
<property name="granularityperiod" value="1000"/>
<property name="monitortype" value="gaugemonitor"/>
<property name="differencemode" value="false"/>
<property name="numbertype" value="long"/>
<property name="lowthreshold" value="9000000"/>
<property name="highthreshold" value="9700000"/>
</event>
<action action-mbean-name="CMSMemoryAction"/>
<description>CMS_Memory_Rule</description>
</management-rule>
</management-rules>
Any ideas?
Thank you
jsexton0 wrote:
>
> Hello -
>
> I made a monitor-type self management rule. It functions, but it seems to
> only get called once when the rule is activated at start up. I added some
> logging so I should be able to see when the observedobject is used.
>
> What units is the granularityperiod parameter in? I figured it for
> milliseconds and used 1000. Is it seconds?
>
> I've got no error messages or anything in the log. It just seems to only
> call the monitor object once.
>
> Thanks
>
>
--
View this message in context: http://old.nabble.com/Monitor-Self-Management-Rules%2C-Granularity-Units--tp26216584p26218936.html
Sent from the java.net - glassfish users mailing list archive at Nabble.com.