Post by Robert KehlOn Tuesday, March 16, 2004 4:50 AM
Post by L. Mark StoneThere are no bad entries in the logs. All of the other cron jobs work
fine, but the Junk queue never gets emptied.
What would you like to see next?
The exact entries from GenericAgent.pm and the active crontab, please.
Prefer it well-done, please. Thanks. ;)
OK, here's the log file excerpt and the pm file:
Mar 16 09:40:00 inside /USR/SBIN/CRON[21923]: (otrs) CMD
($HOME/bin/PostMasterPOP3.pl >> /dev/null)
Mar 16 09:40:00 inside /USR/SBIN/CRON[21925]: (otrs) CMD
($HOME/bin/GenericAgent.pl >> /dev/null)
Mar 16 09:40:28 inside OTRS-CGI-10[5100]:
[Notice][Kernel::System::Auth::DB::Auth] User: lmstone logged in
(REMOTE_ADDR: 192.168.15.225).
Mar 16 09:50:00 inside /USR/SBIN/CRON[22669]: (otrs) CMD
($HOME/bin/PostMasterPOP3.pl >> /dev/null)
Mar 16 09:59:00 inside /USR/SBIN/CRON[23278]: (root) CMD ( rm -f
/var/spool/cron/lastrun/cron.hourly)
Mar 16 10:00:00 inside /USR/SBIN/CRON[23317]: (otrs) CMD
($HOME/bin/PostMasterPOP3.pl >> /dev/null)
Mar 16 10:00:00 inside /USR/SBIN/CRON[23319]: (otrs) CMD
($HOME/bin/GenericAgent.pl >> /dev/null)
Mar 16 10:05:08 inside nagios: Auto-save of retention data completed
successfully.
Mar 16 10:10:00 inside /USR/SBIN/CRON[24047]: (otrs) CMD
($HOME/bin/PostMasterPOP3.pl >> /dev/null)
Mar 16 10:20:00 inside /USR/SBIN/CRON[24781]: (otrs) CMD
($HOME/bin/GenericAgent.pl >> /dev/null)
Mar 16 10:20:00 inside /USR/SBIN/CRON[24779]: (otrs) CMD
($HOME/bin/PostMasterPOP3.pl >> /dev/null)
Mar 16 10:30:00 inside /USR/SBIN/CRON[25488]: (otrs) CMD
($HOME/bin/PostMasterPOP3.pl >> /dev/null)
# --
# Kernel/Config/GenericAgent.pm - config file of generic agent
# Copyright (C) 2002-2004 Martin Edenhofer <martin+***@otrs.org>
# --
# $Id: GenericAgent.pm.dist,v 1.7 2004/02/12 00:55:01 martin Exp $
# --
# 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.7 $';
$VERSION =~ s/^\$.*:\W(.*)\W.+?$/$1/;
#
-----------------------------------------------------------------------
# config options
#
-----------------------------------------------------------------------
%Jobs = (
# --
# [name of job] -> send escalation notifications
# --
# 'send escalation notifications' => {
# Escalation => 1,
# # new ticket properties
# New => {
# Module =>
'Kernel::System::GenericAgent::NotifyAgentGroupOfCustomQueue',
# },
# },
# insert your jobs (see Kernel/Config/GenericAgent.pm.examples)
'delete' => {
# get all tickets with this properties
Queue => 'Junk',
States => ['new', 'open', 'closed'],
Locks => ['unlock'],
# new ticket properties (no option is required, use just the
options
# witch should be changed!)
New => {
# DELETE!
Delete => 1,
},
},
);
#
-----------------------------------------------------------------------
# end of config options
#
-----------------------------------------------------------------------
1;
--
______________________________________________________________
L. Mark Stone
President
Reliable Networks of Maine, LLC
477 Congress Street, 5th Floor
Portland, ME 04107
Tel: (207) 772-5678
Cell: (917) 597-2057
Email: ***@RNoME.com
Web: http://www.RNoME.com