...
You can configure your existing SSH job chain to start the monitoring job chain, which then will monitor the task of your original job chain as well as the processes started on the remote host via SSH.
Change Management References
Jira |
---|
server | SOS JIRA |
---|
columns | key,summary,type,created,updated,due,assignee,reporter,priority,status,resolution |
---|
maximumIssues | 20 |
---|
jqlQuery | labels in (ssh) |
---|
serverId | 6dc67751-9d67-34cd-985b-194a8cdc9602 |
---|
|
Mode Of Operation
To configure your SSH Job to use the SSH Session Management you have to configure your SSH Job and define a cleanup job chain for the cleanup work.
...
- if a remote process is running and the JobScheduler Task is still alive:
- do nothing, the cleanup job chain goes to a setback condition and waits for another start
- if a remote process is running but the JobScheduler Task is no longer available:
- the cleanup job tries to end the process on the remote host
- if a remote process is no longer available but the JobScheduler Task is still running:
- the cleanup job ends the Task immediately
- if a remote process and the JobScheduler Task are not available anymore
- do nothing, the cleanup job ends
...
Related Development Issues
Jira |
---|
server | SOS JIRA |
---|
columns | key,summary,type,created,updated,due,assignee,reporter,priority,status,resolution |
---|
serverId | 6dc67751-9d67-34cd-985b-194a8cdc9602 |
---|
key | JITL-147 |
---|
|
Jira |
---|
server | SOS JIRA |
---|
serverId | 6dc67751-9d67-34cd-985b-194a8cdc9602 |
---|
key | JITL-112 |
---|
|
Jira |
---|
server | SOS JIRA |
---|
columns | key,summary,type,created,updated,due,assignee,reporter,priority,status,resolution |
---|
serverId | 6dc67751-9d67-34cd-985b-194a8cdc9602 |
---|
key | JITL-123 |
---|
|
Configure the SSH Job to be monitored
A number of additional parameters have to be added to the job configuration before the SSH Job can be monitored:
...
Code Block |
---|
language | xml |
---|
title | Jobchain: Cleanup |
---|
collapse | true |
---|
|
<job_chain orders_recoverable="yes" visible="yes">
<job_chain_node error_state="ERROR" job="readPidFile" next_state="CheckTaskAndRemoteProcessesAndKillIfNeeded" on_error="setback" state="ReadPidFile"/>
<job_chain_node error_state="ERROR" job="CheckAndKill" next_state="SUCCESS" on_error="setback" state="CheckTaskAndRemoteProcessesAndKillIfNeeded"/>
<job_chain_node state="ERROR"/>
<job_chain_node state="SUCCESS"/>
</job_chain> |
Change Management References
Jira |
---|
server | SOS JIRA |
---|
columns | key,summary,type,created,updated,due,assignee,reporter,priority,status,resolution |
---|
maximumIssues | 20 |
---|
jqlQuery | labels in (ssh) |
---|
serverId | 6dc67751-9d67-34cd-985b-194a8cdc9602 |
---|
|