|
From: Corey E. <cor...@gm...> - 2007-03-24 19:15:15
|
Hi, We have started to use the Java Service Wrapper (great app!!), and we are required to send traps when upon graceful startup, graceful shutdown, and when the wrapper detects a problem with the application and restarts (i.e. kill -9 of the process). We have integrated code into the WrapperSimpleApp class to send traps in the start and stop methods. This is working for the first two requirements graceful startup/shutdown, but I need to know where to hook in, in order to be able to send a trap when the wrapper attempts a restart for any reason ( i.e. Exception, process dies, etc.). I thought that the controlEvent method would be the right place, but I am not sure it is. If someone can point me to the right place (class, method) in order to generate an SNMP trap upon application failure this will be great. What we really want is as follows: 1. Once the wrapper has attempted to restart the application the configured amount of times, then send an alarm. This way we will only send an alarm if the wrapper fails to restart the application. Thanks Corey |