atlassian / atlassian/jsm-integration-scripts
JEC fails to execute zabbix server script
- Dominant language
- Python
- Stars
- 17
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
When trying to acknowledge an alarm from JSM using **zabbix-1.0.3_jec-1.0.4**, JEC action handler starts, but fails calling out to the python script with:
```
Received 1 messages from the queue[...].
Job[...] is being submitted
Job[...] is submitted to worker[...]
Message[...] is deleted from the queue[...].
Action[Acknowledge] execution of message[...] failed: exit status 2 Stderr: usage:
jec_action_executor.py [-h]
-payload QUEUEPAYLOAD -apiKey APIKEY -jsmUrl JSMURL -logLevel LOGLEVEL
[-command_url COMMAND_URL] [-user USER] [-password PASSWORD]
jec_action_executor.py: error: unrecognized arguments:
--jecNamedPipe /var/tmp/jec/jecCallbackPipe-...
Job[...] has been processed by worker[...].
Current Worker: 4, Idle Worker: 4, Queue Size: 0, Queue load: 0
Successfully sent result of message[...] to Jira Service Management and it took 0.800652 seconds.
```
Contributor guide
Research direction
Start by locating jec_action_executor.py and inspect its argument handling alongside the JEC action invocation that passes --jecNamedPipe. Reproduce the acknowledge-alarm flow using the versions named in the report, then confirm that the action completes without the unrecognized-argument error and still returns its result to Jira Service Management.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100