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 2008-01-25 16:50:50

FRAD
Member
Registered: 2008-01-24
Posts: 59

Get mail tickets automatically?

Hi,

how can i check the mail box for new tickets automatically?

Which is the correct call? What must i configure? How can i enable the debug log?

Thanks for your help!
Bye

Last edited by FRAD (2008-01-25 18:07:41)

Offline

#2 2008-01-25 18:20:18

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Get mail tickets automatically?

define mailgates


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#3 2008-01-25 19:58:06

FRAD
Member
Registered: 2008-01-24
Posts: 59

Re: Get mail tickets automatically?

Hi,

i have already defined the mail settings. i can get mail tickets manually. Ther is no problem.

But how can i get the mail tickets automatically?

Offline

#4 2008-01-25 20:02:12

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Get mail tickets automatically?

it will be done automatically using the pseudo cron system of GLPI.


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#5 2008-01-25 20:49:29

JMD
GLPI - Lead
Registered: 2004-09-13
Posts: 9,180
Website

Re: Get mail tickets automatically?

Every 10 minutes if there is some activities on GLPI , GLPI would get mails automatically.

To be sure that GLPI doet it anyway  you could also  using cron job


JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au  projet GLPI   : Soutenir

Offline

#6 2008-01-25 23:42:14

FRAD
Member
Registered: 2008-01-24
Posts: 59

Re: Get mail tickets automatically?

Hi,

can you give me more details please.

I use crontab to backup my databases... How can i insert the GLPI-Cron? What do you mean between pseudo cron?

What must i do?

How can i change the 10 minutes-refresh?

Last edited by FRAD (2008-01-25 23:53:13)

Offline

#7 2008-01-26 00:04:24

JMD
GLPI - Lead
Registered: 2004-09-13
Posts: 9,180
Website

Re: Get mail tickets automatically?

1- The pseudo cron is the cron of GLPI, it need activity on GLPI to function.

2- http://glpi-project.org/forum/viewtopic.php?id=8118

3 - In editing code you could


JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au  projet GLPI   : Soutenir

Offline

#8 2008-01-26 00:08:08

FRAD
Member
Registered: 2008-01-24
Posts: 59

Re: Get mail tickets automatically?

ok, when i have no activity in glpi, i want to use the linux cron to import mail tickets.

This is possible  - correct?

I have insert this in my crontab:
05 * * * * wget -O - http://intra/glpi/front/cron.php >/dev/null 2>&1

But nothing happens. Must i configure a inc file?

What do you mean about "editing code"?

Thanks for your help!.. Did you received my mail (donation and other things)?

Offline

#9 2008-01-26 00:30:25

JMD
GLPI - Lead
Registered: 2004-09-13
Posts: 9,180
Website

Re: Get mail tickets automatically?

1) Yes it should be correct

2) If nothing happens (but i repeat mailgate collect every 10 minutes)  :

-  be sure your url is correct (try the wget in command line)

- Activate in configuration GLPI  the log trace for sql, cron etc...  and have a look to /files/_cronlog  and _log/cron/

You could see if something happen or not

You should se something link that :

Collect mails from {example.example.net/imap/novalidate-cert} for entity 0


3) Editing code  :  edit the cron.class.php to modify the 10 minutes refresh collecting

4) Yes i receive your mail, i will reply you as soon as possible


JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au  projet GLPI   : Soutenir

Offline

#10 2008-01-26 00:32:15

FRAD
Member
Registered: 2008-01-24
Posts: 59

Re: Get mail tickets automatically?

when i try the url on the command line, no mail tickets was detected.

i turn on the log and give feedback...

Offline

#11 2008-01-26 01:16:18

FRAD
Member
Registered: 2008-01-24
Posts: 59

Re: Get mail tickets automatically?

i have turned on the log for cron.

Nothing happens, when i call this:

wget -O - http://intra/glpi/front/cron.php >/dev/null 2>&1

Alle files are 0KB big...

Here the cron log:

26-01-2008 00:14
Launch plugin_alerting_reservations


Any idea?

Last edited by FRAD (2008-01-26 01:17:35)

Offline

#12 2008-01-28 10:46:56

FRAD
Member
Registered: 2008-01-24
Posts: 59

Re: Get mail tickets automatically?

When i start this command

wget -O - http://intra/glpi/front/cron.php >/dev/null 2>&1

i get the following log entries (cron):

28-01-2008 09:44
Launch logs
28-01-2008 09:44
Cleaning log events passed from more than 30 days


Not mail tickets was imported...

Offline

#13 2008-01-28 12:28:04

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Get mail tickets automatically?

you launch it only once ?
you need to launch it several times to launch all cron jobs


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#14 2008-01-28 12:29:59

FRAD
Member
Registered: 2008-01-24
Posts: 59

Re: Get mail tickets automatically?

yes, i launch it only once. How many times must it be started?

How can lauch only the "mail-cron". I want only to import mail-tickets.

Is there a directly call possibile?

Last edited by FRAD (2008-01-28 12:31:04)

Offline

#15 2008-01-28 12:37:02

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Get mail tickets automatically?

no directly call is possible
but launch it every minute and you will be sure ti import mails.
You may also modify delay of each cron job modifying cron.class.php


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#16 2008-01-28 12:40:12

FRAD
Member
Registered: 2008-01-24
Posts: 59

Re: Get mail tickets automatically?

Hi,

is this are correct?

                        $this->taches["ocsng"]=300;
            $this->taches["mailgate"]=600;

I want to check every 3 minutes for mail-tickets. What must i changed here?

Thanks for your help!!

Offline

#17 2008-01-28 12:54:07

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Get mail tickets automatically?

times are in second : 600 : 10 mns


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#18 2008-01-28 12:54:15

JMD
GLPI - Lead
Registered: 2004-09-13
Posts: 9,180
Website

Re: Get mail tickets automatically?

Change like this

$this->taches["mailgate"]=180;


JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au  projet GLPI   : Soutenir

Offline

#19 2008-01-28 13:02:51

FRAD
Member
Registered: 2008-01-24
Posts: 59

Re: Get mail tickets automatically?

ok,

i have create a shell script:

GLPICRON.SH

wget -O - http://intra/glpi/front/cron.php >/dev/null 2>&1
wget -O - http://intra/glpi/front/cron.php >/dev/null 2>&1
wget -O - http://intra/glpi/front/cron.php >/dev/null 2>&1
wget -O - http://intra/glpi/front/cron.php >/dev/null 2>&1
wget -O - http://intra/glpi/front/cron.php >/dev/null 2>&1


Here my crontab entry:

3 * * * * /srv/www/htdocs/intra/glpi/glpicron.sh

Is this correct so?

Offline

#20 2008-01-28 13:36:32

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Get mail tickets automatically?

try to know. Meaning are ok.


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

Board footer

Powered by FluxBB