-
1. Re: Alert if JBoss Server goes down
joe.marques Sep 1, 2009 12:25 PM (in response to tbar0711)Jopr doesn't record discrete availability data for a resource - it only records changes. So, it'll only tell the server when a server is going down or coming up, the only two possible state changes.
As a result, you can never have the event GOES DOWN twice in a row. By the very nature of the way data is reported, you'll see GOES DOWN, COMES UP, and then GOES DOWN. This is why your alert isn't working when you try to use dampening.
This problem has been discussed before on the forums. If you search for availability and/or dampening, you'll find the thread which discusses a few options for this scenario. -
2. Re: Alert if JBoss Server goes down
tbar0711 Sep 2, 2009 5:05 AM (in response to tbar0711)Thanks. I understand and read a lot in the forums but I couldn't find how to really resolve my intention.
I only want to get an alert if the JBoss AS Server is really down. Not if there had happended some kind of error within the running AS. The problem is that availability goes down means not automatically that the server was gone down. I get the availability goes down also sometimes if there appeared some kind of error within the running server.
Now my question is how I have to configure an alert that makes sure I get it only if the JBoss AS Server was really gone down? -
3. Re: Alert if JBoss Server goes down
ips Sep 2, 2009 8:25 AM (in response to tbar0711)So it sounds like you're asking for a new type of alert condition that is true "if the JBossAS Server is unavailable for > 3 minutes"?
By the way, you can see how we check availability for JBossAS Servers by looking at the getAvailability method in the following class:
http://anonsvn.jboss.org/repos/jopr/trunk/modules/plugins/jboss-as/src/main/java/org/rhq/plugins/jbossas/JBossASServerComponent.java
Basically, we:
1) connect to the JNP server
2) get the "ServerHomeDir" attribute from the "jboss.system:type=ServerConfig" MBean and check its value is valid
If any of the above steps fails, we consider the server DOWN; otherwise, we consider it UP. Note, a network connectivity issue could cause step 1) to fail, though that would be unusual since the JNP url usually uses a loopback address (e.g. 127.0.0.1). -
4. Re: Alert if JBoss Server goes down
lkrejci Sep 2, 2009 8:37 AM (in response to tbar0711)Also note that there's already a feature request that might solve your situation once implemented.: http://jira.rhq-project.org/browse/RHQ-2130.
You're more than welcome to help us out with analyzing/implementing it.