...
- regularly calling API methods (only in jobs using the JobScheduler's API),
- regularly logging to stdout (every log line to stdout is a log API call as well and makes use of the TCP connection used by the Classic Agent to communicate with the JobScheduler Master).
...
group | sos-member |
---|
Heartbeat script for Linux Agents
The following scripts provide an alternative workaround for older versions.
Store the following script
heartbeat.sh
in the Agent's file
...
System:
Code Block language xml title Heartbeat script for Linux Agents trap 'kill $(jobs -p)' EXIT /path/to/heartbeat.sh & #your scriptcode here...
- Configure long running job scripts to run the heartbeat script.
Heartbeat script for Windows Agents
Store the following
heartbeat.cmd
script in the Agent's file system:Code Block language xml title Heartbeat script for Windows Agents start /b C:\temp\heartbeat.cmd
...
@rem your scriptcode here...
- Configure long-running job scripts to run the heartbeat script.
- Don't use quotes in the start command, e.g.
start /b "c:\my scripts\heartbeat.cmd"
.
Heartbeat script download
Delimitation
- Keep-alive packets are not created if Remote File Watching is performed by the Agent.
- Keep-alive packets are only sent for running jobs.
...
Jira | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Documentation
Master - Classic Agent
...
...