AgileApps Support Wiki Pre Release

Monitoring Cluster-Enabled Quartz Instances

From AgileApps Support Wiki

Monitoring Cluster--Enabled Quartz Instances

Preparation
  • Add these lines to the quartz.properties file:

<syntaxhighlight lang="java" enclose="div"> org.quartz.jobStore.isClustered = true org.quartz.jobStore.clusterCheckinInterval = 20000 </syntaxhighlight>

Monitoring
  • Download the monitor_quartz.pl (Perl) script from the downloads area, and run it on your server.
How it Works
The lines in the properties file cause quartz to put an entry into the relationals.QRTZ_SCHEDULER_STATE table in the database. The script checks the timestamp to verify that the last stamp was within 5 minutes. (Quartz should be running once a minute. If it hasn't run in five minutes, it is considered to be down.)