Sovled: create statistics regularly

Moderator: crythias

Post Reply
skilled
Znuny newbie
Posts: 69
Joined: 11 Apr 2018, 13:53
Znuny Version: 6.0.16

Sovled: create statistics regularly

Post by skilled »

Hello all,
OTRS : 6.0.16
I want to create statistics(list) regularly for one queue, but it should be created and sent every Monday automatically to the specified email.
the goal of this point:
to monitor the tickets of this queue from one employee

How I could do that? or could I that in OTRS?

Thanks
Last edited by skilled on 09 May 2019, 09:21, edited 1 time in total.
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: create statistics regularly

Post by root »

Hi,

IUse Cronjobs and otrs.Console.pl for generating and send stats.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
skilled
Znuny newbie
Posts: 69
Joined: 11 Apr 2018, 13:53
Znuny Version: 6.0.16

Re: create statistics regularly

Post by skilled »

root wrote: 08 May 2019, 12:18 Hi,

IUse Cronjobs and otrs.Console.pl for generating and send stats.

- Roy
Hi Roy,

could you please explain more or could you give an example for this task?

Thanks
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: create statistics regularly

Post by root »

Hi,

Just run bin/otrs.Console.pl Maint::Stats::Generate and see the available options.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
skilled
Znuny newbie
Posts: 69
Joined: 11 Apr 2018, 13:53
Znuny Version: 6.0.16

Re: create statistics regularly

Post by skilled »

Thanks Roy.

i could did this task with cron job as you said:

shell> crontab -e
15 19 * * 2 $HOME/bin/otrs.Console.pl Maint::Stats::Generate --number 10036 --target-filname"Weekly Report" --format Print --mail-recipient username@mail.com --mail-body"This is weekly report"

it should send a report on 19:15 o'clock every Tuesday with name Weekly Report
Post Reply