[rt-users] rt-crontool question

Mark Fuller mfuller at bandtel.com
Fri Feb 3 13:39:15 EST 2012


I have 3 things we did from cron we updated to 4.0.2 from 3.6 and they
don’t work now. Can someone advise what I have to change



## At 3 am everyday send a notification to the requestors of tickets in
custpndng untouched for 3 days

30 3 */1 * * root /opt/rt4/bin/rt-crontool --search
RT::Search::TicketsWithStatus --search-arg custpndng --condition
RT::Condition::UntouchedInHours --condition-arg 72 --action
RT::Action::NotifyFromRTSystem --action-arg Requestor --template-id 20
--verbose > /var/log/cpend7daynotifyrequestor.out

#

## At 3 am everyday resolve tickets in custpndng untouched for 17 days

0 3 */1 * * root /opt/rt4/bin/rt-crontool --search
RT::Search::TicketsWithStatus --search-arg custpndng --condition
RT::Condition::UntouchedInHours --condition-arg 168 --action
RT::Action::SetStatus --action-arg resolved --verbose >
/var/log/cpend14dayresolve.out

#

## At 3 am everyday send a notification to the owners of open tickets
untouched in 1 days

45 3 */1 * * root /opt/rt4/bin/rt-crontool --search
RT::Search::TicketsWithStatus --search-arg open --condition
RT::Condition::UntouchedInHours --condition-arg 24 --action
RT::Action::NotifyFromRTSystem --action-arg Owner --template-id 21
--verbose > /var/log/open3daynotifyowner.out





I get an error when they run



[crit]: Failed to load module RT::Search::TicketsWithStatus. () at
/opt/rt4/bin/rt-crontool line 307. (/opt/rt4/bin/../lib/RT.pm:340)

Failed to load module RT::Search::TicketsWithStatus. () at
/opt/rt4/bin/rt-crontool line 307.



Thanks





Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20120203/f10fd19f/attachment-0001.html>


More information about the rt-users mailing list