Hello!
We updated from otrs 3.3.8 to 4.0.11 and one strange started to happen: We have cron jobs that generat and email reports with otrs.GenerateStats.pl and they started to create tickes in the system each time they run.
For example one cron job looks like this:
# Open tickets with a developer as responsible, every weekday 8am
0 8 * * 1,2,3,4,5 /opt/otrs/bin/otrs.GenerateStats.pl -n 10016 -r <email> -s <system sender email> -m 'OTRS Developer Tickets' -f Excel >> /dev/null
This is a new behaviour in OTRS 4 that we did not see in OTRS 3.
It's like the behaviour of the ">> /dev/null" has changed. What am I missing?
[SOLVED] Updated to OTRS4: Cronjob reports generate ticket email to system
Moderator: crythias
-
- Znuny newbie
- Posts: 11
- Joined: 13 Aug 2013, 08:33
- Znuny Version: 3.2.9
- Real Name: Anderas Larsson
- Company: Consid AB
[SOLVED] Updated to OTRS4: Cronjob reports generate ticket email to system
Last edited by Lure79 on 24 Aug 2015, 11:05, edited 1 time in total.
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Updated to OTRS4: Cronjob reports generate ticket email to system
Either there is an error, and https://github.com/OTRS/otrs/blob/rel-4 ... _base.dist is creating the ticket (email sent locally) or the cron job for GenerateStats.pl -r <thisemail> is looping back to the system, creating a ticket.
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
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
-
- Znuny newbie
- Posts: 11
- Joined: 13 Aug 2013, 08:33
- Znuny Version: 3.2.9
- Real Name: Anderas Larsson
- Company: Consid AB
Re: [SOLVED] Updated to OTRS4: Cronjob reports generate ticket email to system
It seems GenerateStats.pl now reports status even if there is no problem. I'm not sure it did that before. I can't find any flag for generatestats.pl to make it "silent". When it run successfull it give the output: "otrs.GenerateStats.pl: creating data at /opt/otrs/bin/otrs.GenerateStats.pl line 350."
I worked around the issue by redirecting both the std output AND error output to /dev/null by modifying the end of the cron job: >> /dev/null 2>&1
It's not the solution I would like because errors can go unnoticed now but I don't have time to search for a better solution right now and just want the "spam" tickets to stop.
I guess it could also be a ubuntu/cron thing.
I worked around the issue by redirecting both the std output AND error output to /dev/null by modifying the end of the cron job: >> /dev/null 2>&1
It's not the solution I would like because errors can go unnoticed now but I don't have time to search for a better solution right now and just want the "spam" tickets to stop.
I guess it could also be a ubuntu/cron thing.