Hello Everybody

Here is the code

if process.id == 'Tomcat':
    tomcat_server = device.findComponent('GWTrack_Checker')
    if tomcat_server.evt.severity() = 5:
        evt.eventState = 2 # suppresse

I have HTTP-Monitor based Performance Monitoring templates. that is bound to 
two devices.

By above shown code, i am currently changing the event state of tomcat process 
if GWTrack_Checker's component's event status is Critical.

Will the above code work?

I want to change the event state of tomcat process for component ID 
Trackut_Checker too, so please suggest a code snippet to universally transform 
the tomcat process event's state to suppresse if any of two GWTrack_Checker and 
Trackut_Checker's component event state is critical.




-------------------- m2f --------------------

Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=29507#29507

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to