check process ejbca with matching "java .*jboss-modules.jar.*standalone.xml"
start program = "/etc/ejbca/run_ejbca start"
stop program = " /etc/ejbca/run_ejbca stop"
restart program = "/etc/ejbca/run_ejbca restart"
if failed URL
http://localhost:8080/ejbca/publicweb/healthcheck/ejbcahealth content = "ALLOK"
timeout 60 seconds
within 5 cycles then alert
if 5 restarts within 5 cycles then timeout
It worked great few years. After upgrade to 5.25.3 http check doesn't work.
It complains in log:
'ejbca' failed protocol test [HTTP] at
[localhost]::8080/ejbca/publicweb/healthcheck/ejbcahealth [TCP/IP] -- No
route to host