<div dir="ltr">Hello,<div><br></div><div>I've copied RTIR_FindIP.pm to RTIR_CustomFindIP.pm, edited the package name within the file and modified the ScripActions table entry and rt-crontool finds it without a problem.<div>
<br></div><div style>But… I have a problem with a new one. I've created a new RTIR_Classify.pm and modified the package in the file and added it to ScripActions using "sbin/rt-setup-database --action insert --datafile …." and I can see it listed there but rt-crontool cannot find it.</div>
<div style><br></div><div style><div><font face="courier new, monospace"># stat /opt/rt4/local/plugins/RT-IR/lib/RT/Action/RTIR_Classify.pm</font></div><div><font face="courier new, monospace"> File: `/opt/rt4/local/plugins/RT-IR/lib/RT/Action/RTIR_Classify.pm'</font></div>
<div><font face="courier new, monospace"> Size: 815 <span class="" style="white-space:pre"> </span>Blocks: 8 IO Block: 4096 regular file</font></div><div><font face="courier new, monospace">Device: ca06h/51718d<span class="" style="white-space:pre"> </span>Inode: 23197 Links: 1</font></div>
<div><font face="courier new, monospace">Access: (0444/-r--r--r--) Uid: ( 0/ root) Gid: ( 0/ root)</font></div><div><font face="courier new, monospace">Access: 2013-07-02 15:53:56.305283436 -0400</font></div>
<div><font face="courier new, monospace">Modify: 2013-07-02 15:53:56.305283436 -0400</font></div><div><font face="courier new, monospace">Change: 2013-07-02 15:57:15.078335450 -0400</font></div></div><div><font face="courier new, monospace"><br>
</font></div><div><font face="courier new, monospace"><br></font></div><div><div><font face="courier new, monospace">mysql> SELECT * FROM ScripActions WHERE ExecModule = "RTIR_Classify";</font></div><div><font face="courier new, monospace">+----+--------------------------------+----------------------------------------------------------+-------------------+----------+---------+---------------------+---------------+---------------------+</font></div>
<div><font face="courier new, monospace">| id | Name | Description | ExecModule | Argument | Creator | Created | LastUpdatedBy | LastUpdated |</font></div>
<div><font face="courier new, monospace">+----+--------------------------------+----------------------------------------------------------+-------------------+----------+---------+---------------------+---------------+---------------------+</font></div>
<div><font face="courier new, monospace">| 47 | RTIR Classify Tickets | Classifies and prioritize tickets based on their content | RTIR_Classify | NULL | 1 | 2013-07-02 19:37:05 | 1 | 2013-07-02 19:37:05 |</font></div>
<div><font face="courier new, monospace">+----+--------------------------------+----------------------------------------------------------+-------------------+----------+---------+---------------------+---------------+---------------------+</font></div>
<div><font face="courier new, monospace">1 row in set (0.00 sec)</font></div><div><br></div><div><br></div><div><div><font face="courier new, monospace"># /opt/rt4/bin/rt-crontool --search RT::Search::ActiveTicketsInQueue \</font></div>
<div><font face="courier new, monospace">--search-arg "Incident Reports" --action RT::Action::RTIR_Classify \</font></div><div><font face="courier new, monospace">--transaction all --verbose</font></div><div><font face="courier new, monospace">Failed to load module RT::Action::RTIR_Classify. () at /opt/rt4/bin/rt-crontool line 304.<br>
</font></div></div><div><br></div><div style>Hrmmmm…. What am I missing? What do I not know about the magic of RTIR here? Again, the copied RTIR_CustomFindIP.pm gets found without a problem and works like a champ.</div>
<div style><br></div>-- <br><div>Landon Stewart <LandonStewart@Gmail.com><br></div>
</div></div></div>