The nagios XI system macro is %responseurl% which i call from nagiosxi component "global event handler" available below.
The same macro is present in default system notification template and generation healthy response URL like below
noticeably the uid section is coming correctly in via email notification from xi_host and xi_service events .
Code: Select all
http://stage..nagiosxi/rr.php?uid=[3]-[633]-[c802..7c3]
Wen run from script at host / service state change handle command. There if the script refers to macro %responseurl% the url generated misses the uid section and only rest of the section presents like below ,
Code: Select all
http://stage..nagiosxi/rr.php?uid=-[633]-[c802..7c3]
we are using event handler script to generate ticket in ticketing system and the above url is incorrect in the ticket and support staff aren't able to take action on the ticket. The rapid URL provides "acknowledge", "scheduled downtime" and "disable" list dropdown action with which further creation of ticket for same alert can be stopped. However the staff at service desk don't have access to nagios fronted per say and are devoid of that ease of stopping duplicate. I hope this gives enough
information to your query.
We are using "nagiosadmin" account in nagiosxi to create these.