Rt-Crontool not loading NotifyActor action

I am trying to setup email reminders in our ticketing system and have a cron job that uses the RT-crontool to search for reminders that are overdue and send an email using a simple template.

Here is the cronjob:

`*/1 * * * * /usr/local/rt/bin/rt-crontool --search RT::Search::FromSQL --search-arg ‘Type = “reminder” AND Queue = “NOC” AND (Status = “open” OR Status = “new”)’ --condition RT::Condition::Overdue --action RT::Action::NotifyActor --action-arg Owner,AlwaysNotifyActor --transaction first --template ‘NOC Reminders’

I have it going every minute because I am testing at the moment.

I get this error in root’s mail box.
[3639] [Thu Jun 18 19:27:02 2020] [critical]: Failed to load module RT::Action::NotifyActor. () at /usr/local/rt/bin/rt-crontool line 291. (/usr/local/rt/bin/…/lib/RT.pm:394)
Failed to load module RT::Action::NotifyActor. () at /usr/local/rt/bin/rt-crontool line 291.

I’m using RT 4.2.6

I believe the action is

 --action RT::Action::Notify \

Not NoftifyActor

It definitely is NotifyActor.

I don’t see Nofitfy in my post though? Also i don’t see Noftify in my code.

I was looking at the docs here ( 4.4.4 so maybe its different ):


You can also look at your actions ls /opt/rt4/lib/RT/Action/

I meant to say in your example you are calling --action RT::Action::NotifyActor when looking at the docs it seems it should be --action RT::Action::Notify

Yeah turns out I don’t have the NotifyActor.pm action

I used RT::Action::Notify and --action-arg Owner and it works now.

Thank you so much.

1 Like