Generic Agent nur manuel

Hilfe zu Znuny Problemen aller Art
Locked
philipp_s
Znuny newbie
Posts: 24
Joined: 10 Mar 2011, 12:53
Znuny Version: 3.0.3

Generic Agent nur manuel

Post by philipp_s »

Ich habe im Generic einen Job erstellt, der 10 minütig ausgeführt werden soll.
Manuell funktioniert er immer top, aber das automatische triggern halt nicht.
ich habe etwas gelesen, dass man die cron dateien unbennen muss. bin mir dort aber nicht sicher.

kann mir jemend helfen?

VG
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Generic Agent nur manuel

Post by Wolfgangf »

ist der Job auf "is Valid: Yes" gesetzt?

laufen Deine OTRS cronjobs?

was bekommst Du bei

Code: Select all

crontab -l -u otrs | grep  Generic
so etwas wie das?

Code: Select all

# cron/generic_agent - GenericAgent.pl cron of the OTRS
*/20 * * * *    $HOME/bin/GenericAgent.pl >> /dev/null
# example to execute GenericAgent.pl on 23:00 with
# Kernel::Config::GenericAgentMove job file
#0 23 * * * $HOME/bin/GenericAgent.pl -c "Kernel::Config::GenericAgentMove" >> /dev/null
# cron/generic_agent - GenericAgent.pl cron of the OTRS
*/10 * * * *    $HOME/bin/GenericAgent.pl -c db >> /dev/null
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
philipp_s
Znuny newbie
Posts: 24
Joined: 10 Mar 2011, 12:53
Znuny Version: 3.0.3

Re: Generic Agent nur manuel

Post by philipp_s »

verdammt, ich habe gerde nicht die rechte dafür.
ich brauche executerechte auf die Genericagent.pl oder?
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Generic Agent nur manuel

Post by Wolfgangf »

Du nicht, der OTRS user
unter diesem User laufen ja auch die cron-jobs

unter /opt/otrs/var/cron # findest du die einzelnen Jobs
schau Dir mal den Inhalt der generic_agent agent an
sollte so (oder ähnlich) aussehen

Code: Select all

# --
# cron/generic_agent - GenericAgent.pl cron of the OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: generic_agent.dist,v 1.12 2009/02/16 20:53:10 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.
# --

# start generic agent every 20 minutes
*/20 * * * *    $HOME/bin/GenericAgent.pl >> /dev/null

# example to execute GenericAgent.pl on 23:00 with
# Kernel::Config::GenericAgentMove job file
#0 23 * * * $HOME/bin/GenericAgent.pl -c "Kernel::Config::GenericAgentMove" >> /dev/null
wenn nicht: entsprechend abändern und die OTRS cron jobs neu starten (unter SUSE: rcotrs restart)
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
philipp_s
Znuny newbie
Posts: 24
Joined: 10 Mar 2011, 12:53
Znuny Version: 3.0.3

Re: Generic Agent nur manuel

Post by philipp_s »

hm ich habe halt die ganze zeit das problem, ich komm im moment nur über putty(ssh) an die daten ran und habe bei den meisten auch keine -x rechte
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Generic Agent nur manuel

Post by Wolfgangf »

das sollte kein Problem sein
als welche User kommst du per Putty aufs system?
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
philipp_s
Znuny newbie
Posts: 24
Joined: 10 Mar 2011, 12:53
Znuny Version: 3.0.3

Re: Generic Agent nur manuel

Post by philipp_s »

da bin ich mir ni sicher, weil mir ein kollege per mail geschickt hat.
der uder heißt otrs, aber das wird nix aussagen.
philipp_s
Znuny newbie
Posts: 24
Joined: 10 Mar 2011, 12:53
Znuny Version: 3.0.3

Re: Generic Agent nur manuel

Post by philipp_s »

so ich konnte es jetzt erst einmal öffnen
philipp_s
Znuny newbie
Posts: 24
Joined: 10 Mar 2011, 12:53
Znuny Version: 3.0.3

Re: Generic Agent nur manuel

Post by philipp_s »

ich habe in die generic_agent in cron herein geschaut und sie sieht so aus wie deine
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Generic Agent nur manuel

Post by Wolfgangf »

philipp_s wrote:da bin ich mir ni sicher, weil mir ein kollege per mail geschickt hat.
der uder heißt otrs, aber das wird nix aussagen.
das ist genau der richtige user

dann probier doch einfach mal

Code: Select all

rcotrs restart
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
philipp_s
Znuny newbie
Posts: 24
Joined: 10 Mar 2011, 12:53
Znuny Version: 3.0.3

Re: Generic Agent nur manuel

Post by philipp_s »

es kommt das gleich, wie bei der ersten abfrage

Code: Select all

If 'rcotrs' is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf rcotrs
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Generic Agent nur manuel

Post by Wolfgangf »

dann probieren wir folgendes

Code: Select all

crontab -l | grep Generic
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
philipp_s
Znuny newbie
Posts: 24
Joined: 10 Mar 2011, 12:53
Znuny Version: 3.0.3

Re: Generic Agent nur manuel

Post by philipp_s »

jetzt kommt

Code: Select all

no crontab for otrs
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Generic Agent nur manuel

Post by Wolfgangf »

und hier haben wir das Problem!
Sag Deinem Sysadmin er soll

Code: Select all

rcotrs restart
ausführen und dann laufen die Cronjobs
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
philipp_s
Znuny newbie
Posts: 24
Joined: 10 Mar 2011, 12:53
Znuny Version: 3.0.3

Re: Generic Agent nur manuel

Post by philipp_s »

vielen dank!
wunde mich trotzdem, dass ich es nicht selber ausführen kann.
philipp_s
Znuny newbie
Posts: 24
Joined: 10 Mar 2011, 12:53
Znuny Version: 3.0.3

Re: Generic Agent nur manuel

Post by philipp_s »

das ist doch aber eine skript, welches dort ausgeführt wird.
kann ich da nicht einfach die executerechte ändern, dann müsst es doch auch gehen
Locked