You are not logged in.
Hello,
i configured the e-mail thing and i can send a test e-mail.
we use exchange 2003 and i added the address in relay.
in glpi i added contracts and configured end+notice.
in setup i configured "alarms on controls" to be sended to administrator (me) and a group of users.
now, when the contract expires, no e-mail is send...
When i make a new ticket, an e-mail is sent, it is only when a contract ends that i get no ticket...
why is this not working ??
help plz.
grtz,
Verus.
Last edited by verus (2007-06-07 12:54:37)
Offline
Please could you take care of it : http://www.glpi-project.org/forum/viewtopic.php?id=5651
It would help us
Thanks
JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au projet GLPI : Soutenir
Offline
i 'm sorry,
my linux server is a debian server.
glpi version:
GLPI 0.68.3 Copyright (C) 2003-2007 by the INDEPNET Development Team.
system information:
ca-zabbix2007:/etc/php4/apache2# uname -a
Linux ca-zabbix2007 2.6.18-3-686 #1 SMP Mon Dec 4 16:41:14 UTC 2006 i686 GNU/Linux
apache information:
[Thu Jun 07 12:58:56 2007] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Thu Jun 07 12:58:56 2007] [notice] mod_python: using mutex_directory /tmp
[Thu Jun 07 12:58:56 2007] [notice] Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4 PHP/4.4.4-8 mod_perl/2.0.2 Perl/v5.8.8 configured -- resuming normal operations
i also have in general setup the option:
Alarms on contracts: END + NOTICE
so, when i do a test mail, i get it.
when i make a new ticket, i also get a mail.
i also want to receive a mail when a contract is at the end so.
in administration ==> setup ==> e-mail follow up ==> alarm options ==> alarm on contracts ==> there i have all users and an e-mail group. (the same users when making new ticket).
in contracts i have a contract i test with.
begin date: 29-7-2006
duration 12 month ==> 29-7-2007
notice 1 month ==> 29-6-2007
after that, i change time on linux box to:
ca-zabbix2007:/var/log/apache2# date 06282359
Thu Jun 28 23:59:00 CEST 2007
when i then login in glpi and i look in global view i see
contracts where notice begins in less than 7 days: 1 ==> my contract
when the time is:
ca-zabbix2007:/var/log/apache2# date
Fri Jun 29 00:00:35 CEST 2007
i check global view again and i see:
contracts where notice begins in less than 7 days: 0
so, my test should be rigt and i should get an e-mail, right ?
but i don't get an e-mail... and i don't know why if all the rest works...
Last edited by verus (2007-06-07 13:11:28)
Offline
cron job is done each days. So to force sending alerts you need to delete lock file for the cron job in files/_cron
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
i have in /var/www/glpi/files/_cron/
several files, one of them is contract.lock
If i remove that file, nothing happens... so problem is still the same
are there no logfiles that glpi makes where i can see if it is trying to send something ?
Last edited by verus (2007-06-13 09:09:02)
Offline
is there really nobody that can help with this ?
developers please ?
thnx,
Verus.
Last edited by verus (2007-06-15 10:11:07)
Offline
I think your test where wrong.
GLPI doesn't send all his mails or doesn't do all his cron action at 00h
There are a lot of cron action in GLPI and they are done by paquet during the day
JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au projet GLPI : Soutenir
Offline
hello,
How then can i test it ?
an earlier message from a developer here told me to delete the lock files if i want to test it ?
"cron job is done each days. So to force sending alerts you need to delete lock file for the cron job in files/_cron"
Nothing happens when i delete those lock files.
And if the tests are wrong, why is Global View not showing the contracts anymore in:
"Contracts where notice begins in less than 7 days" ?
thnx.
Verus.
Last edited by verus (2007-06-18 09:17:44)
Offline
hello,
We also have the same problem.
It is only when a contract ends that i get no ticket.
I think that the cause of the trouble is in the thing that "contract.lock" is not
made again.
I succeeded when I stepped on the following procedures.
1.The end time limit is set at a past date and the contract is made.
#to send mail at once.
2.delete files/_cron/contract.lock
3.access GLPI top page by a browser.(IE or Firefox)
#After the access, I confirmed the thing that contract.lock is made again.
##I did not succeed though I used "lynx" and "wget" to automate the restructuring of the file.
4.Mail was delivered. (Expired contrat: ...)
I have the question based on these.
--
I. Why do not you think that contract.lock is made?
II. What is the trigger to make contract.lock?
III. Can I do a deletion and automatic generation of contract.lock by using cron etc.
at the specified time?
#to send mail at the specified time.
#to think about the day when GLPI is not used
Please teach me.
--
{
Linux myhost.com 2.6.9-42.0.10.EL #1 Tue Feb 27 09:24:42 EST 2007 i686 i686 i386 GNU/Linux
Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.8e DAV/2 PHP/5.2.1 mod_perl/2.0.3 Perl/v5.8.5 configured -- resuming normal operations
} on VM-ware Player
#Because an internal clock loses fast, I am adjusting it by using ntp.
Last edited by jjroot (2007-07-07 08:13:10)
Offline
Hi
I solved II. and III. by myself.
make scriptfile named unlock-glpi-contract
in unlock-glpi-contract
{
rm -f /www-htdocs/glpi/files/_cron/contract.lock
wget http://127.0.0.1/glpi/front/cron.php --delete-after
}
Example,
To receive contract-check-mail at nine o'clock every day, it sets it in cron as follows.
0 9 * * * /usr/bin/unlock-glpi-contract
Alert mail can be received at the time specified by this method.
Though no do be known whether this is a correct method either.
#I do not understand the cause for which contract.lock is not made again
automatically still.
Thank you.
Offline