HTTP_JOB Failing with errors "Socket is closed" exception) in the spool output
Job Example:
HTTP_JOB Health_Check
AGENT <agentname>
INVOCATIONTYPE GET
SERVLET_URL https://<yourdomain.com>/+
<yourpath>/actuator/health
AUTHORDER (BASIC, DIGEST, NTLM)
RUN DAILY
ENDJOB
HTTP_JOB requires using port 443
Solutions using to call url using curl.: (ESP requires password credentials)
Example:
UNIX_JOB RESTMON1
cmdname curl
args "--insecure" +
"--silent" +
"--show-error" +
"-H 'accept: application/json' " +
"-H 'Authorization: Basic base64encoded' " +
"https://999.99999.com.net:99999/api/v1/jobs"
RUN NOW
ENDJOB
UNIX_JOB RESTMON2
cmdname wget
args "--quiet" +
"--no-verbose" +
"https://user:[email protected]:99999+
/api/v1/jobs" +
" > /dev/null 2>&1"
RUN NOW
ENDJOB