You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2012-08-03 11:38:56

paul_mrusek
Member
Registered: 2012-08-03
Posts: 1

Setup Automatic actions like mailgate

Hello,

How can I in glpi 0.83.4 (ubuntu 11.04) under Setup->Automatic actions setup the job mailgate to run every 5 Minutes without user action.

I test mailgate

Run frequency 5 Minute
Status: Scheduled
Run mode: CLI
Run period 0->24

and the same with Run mode glpi

Sometime glpi execute the action but sometime glpi make nothing and if the run frequency is 1 Minute glpi run after 15 Minutes.

Where is a Workaround/Tutorial to setup glpi actions to run automatic.

thanks
paul

Offline

#2 2012-08-07 08:51:37

tomolimo
Member
From: Grenoble, France
Registered: 2009-05-12
Posts: 515

Re: Setup Automatic actions like mailgate

Did you setup a cron on your server?
If you use the CLI (which I advise), then you have to run a cron job (or a scheduled task) that will do the execution of all the CLI actions.
The 'cron.php' script to run in the scheduled task is in GLPI/FRONT/.
regards,
Tomolimo


GLPI 9.2.4 - PHP 7.2.13 x64 / ProcessMaker 3.3.0-community-RE-1.7 - PHP 7.1.24 x64 / Windows 2012 x64 / IIS 8.5 / MySQL 5.7.17 x64
Worldwide: >12316 PC, >9400 users (16 languages, >11 timezones), >360k tickets, >3600 entities, >4200 groups
Raynet is ARaymond (http://www.araymond.com) IT service management

Offline

#3 2012-08-09 20:17:38

pinnergy75633
Member
Registered: 2012-05-31
Posts: 12

Re: Setup Automatic actions like mailgate

tomolimo wrote:

Did you setup a cron on your server?
If you use the CLI (which I advise), then you have to run a cron job (or a scheduled task) that will do the execution of all the CLI actions.
The 'cron.php' script to run in the scheduled task is in GLPI/FRONT/.
regards,
Tomolimo


Can you please explain a little more on how to do this...I would really appreciate it.

I did the crontab -e and added this line to run every minute, but it still doesn't work:

*/1 * * * * /usr/bin/php /var/www/myhostname/front/cron.php

Offline

Board footer

Powered by FluxBB