Stats CronJob

Moderator: crythias

Post Reply
qbal22
Znuny newbie
Posts: 1
Joined: 13 Jan 2018, 23:09
Znuny Version: 6.0.3

Stats CronJob

Post by qbal22 »

I'm trying to set up new cron jon for statistic (OTRS 6.0.3 Centos 7.0)


my ZZZAAuto.pm:

Code: Select all

$Self->{'Daemon::SchedulerCronTaskManager::Task'}->{'Custom1'} =  {
  'Function' => 'Execute',
  'MaximumParallelInstances' => '1',
  'Module' => 'Kernel::System::Console::Command::Maint::Stats::Generate',
  'Params' => [
    '--number 10014',
    '--format Print',
    '--mail-sender \'my@domain.com>\'',
    '--mail-recipient my@domain.com',
    '--mail-body \'Mail Body\''
  ],
  'Schedule' => '18 00 * * *',
  'TaskName' => 'Raport'
};
and still get error:

There was an error executing Execute() in Kernel::System::Console::Command::Maint::Stats::Generate: Error: please provide option '--number'.

What am I doing wrong? Any ideas?
You do not have the required permissions to view the files attached to this post.
Post Reply