Still can't run cron jobs

Hi All,
Please, I asked this question on running cron jobs yesterday but I didn’t get a response. I’m trying to send emails to owners and adminCc’s when a ticket had been untouched for 2hours. However, the intended recipients don’t get emails.
I’m running rt 3.0.11 on linux, with perl 5.8.3, mySQL and apache with mod_perl. There is nothing new in the rt.log file.

I am running rt-crontool with the following parameters.

30 * * * * /opt/rt3/bin/rt-crontool --search RT::Search::ActiveTicketsInQueue --search-arg VSATFaults --condition RT::Condition::UntouchedInHours --condition-arg 2 --action RT::Action::SystemNotify --action-arg Owner,AdminCc --template-id 20

Please, why can’t I just use RT::Action::Notify for the --action parameter?

Thanks all.

Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.

I tried running rt-crontool from the command line but I got a message that the command cannot be found. Does that mean I don’t have rt-crontool running?
Thanks

Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.

Hi All,
Thanks for the information on trying to run rt manually. I also think that one of the problems is that UntouchedInHours isn’t included in the RT/Condition directory. I was initally misled to use RT::Condition::UntouchedInHours because that was the example used in rt-crontool help. An alternative would be to use RT::Condition::Overdue but overdue works with days as a parameter but I need to send the emails to certain people once the ticket has been untouched for 2hours.
Please, is there any module someone has written for this or any other lead elsewhere?
Thanks.

Do you Yahoo!?
The all-new My Yahoo! � Get yours free!

Oluwatomisin Ilori wrote:

I tried running rt-crontool from the command line but I got a message
that the command cannot be found. Does that mean I don’t have
rt-crontool running?
It is not linux discussion mailing list
RTFM: man locate

Hi All,
Thanks for your previous suggestions regarding this issue.
I get the following errors while trying to run rt-crontool manually. I’ve installed Ruslan’s NotifyGroup module. Please, any assistance would be very helpful. I’ve also included the rt log.

./rt-crontool 5 * * * * --search RT::ActiveTicketsInQueue --search-arg VSATFaults --condition RT::Condition::Overdue --action RT::Action::NotifyGroup --action-arg VSATFaultGroup --template-id 20

The content of rt.log for today is:
[Tue Jan 18 12:34:34 2005] [crit]: Failed to load module . () at ./rt-crontool line 138.
(/opt/rt3/lib/RT.pm:257)
[Tue Jan 18 12:44:57 2005] [crit]: Failed to load module . () at ./rt-crontool line 138.
(/opt/rt3/lib/RT.pm:257)
[Tue Jan 18 12:47:50 2005] [warning]: No transaction object handed to RT::Action::NotifyGroup=HASH(0x8e8ca6c)
(/opt/rt3/lib/RT/Action/SendEmail.pm:201)
[Tue Jan 18 12:47:51 2005] [error]: error: unexpected end of header
(/opt/rt3/lib/RT/Template_Overlay.pm:341)
[Tue Jan 18 12:47:51 2005] [warning]: No transaction object handed to RT::Action::NotifyGroup=HASH(0x8eae1b0)
(/opt/rt3/lib/RT/Action/SendEmail.pm:201)
[Tue Jan 18 12:47:51 2005] [error]: error: unexpected end of header
(/opt/rt3/lib/RT/Template_Overlay.pm:341)
[Tue Jan 18 12:48:12 2005] [crit]: Can’t call method “new” on an undefined value at ./rt-crontool line 113.
(/opt/rt3/lib/RT.pm:257)
[Tue Jan 18 12:49:47 2005] [warning]: No transaction object handed to RT::Action::NotifyGroup=HASH(0x8e8ca6c)
(/opt/rt3/lib/RT/Action/SendEmail.pm:201)
[Tue Jan 18 12:49:47 2005] [error]: error: unexpected end of header
(/opt/rt3/lib/RT/Template_Overlay.pm:341)
[Tue Jan 18 12:49:47 2005] [warning]: No transaction object handed to RT::Action::NotifyGroup=HASH(0x8eae1b0)
(/opt/rt3/lib/RT/Action/SendEmail.pm:201)
[Tue Jan 18 12:49:47 2005] [error]: error: unexpected end of header
(/opt/rt3/lib/RT/Template_Overlay.pm:341)
[Tue Jan 18 12:55:58 2005] [warning]: Use of uninitialized value in concatenation (.) or string at /opt/rt3/lib/RT/Tickets_Overlay_SQL.pm line 358.
(/opt/rt3/lib/RT.pm:250)
[Tue Jan 18 12:56:24 2005] [crit]: Can’t call method “new” on an undefined value at ./rt-crontool line 113.
(/opt/rt3/lib/RT.pm:257)
[Tue Jan 18 13:01:18 2005] [crit]: Can’t call method “new” on an undefined value at ./rt-crontool line 113.
(/opt/rt3/lib/RT.pm:257)
[Tue Jan 18 13:01:43 2005] [crit]: Can’t call method “new” on an undefined value at ./rt-crontool line 113.
(/opt/rt3/lib/RT.pm:257)
[Tue Jan 18 13:06:36 2005] [crit]: Failed to load module RT::Action::SystemNotify. () at ./rt-crontool line 138.
(/opt/rt3/lib/RT.pm:257)
[Tue Jan 18 13:07:43 2005] [warning]: No transaction object handed to RT::Action::NotifyGroup=HASH(0x8e8c98c)
(/opt/rt3/lib/RT/Action/SendEmail.pm:201)
[Tue Jan 18 13:07:43 2005] [error]: error: unexpected end of header
(/opt/rt3/lib/RT/Template_Overlay.pm:341)
[Tue Jan 18 13:07:43 2005] [warning]: No transaction object handed to RT::Action::NotifyGroup=HASH(0x8e95728)
(/opt/rt3/lib/RT/Action/SendEmail.pm:201)
[Tue Jan 18 13:07:43 2005] [error]: error: unexpected end of header
(/opt/rt3/lib/RT/Template_Overlay.pm:341)

ALL-NEW Yahoo! Messenger - all new features - even more fun!

HI all,
Thanks all for the previous posting. I’ve been installed Ruslan’s Notify Group module which i downloaded from cpan and I’m running rt-crontool manually but I got the error message below yesterday in my rt log. please, can someone come to my rescue? I’m running the command with the following parameters.

./rt-crontool 30 * * * * --search RT::Search::ActiveTicketsInQueue --search-arg VSATFaults --condition RT::Condition::Overdue --action RT::Action::NotifyGroup --action-arg VSATFaultGroup --template-id 20

[Tue Jan 18 18:47:39 2005] [crit]: Can’t call method “Parse” on an undefined value at /opt/rt3/lib/RT/Action/SendEmail.pm line 210.
(/opt/rt3/lib/RT.pm:257)
[Tue Jan 18 18:48:13 2005] [warning]: No transaction object handed to RT::Action::NotifyGroup=HASH(0x8e8c6a4)
(/opt/rt3/lib/RT/Action/SendEmail.pm:201)
[Tue Jan 18 18:48:13 2005] [error]: error: unexpected end of header
(/opt/rt3/lib/RT/Template_Overlay.pm:341)
[Tue Jan 18 18:48:13 2005] [warning]: No transaction object handed to RT::Action::NotifyGroup=HASH(0x8eaddc8)
(/opt/rt3/lib/RT/Action/SendEmail.pm:201)

ALL-NEW Yahoo! Messenger - all new features - even more fun!