
Thanks Robert
But now the execute /otrs/Kernel/bin/GenericAgent.pl i see this messages
root@estacion bin]# perl GenericAgent.pl
syntax error at /opt/otrs/Kernel/Config/GenericAgent.pm line 37, near "New"
Compilation failed in require at GenericAgent.pl line 52.
BEGIN failed--compilation aborted at GenericAgent.pl line 52.
and even i see the tickets
i hope not be intense
Mensaje citado por Robert Kehl
On Thursday, January 22, 2004 9:00 PM Leonardo Amezquita
wrote: I copy the section of "delete Tickets" of the page that your me you sent. But can't to know that it works.
i hope that can to help me
Ok, here we go step by step:
1) Create a queue named "delete" (if you haven't done so already).
2) Create and/or edit /opt/otrs/Kernel/Config/GenericAgent.pm to look like this:
# -- # Kernel/Config/GenericAgent.pm - config file of generic agent # Copyright (C) 2002-2003 Martin Edenhofer
# -- # This software comes with ABSOLUTELY NO WARRANTY. For details, see # the enclosed file COPYING for license information (GPL). If you # did not receive this file, see http://www.gnu.org/licenses/gpl.txt. # -- package Kernel::Config::GenericAgent;
use strict; use vars qw($VERSION @ISA @EXPORT %Jobs); require Exporter; @ISA = qw(Exporter); @EXPORT = qw(%Jobs);
$VERSION = '$Revision: 1.4 $'; $VERSION =~ s/^\$.*:\W(.*)\W.+?$/$1/;
# ---------------------------------------------------------------------- - # config options # ---------------------------------------------------------------------- - %Jobs = ( # -- # [name of job] -> close and delete all tickets in queue delete # -- 'delete' => { # get all tickets with this properties Queue => 'delete', States => ['new', 'open'], Locks => ['unlock'], # new ticket properties (no option is required, use just the options # which should be changed!) New => { # DELETE! Delete => 1, }, }, );
# ---------------------------------------------------------------------- - # end of config options # ---------------------------------------------------------------------- - 1;
3) Now execute the Generic Agent:
/opt/otrs/bin/GenericAgent.pl
It will close and delete all new, open and unlocked tickets.
4) Refer to the documentation on how to set up the cron jobs to have the GA being executed at regularly intervals: http://doc.otrs.org/1.1/html/cronjob.html The GA is nothing more than: */20 * * * * $HOME/bin/GenericAgent.pl >> /dev/null It's included in the default cronjobs: http://doc.otrs.org/1.1/html/cronjob-default-cronjobs.html#AEN833
hth,
Robert Kehl
-- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388
_______________________________________________ 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 Support oder Consulting für Ihr OTRS System? => http://www.otrs.de/