Jopr and RHQ check from time to time for each resources availability. This is done in the agent, where a periodic thread calls the
getAvailability()method of each ResourceComponent. After this scan the result is sent to the server and the server shows the red and green state on the resource.
This server side processing creates a certain stress in large environements (say: hundreds of agents with ten thousands of resources), so that in Jopr 2.3 we have increased the interval this check is done to 5 minutes.
For many use cases (smaller installs, testing) this is too long. Luckily, this interval is not cast in stone, but configurable in the agent settings file,
Defines how often an availability scan is run. This type
of scan is used to determine what resources are up and running
and what resources have gone down. The value is specified in
<entry key="rhq.agent.plugins.availability-scan.period-secs" value="300"/>
You see the default is shown as commented value. To change this to a different value, remove the xml comment signs around it and change this back to e.g. 60 seconds (it will probably not make any sense to go lower than that, as the load on the agent, your managed resource and also the Jopr server will increase again):
<entry key="rhq.agent.plugins.availability-scan.period-secs" value="60"/>
After this is done, you need to restart the agent to have it read the new value (see also next paragraph).
As the agent writes its configuration into the java preferences as backing store, the above change will not directly be honored. This may sound strange at first, but it has the advantage that you can run an agent, remove it, install a newer version of it and have the new version automatically use the saved values of the first agent install.
So you need to tell the agent that it indeed should read the new configuration file. This can be done by starting the agent with the option
--clenanconfigor better by supplying
-c agent-configuration.xml. This is explained at the top of the agent-configuration.xml file and also in the yellow box in the agent install document.
Of course this applies to JBoss ON 2.3 as well.