Two errors in System Log and Generic Agent issues

Moderator: crythias

Post Reply
gofster610
Znuny newbie
Posts: 5
Joined: 19 May 2010, 16:39
Znuny Version: 2.4.7

Two errors in System Log and Generic Agent issues

Post by gofster610 »

I've been getting these errors in my system log and I'm not sure why. The first is:

Wed May 19 07:58:28 2010 error OTRS-CGI-10 No UserLogin found for '41'! - I had a user with that ID number in the Mysql database, but removed them. I have removed other users, but I don't get error messages about them.

Wed May 19 07:58:28 2010 error OTRS-CGI-10 No such SLAID (6)! - I actually get multiples of these with different numbers, 7, 48, 53, 66 - I have no clue why I am getting these. They just started to pop up.

Also, I'm having an issue with Generic Agent where it runs my jobs twice. Here's an example:

Wed May 19 07:20:02 2010 notice OTRS-GenericAgent-10 Run GenericAgent Job 'unlock tickets' from config file.
Wed May 19 07:20:02 2010 notice OTRS-GenericAgent-10 Run GenericAgent Job 'send reminder emails to agents' from config file.
Wed May 19 07:20:02 2010 notice OTRS-GenericAgent-10 Run GenericAgent Job 'default agent' from config file.
Wed May 19 07:20:02 2010 notice OTRS-GenericAgent-10 Run GenericAgent Job 'unlock tickets' from config file.
Wed May 19 07:20:02 2010 notice OTRS-GenericAgent-10 Run GenericAgent Job 'send reminder emails to agents' from config file.
Wed May 19 07:20:02 2010 notice OTRS-GenericAgent-10 Run GenericAgent Job 'default agent' from config file.
Wed May 19 07:10:02 2010 notice OTRS-PMAccount-10 Can't create PID PostMasterMailbox, because it's already running (otrs.njrc.org/9197)!

Here's what the Generic Agent file looks like:

# --
# Kernel/Config/GenericAgent.pm - config file of generic agent
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: GenericAgent.pm.dist,v 1.13 2009/02/16 12:00:11 tr Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

package Kernel::Config::GenericAgent;

use strict;
use warnings;

use vars qw($VERSION @ISA @EXPORT %Jobs);
require Exporter;
@ISA = qw(Exporter);
@EXPORT = qw(%Jobs);

use vars qw(@ISA $VERSION);
$VERSION = qw($Revision: 1.13 $)[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)


# --
# [name of job] -> send escalation notifications
# --
#'send escalation notifications' => {
#Escalation => 1,
# new ticket properties
#New => {
# notify all agents who selected the queue in "my queues/custom queues"
# Module => 'Kernel::System::GenericAgent::NotifyAgentGroupOfCustomQueue',
# notify all agents who can access the ticket with rw permissions
#Module => 'Kernel::System::GenericAgent::NotifyAgentGroupWithWritePermission',
#},
#},

# [ Unlock Tickets ] -> make sure all tickets are set to unlock
'unlock tickets' => {
Locks => ['lock'],
New => {
Locks => ['unlock'],
},
},

# [ Default Agent ] -> set all new tickets to the default agent
'default agent' => {
States => ['new'],
New => {
Owner => 'root@localhost',
},
},
# [ Escalation Test ] -> escalate all tickets
# 'Escalation Test' => {
#Escalation => 1,
#New => {
#Note =>{
#From => 'Escalation Processing',
#Subject => 'Escalation Notification',
#Body => 'Ticket is being escalated due to a lack of response.',
#ArticleType => 'note-report', # note-internal|note-external|note-report
#},
#}, },





# --
# [name of job] -> send reminder emails to agents
# --
'send reminder emails to agents' => {
# get all tickets with these properties
States => ['pending reminder'],
TicketPendingTimeOlderMinutes => 10,
# new ticket properties (no option is required,
# use just the options which should be changed!)
New => {
# if you want to add a Note
Note => {
From => 'Reminder Admin',
Subject => 'Reminder Notification',
Body => 'The reminder time of this ticket has been reached!',
},
},
},
# --



);
# -----------------------------------------------------------------------
# end of config options
# -----------------------------------------------------------------------
1;

I'm not sure why those are running twice? Any input would be greatly appreciated.
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Two errors in System Log and Generic Agent issues

Post by crythias »

I think I read somewhere that you shouldn't ever delete anyone, just make them invalid, because of ticket history.

The userid 41 is likely someone trying to log on to your system. Don't know for sure. Could also be related to a new ticket request.

SLAID might be Service level agreement indexIDs, and you might wish to check for them.

For your run twice issue, you should check your crontabs (in Linux) to make sure you're not running them under both root and otrs:

Code: Select all

crontab -l -u root
crontab -l -u otrs
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Post Reply