Monitoring: healthCheck[subject=comment]
Description
This monitoring service represents an access check (thru HTTP) to the 3DComment instance. Monitoring services are local to the machine, the procedure applies to the instances installed on the machine.
Prerequisites
Apache TomEE is OK.
Activation
Command:
- Set the probe as follows:
StartMonitoringAgentSvc.sh|.bat -setProbe healthcheck comment url=http://localhost:port/appname/monitoring/healthcheck timeout=n
where
port
is the Apache TomEE+ server port,appname
is the name of the WAR (orsocial
when the service is deployed on /), andtimeout=n
is the maximum test duration in milliseconds before considering failure. - Restart
the
3DMonitoringAgent
service if monitoring by theMonitoringAgentAndProbes
media is installed as a service, or start the monitoring agent from the 3DComment service installation path as follows:StartMonitoringAgentSvc.sh|.bat -o PATH
Metrics
Name | Type | Meaning |
---|---|---|
healthCheck.status | Boolean | Severity is critical if value is false. Test fails if service cannot be contacted (not running), or if a HTTP error code is returned. |
healthCheck.elapsed | Numeric (ms) | Elapsed time needed for accessing socialServer instance. |
Recovery Procedures
Monitoring console message | Analysis | Procedure |
---|---|---|
java.net.ConnectException: Connection refused for http://localhost:<Apache TomEE Port>/appname/monitoring/healthcheck | Apache TomEE+ server is not running. | Check Apache TomEE+ server. |
RC=404 for http://localhost:<Apache TomEE Port>/appname/monitoring/healthcheck | WAR file is not deployed. | Regenerate WAR file if necessary. |