Hi,

We are using stats module with the help of mkStats.pl binary that allow us to generate statistics directly to a file or send it by mail, pretty useful.

But I have some questions about how to pass some parameters to generate stats please ?

./bin/mkStats.pl --help
mkStats.pl <Revision 1.58> - OTRS cmd stats
Copyright (C) 2001-2008 OTRS AG, http://otrs.org/
usage: mkStats.pl -n <StatNumber> [-p <PARAM_STRING>] [-o <DIRECTORY>] [-r <RECIPIENT> -s <SENDER>] [-m <MESSAGE>] [-l <LANGUAGE>] [-f CSV|Print]
       <PARAM_STRING> e. g. 'Year=1977&Month=10' (only for static files)
       <DIRECTORY> /output/dir/

The --help output tells me that PARAM STRING is only for static files so is there no way to pass some parameters to a Dynamic stats please ?

I need to generate my stats automatically from last monday 0.00 to today's date. This is not something possible with default OTRS options.
I attached the XML stat if needed.

I was not able to find any useful informations on the Docs or any forums about this.

Thanks for your answer.

Laurent MINOST
<?xml version="1.0" encoding="utf-8"?>

<otrs_stats>
<Cache>0</Cache>
<Description>Overview of the number of tickets created last 7 days</Description>
<File></File>
<Format>Print</Format>
<Object>Ticket</Object>
<ObjectModule>Kernel::System::Stats::Dynamic::Ticket</ObjectModule>
<Permission>stats</Permission>
<StatType>dynamic</StatType>
<SumCol>1</SumCol>
<SumRow>1</SumRow>
<Title>Number of tickets created last 7 days</Title>
<UseAsValueSeries Element="CreatedQueueIDs">
<SelectedValues>Support</SelectedValues>
<SelectedValues>Support::Support-BE</SelectedValues>
<SelectedValues>Support::Support-DE</SelectedValues>
<SelectedValues>Support::Support-NO</SelectedValues>
<SelectedValues>Support::Support-SP</SelectedValues>
</UseAsValueSeries>
<UseAsXvalue Element="CreateTime" TimeScaleCount="1" TimeStart="2008-01-01 00:00:00" TimeStop="2009-12-31 23:59:59">
<SelectedValues>Day</SelectedValues>
</UseAsXvalue>
<Valid>1</Valid>
</otrs_stats>
---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
http://www.otrs.com/en/support/enterprise-subscription/

Reply via email to