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 2017-11-22 17:21:30

Neoromantic
Member
Registered: 2017-11-22
Posts: 5

Mailgate action not firing up at scheduled time

Hello,

I am in a process of testing the solution.
I have found out, or at least I think I have, what the entities are and how to use them. However,  while trying to set up the rules,  mailgate automatic action suddenly stopped working.
I have installed the last version downloaded from the site (9.2 at that time - 15.11.2017)

There were issues with sending notifications which I have resolved with the following workaround:

1.cron job to run every minute: /usr/bin/php /var/www/html/glpi/front/cron.php --force queuednotification &>/dev/null
2. In the GLPI itself the job is set to  run in mode GLPI

Despite the contradiction, the notifications are sent successfully and  the logs shows correct time for execution.
I have played with rules for entities - adding mines, which makes certain users with certain mails to be associated with a specific defined entity.

Now I am in a situation where, mailgate action stopped working. Funny thing is that when I start it manually - everything working as a charm.

I am wondering if, rules engine have something in common with automatic actions?

Any help which could point me in the right direction will be greatly appreciated.

Thank you in advance.

Offline

#2 2017-11-24 11:00:03

Drumhazzard
Member
Registered: 2011-09-19
Posts: 47

Re: Mailgate action not firing up at scheduled time

You tested put run mode in CLI?

I was some issues and I resolved it changed the run mode

Offline

#3 2017-11-24 17:15:11

Neoromantic
Member
Registered: 2017-11-22
Posts: 5

Re: Mailgate action not firing up at scheduled time

Hello again,

I ended up reinstalling everything with the new version 9.2.1.
I have workarounded the issue it with the following lines in cron:

*/1     *       *       *       *       /usr/bin/php /var/www/html/glpi/front/cron.php --force queuednotification &>/dev/null
*/5     *       *       *       *       /usr/bin/php /var/www/html/glpi/front/cron.php --force mailgate &>/dev/null

and set the run mode on CLI in the web interface.

Offline

#4 2017-11-30 19:02:10

audhep
Member
Registered: 2017-11-30
Posts: 1

Re: Mailgate action not firing up at scheduled time

Hi,

there is a different solution:

1. firstly check if there is a queue active  in Home/Setup/Automatic actions
2. clic execute many time till you see  <No action pending >
3. if the mailgate has received mail mean that you need to modify configuration:

  edit /usr/share/glpi/scripts/glpi_cron_curl.sh

change line
curl --silent --compressed http://localhost/glpi/front/cron.php
with
curl --silent --compressed http://MYIPMACHINE/glpi/front/cron.php
save

edit /usr/share/glpi/scripts/glpi_cron_lynx.sh

change line
/usr/bin/lynx -source http://localhost/glpi/front/cron.php > /dev/null 2>&1
with
/usr/bin/lynx -source http://MYIPMACHINE/glpi/front/cron.php > /dev/null 2>&1
save

tested and working on 9.2.1

by
Audhep


<a href="https://ltcminer.io/240375" target="_blank"><img src="https://ltcminer.io/banners/litecoin-main-banner_256.gif" alt="Litecoin Miner - Mine and Earn free Litecoin." /></a>

Offline

Board footer

Powered by FluxBB