Giter Site home page Giter Site logo

Comments (6)

hAh0L13 avatar hAh0L13 commented on July 28, 2024 1

In my case probem was in permissions:

  • zabbix-server run from user zabbix
  • AlertScriptPath is root:root
    Of course, zbx_tmp_dir from your config also must have correct right permissions (in my case zabbix:zabbix)

Everything works fine for me now

UPD: maybe you know it, but check workflows in your JIRA project - issue/task/etc must have flow from OPEN to DONE

from zabbix-jira.

hAh0L13 avatar hAh0L13 commented on July 28, 2024

Did you resolve this problem?

Hi,
Issue registration works fine (graph also attached). But when problem resolved transition to Done doesn't work.
Interesting that script doesn't write to file jirabix.db.
Maybe we need to install additional software on server?

from zabbix-jira.

medojr avatar medojr commented on July 28, 2024

I have same issue as OlegsBazalickis. And problem is that it can't write to SQLlite database. I tried to give all rights to jirabix.db but still without success.

Traceback (most recent call last):
File "/usr/lib/zabbix/alertscripts/jirabix.py", line 230, in
main()
File "/usr/lib/zabbix/alertscripts/jirabix.py", line 216, in main
c.execute("INSERT INTO events VALUES (?, ?);", (trigger_id, issue_key))
sqlite3.OperationalError: unable to open database file

from zabbix-jira.

OSidorenkov avatar OSidorenkov commented on July 28, 2024

That's right. The problem is access rights to the database file. Verify that the file has been created and that the zabbix user has access to it.

from zabbix-jira.

pjain287074 avatar pjain287074 commented on July 28, 2024

Hi, I am facing the same issue I am getting below error.

Traceback (most recent call last):
File "/usr/lib/zabbix/alertscripts/jirabix.py", line 229, in
main()
File "/usr/lib/zabbix/alertscripts/jirabix.py", line 222, in main
close_issue(issue_key, get_transition(issue_key))
File "/usr/lib/zabbix/alertscripts/jirabix.py", line 43, in close_issue
jira.transition_issue(issue, status)
File "/usr/local/lib/python2.7/dist-packages/jira/client.py", line 126, in wrapper
result = func(*arg_list, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/jira/client.py", line 1559, in transition_issue
raise JIRAError("Invalid transition name. %s" % transition)
jira.exceptions.JIRAError: JiraError HTTP Invalid transition name. None

the transition state of Jira issue is not changing to Done, Apart from this everything is working fine.

from zabbix-jira.

OSidorenkov avatar OSidorenkov commented on July 28, 2024

Most likely the problem is in the wrong jira_transition in your config.py. You can check all available transitions in your project using test/check_transition_id.py in debug mode. For example:
image

from zabbix-jira.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.