External link with multiple parameters on

Hi;

I faced with a problem which I thinks it’s related on internal RT logics…

I’m trying to integration Zabbix (2.4) with RT (4.2.8).
I’m also using RT API to implement this integration.
the problem is Zabbix Event link is as fallow:

Event: *http://zabbix.example.com/zabbix/tr_events.php?triggerid=14169&eventid=146832
http://zabbix.example.com/zabbix/tr_events.php?triggerid=14169&eventid=146832

and as you see that link contain two variable which will make it
uniqueness…

  • triggerid=14169
  • eventid=146832

when I tried to post this link as /links [refers to] element anything get
done as I interested, except that the link what changed as:

http://zabbix.example.com/zabbix/tr_events.php?triggerid=14169
http://zabbix.example.com/zabbix/tr_events.php?triggerid=14169

It mean that I losses the eventid and so when I click on the problem show
up… Zabbix can’t open the related event just with triggerid.

as I find in RT documents, /links and it’s elements like [refer to] are
mainly used for internal RT tickets linking, so I guest that RT is parsing
the content’s on this filed to change it to some think link I see…

so tried to define a CF and use this type of fields for this purpose, but
the same problem accorded again, but why? I can’t find this problem out :-?

Sincerely,
Ali R. Taleghani

forget to say that I am using python client “rtkit” for like this:

# custom filed updating
links = { ‘content’: { ‘CF-ZTid’: "
http://monitor.example.com?id=1&myd=2&uid=3" } }
refers = rt.post(path=ticket_id + ‘/edit’, payload=links)
# refers updating
links = { ‘content’: { ‘RefersTo’: "
http://monitor.example.com?id=1&myd=2&uid=3" } }
refers = rt.post(path=ticket_id + ‘/edit’, payload=links)

but in any cases I have *http://monitor.example.com?id=1
http://monitor.example.com?id=1 * in result.On Tue, Jul 14, 2015 at 9:50 AM AliReza Taleghani shayne.alone@gmail.com wrote:

Hi;

I faced with a problem which I thinks it’s related on internal RT logics…

I’m trying to integration Zabbix (2.4) with RT (4.2.8).
I’m also using RT API to implement this integration.
the problem is Zabbix Event link is as fallow:

Event: *http://zabbix.example.com/zabbix/tr_events.php?triggerid=14169&eventid=146832
http://zabbix.example.com/zabbix/tr_events.php?triggerid=14169&eventid=146832 *

and as you see that link contain two variable which will make it
uniqueness…

  • triggerid=14169
  • eventid=146832

when I tried to post this link as /links [refers to] element anything
get done as I interested, except that the link what changed as:

http://zabbix.example.com/zabbix/tr_events.php?triggerid=14169
http://zabbix.example.com/zabbix/tr_events.php?triggerid=14169

It mean that I losses the eventid and so when I click on the problem show
up… Zabbix can’t open the related event just with triggerid.

as I find in RT documents, /links and it’s elements like [refer to] are
mainly used for internal RT tickets linking, so I guest that RT is parsing
the content’s on this filed to change it to some think link I see…

so tried to define a CF and use this type of fields for this purpose, but
the same problem accorded again, but why? I can’t find this problem out :-?


Sincerely,
Ali R. Taleghani

Sincerely,
Ali R. Taleghani

I also dumped the network traffic to be sure about the rtkit python library:
Ubuntu Pastebin #wireshark dump
so I’m sure this is what get append inside RTOn Tue, Jul 14, 2015 at 11:02 AM AliReza Taleghani shayne.alone@gmail.com wrote:

forget to say that I am using python client “rtkit” for like this:

# custom filed updating
links = { ‘content’: { ‘CF-ZTid’: "
http://monitor.example.com?id=1&myd=2&uid=3" } }
refers = rt.post(path=ticket_id + ‘/edit’, payload=links)
# refers updating
links = { ‘content’: { ‘RefersTo’: "
http://monitor.example.com?id=1&myd=2&uid=3" } }
refers = rt.post(path=ticket_id + ‘/edit’, payload=links)

but in any cases I have *http://monitor.example.com?id=1
http://monitor.example.com?id=1 * in result.

On Tue, Jul 14, 2015 at 9:50 AM AliReza Taleghani shayne.alone@gmail.com wrote:

Hi;

I faced with a problem which I thinks it’s related on internal RT
logics…

I’m trying to integration Zabbix (2.4) with RT (4.2.8).
I’m also using RT API to implement this integration.
the problem is Zabbix Event link is as fallow:

Event: *http://zabbix.example.com/zabbix/tr_events.php?triggerid=14169&eventid=146832
http://zabbix.example.com/zabbix/tr_events.php?triggerid=14169&eventid=146832 *

and as you see that link contain two variable which will make it
uniqueness…

  • triggerid=14169
  • eventid=146832

when I tried to post this link as /links [refers to] element anything
get done as I interested, except that the link what changed as:

http://zabbix.example.com/zabbix/tr_events.php?triggerid=14169
http://zabbix.example.com/zabbix/tr_events.php?triggerid=14169

It mean that I losses the eventid and so when I click on the problem show
up… Zabbix can’t open the related event just with triggerid.

as I find in RT documents, /links and it’s elements like [refer to]
are mainly used for internal RT tickets linking, so I guest that RT is
parsing the content’s on this filed to change it to some think link I see…

so tried to define a CF and use this type of fields for this purpose, but
the same problem accorded again, but why? I can’t find this problem out :-?


Sincerely,
Ali R. Taleghani


Sincerely,
Ali R. Taleghani

Sincerely,
Ali R. Taleghani