Ad Widget

Collapse

Problem with sending recovery and update operations

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Telmo Marques
    Junior Member
    • Apr 2023
    • 17

    #1

    Problem with sending recovery and update operations

    Hi everyone!

    I already configured media type sysaid for when i zabbix detect a problem this problem is sending as a incident to the sysaid.

    But, when i already resolved or update with a message this operations are not sending to sysaid.

    Please help me, I've had this problem for a week now and I don't know how to solve it. Below are some images of my configuration!

    Click image for larger version

Name:	5.png
Views:	154
Size:	62.6 KB
ID:	464136


    Click image for larger version

Name:	3.png
Views:	178
Size:	53.2 KB
ID:	464133

    Click image for larger version

Name:	2.png
Views:	140
Size:	26.8 KB
ID:	464134
    Click image for larger version

Name:	4.png
Views:	144
Size:	62.8 KB
ID:	464135
  • lgros
    Junior Member
    • Jun 2023
    • 2

    #2
    Yeah, I have the same problem.. I would also liked to know the solution
    I got to here:
    this is where the error occurs
    SysAid.updateTicket(params.alert_subject + '\n' + params.alert_message);
    and function in question

    updateTicket: function(note) {
    var date = new Date().getTime();
    SysAid.request('put', 'api/v1/sr/' + encodeURIComponent(SysAid.params.incident_id), {
    id: SysAid.params.incident_id,
    info: [
    {
    key: 'update_time',
    value: date
    },
    {
    key: 'notes',
    value: [
    {
    userName: 'Zabbix',
    createDate: date,
    text: note
    }
    ]
    }
    ]
    });
    }
    Last edited by lgros; 29-10-2024, 15:54.

    Comment

    Working...