Hello all, I am currently trying to set up automatic ticket creation with the Icingaweb2 module Jira. The manual ticket creation from Icinga already works wonderfully. Unfortunately, only the automatic creation does not work. Here is my configuration, maybe someone of you will notice a mistake.
Hello all, I am currently trying to set up automatic ticket creation with the Icingaweb2 module Jira. The manual ticket creation from Icinga already works wonderfully. Unfortunately, only the automatic creation does not work. Here is my configuration, maybe someone of you will notice a mistake.
Notification Template:
template Notification "Service (Jira)" {
times.begin = 1m
command = "JIRA Service Notification"
interval = 0s
period = "allTime"
states = [ Critical, OK ]
types = [ Problem ]
user_groups = [ "jira" ]
users = [ "jira" ]
}
Notification:
apply Notification "Service (Ticket)" to Service {
import "Service (Jira)"
times.begin = 1m
interval = 0s
period = "allTime"
assign where service.name != ""
states = [ Critical ]
types = [ Problem ]
user_groups = [ "Administratoren", "jira" ]
users = [ "jira" ]
}
When I call up the notifications via History, I see that a notification has been sent to the user “Jira”. However, it never arrives in the ticket system. If I trigger the creation manually, it works.
What do you see when you manually trigger a notification and look for the executed command in /var/log/icinga2/icinga2.log?
IIRC it will only tell you the command executed (with arguments), not if it was successful or not. Copy the command and args, run it manually, and see if there is an error.