Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
serverSOS JIRA
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
maximumIssues20
jqlQuerylabels in (ssh)
serverId6dc67751-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
serverSOS JIRA
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId6dc67751-9d67-34cd-985b-194a8cdc9602
keyJITL-147

Jira
serverSOS JIRA
serverId6dc67751-9d67-34cd-985b-194a8cdc9602
keyJITL-112

Jira
serverSOS JIRA
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId6dc67751-9d67-34cd-985b-194a8cdc9602
keyJITL-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
languagexml
titleJobchain: Cleanup
collapsetrue
<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
serverSOS JIRA
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
maximumIssues20
jqlQuerylabels in (ssh)
serverId6dc67751-9d67-34cd-985b-194a8cdc9602