[rt-users] which scripts fire when

Landon Stewart lstewart at internap.com
Wed Dec 7 16:44:06 EST 2016


On Dec 7, 2016, at 1:17 PM, Alex Hall <ahall at autodist.com<mailto:ahall at autodist.com>> wrote:
I guess that's it for now. I'd like a way to watch the different scripts do their thing for a single transaction, and I need to better understand how the different scripts decide when to fire and when to stay quiet. Thanks as always!

The debug log will do just that.  It will tell you what scrip is being skipped or is triggering for what ticket and transaction.

Example of a ticket being created:
[16981] [Mon Oct 17 16:03:31 2016] [debug]: About to prepare scrips for transaction #3644426 (/opt/rt4/sbin/../lib/RT/Transaction.pm:187)
[16981] [Mon Oct 17 16:03:31 2016] [debug]: Found 20 scrips for TransactionCreate stage with applicable type(s) Create for txn #3644426 on ticket #20035600 (/opt/rt4/sbin/../lib/RT/Scrips.pm:495)
[16981] [Mon Oct 17 16:03:31 2016] [debug]: Skipping Scrip #18 because it isn't applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)
[16981] [Mon Oct 17 16:03:31 2016] [debug]: Skipping Scrip #20 because it isn't applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)
[16981] [Mon Oct 17 16:03:31 2016] [debug]: Skipping Scrip #42 because it isn't applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)
[16981] [Mon Oct 17 16:03:31 2016] [debug]: Skipping Scrip #21 because it isn't applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)
[16981] [Mon Oct 17 16:03:31 2016] [debug]: Skipping Scrip #24 because it isn't applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)
[16981] [Mon Oct 17 16:03:31 2016] [debug]: Skipping Scrip #25 because it isn't applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)
[16981] [Mon Oct 17 16:03:31 2016] [debug]: Skipping Scrip #78 because it isn't applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)
[16981] [Mon Oct 17 16:03:31 2016] [debug]: About to commit scrips for transaction #3644426 (/opt/rt4/sbin/../lib/RT/Transaction.pm:210)
[16981] [Mon Oct 17 16:03:31 2016] [debug]: Committing scrip #13 on txn #3644426 of ticket #20035600 (/opt/rt4/sbin/../lib/RT/Scrips.pm:306)
[16981] [Mon Oct 17 16:03:31 2016] [debug]: Committing scrip #16 on txn #3644426 of ticket #20035600 (/opt/rt4/sbin/../lib/RT/Scrips.pm:306)

Example of a custom field change (different ticket than above):
[16980] [Mon Oct 17 16:03:55 2016] [debug]: About to prepare scrips for transaction #3644476 (/opt/rt4/sbin/../lib/RT/Transaction.pm:187)
[16980] [Mon Oct 17 16:03:55 2016] [debug]: Found 8 scrips for TransactionCreate stage with applicable type(s) CustomField for txn #3644476 on ticket #20035308 (/opt/rt4/sbin/../lib/RT/Scrips.pm:495)
[16980] [Mon Oct 17 16:03:55 2016] [debug]: Skipping Scrip #21 because it isn't applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)
[16980] [Mon Oct 17 16:03:55 2016] [debug]: Skipping Scrip #24 because it isn't applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)
[16980] [Mon Oct 17 16:03:55 2016] [debug]: Skipping Scrip #25 because it isn't applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)
[16980] [Mon Oct 17 16:03:55 2016] [debug]: Skipping Scrip #31 because it isn't applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)
[16980] [Mon Oct 17 16:03:55 2016] [debug]: Skipping Scrip #32 because it isn't applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)
[16980] [Mon Oct 17 16:03:55 2016] [debug]: Skipping Scrip #74 because it isn't applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)
[16980] [Mon Oct 17 16:03:55 2016] [debug]: Skipping Scrip #78 because it isn't applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)

--
Landon Stewart
Lead Analyst - Abuse and Security Management
INTERNAP ®
📧 lstewart at internap.com<mailto:lstewart at internap.com>
🌍 www.internap.com<http://www.internap.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20161207/96ed32e6/attachment.htm>


More information about the rt-users mailing list