I ran into a problem where I entered a bad URL for JMX connector to an application.
The downtime tracking displayed that it was down, probably correct thing to do since it could not connect the service at the incorrect URL.
But when I corrected the URL, the application status remained as "Down", even though I could view graphs and dashboards. View managed objects. etc.
Logged In: YES
user_id=1900601
Originator: NO
Hi,
I have also had this problem and have modified the code to fix it by firing an application up event when the thread is started.
Index: C:/north-src/jmanage/management/src/main/java/org/jmanage/monitoring/downtime/ApplicationHeartBeatThread.java
--- C:/north-src/jmanage/management/src/main/java/org/jmanage/monitoring/downtime/ApplicationHeartBeatThread.java (revision 2)
+++ C:/north-src/jmanage/management/src/main/java/org/jmanage/monitoring/downtime/ApplicationHeartBeatThread.java (working copy)
@@ -52,8 +52,10 @@
protected ApplicationHeartBeatThread(ApplicationEvent appEvent) {
this(appEvent.getApplicationConfig());
/* check if the application is up */
- wasOpen = isOpen();
- if(!wasOpen){
+ if(isOpen()){
+ EventSystem.getInstance().fireEvent(
+ new ApplicationUpEvent(appConfig));
+ }else {
EventSystem.getInstance().fireEvent(
new ApplicationDownEvent(appConfig, appEvent.getTime()));
}
Josh