You are not logged in.
Pages: 1
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
define mailgates
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
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
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
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
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
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
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
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
when i try the url on the command line, no mail tickets was detected.
i turn on the log and give feedback...
Offline
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
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
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
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
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
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
times are in second : 600 : 10 mns
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
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
try to know. Meaning are ok.
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
Pages: 1