GenericAgent CMD does not trigger/execute

Moderator: crythias

Post Reply
mohnewald
Znuny newbie
Posts: 10
Joined: 31 Jan 2023, 09:23
Znuny Version: 6.2.8
Real Name: Michael Liebherr

GenericAgent CMD does not trigger/execute

Post by mohnewald »

Hello,

i have a Postfilter which sets:
Kernel::System::PostMaster::Filter::MatchDBSource Filter: '99999_R2D2_MK_Portierung' Set param 'X-OTRS-DynamicField-r2d2mktrigger' to '1'

Which works:
Kernel::System::PostMaster::NewTicket DynamicField update via 'X-OTRS-DynamicField-r2d2mktrigger'! Value: 1.
Kernel::System::PostMaster::NewTicket X-OTRS-DynamicField-r2d2mktrigger: 1

To run my script i have a GenericAgent with the Event:
Type: Ticket
Event: TicketDynamicFieldUpdate_r2d2mktrigger

This used to work and something broke since the CMD does not get executed.

If i run the GenericAgent Job manually fromt the WebGUI the script gets Executed fine.
=> therefore i dont think i have a script/permission problem.

Summary:
- the Postfilter works
- the GenericAgent Jobs works

it just does not get triggered for some reason.

Any idea where to look/debug why Event: TicketDynamicFieldUpdate_r2d2mktrigger is not working?
No errors in AdminLog.

Cheers,
Mario
root
Administrator
Posts: 3963
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: GenericAgent CMD does not trigger/execute

Post by root »

Hi,

At least there is a difference between running the GenericAgent from the UI or triggering via an incoming email.
Most setups I know use a different user to run the web server (apache, www-data) and another for the daemon. Please check if this user is also able to
run the command.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Post Reply