Open yoshi314 opened 4 years ago
@yoshi314: do these issues show up, when you navigate to that service's Issue list (from the Icinga Web monitoring detail view)?
i actually cannot see any issues in jira module. That's odd.
I'm confused, the last two statements seem to contradict each other. Could you please share more details?
Issues pop up in JIRA as duplicates (they even have the same icingaKey), but i cannot see any issues from icingaweb2 module's view.
Are they somehow transformed in a specific JIRA workflow? Does the creator
in JIRA match the JIRA user used by this module? Is the resolution still empty?
creator is the same, issues are all not resolved, i don't see how they would differ wrt workflow.
I'll inspect them in a bit more detail, unless i can get out some more debug info out of the module.
I tried applying the query from jira module to my jira instance and i cannot find issues i am looking for.
e.g.
icingaKey ~ "BEGINconniedb*"
works, but it lists plenty of issues.
But icingaKey ~ "BEGINconniedb!queue sizeEND"
returns nothing. even though i can directly see that icingaKey listed.
I am at a loss here. What could be wrong?
Turns out that avoiding special characters like ! _ or anything nonnumber or digit helps. Jira's ~ operator is rather quirky.
Perhaps the sdcript ought to avoid using host!service notation. and instead use e.g. capital i for separator. Or other fixed string
I have replaced the makeIcingaKey function with one that adds a fixed text separator and removes all non a-zA-Z0-9 characters from the field during generation. It seems to work so far.
I know it has been forever and I am also not sure if it is still relevant, but do you still have the code you used and want to share it in a PR?
in function makeIcingaKey i basically added this :
$icingaKey .= preg_replace('/[^A-Za-z0-9]/', '', $service);
Hi @yoshi314,
Could you also mention the icingaweb2-module-jira version you were using when the issue occurred? Also, could you check if this issue still persists in the latest icingaweb2-module-jira (v1.2.2) version?
Note: Instead of icingaKey ~ "BEGINconniedb!queue sizeEND"
use icingaKey ~ "\"BEGINconniedb!queue sizeEND\""
. Refer the documentation for search syntax for text fields with special characters.
i'll test this sometime next week
This just started happening today. No clue as to what changed.