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 2024-01-22 12:46:03

Odisefs
Member
Registered: 2022-10-18
Posts: 7

Automatic actions (Notifications)

My queued Notifications are not being sent either via GLPI mode or CLI mode.
Every time I have to use the Execute button .

My time interval is 5 minutes for the CLI Scheduled job and 1 minute for the GLPI mode Automatic action
My system is IIS10 (windows server) and my GLPI version is 10.0.11
My cmd line used in cli mode is

c:\php\php.exe -f "d:\inetpub\wwwroot\glpi10.0.11\front\cron.php --force queuednotification"

in my automatic actions que the service is scheduled but the last run is stuck on the last time I pressed manually the Execute button.

Any thoughts??

Thanks

Offline

#2 2024-01-23 13:24:58

Jeckt
Member
Registered: 2023-09-22
Posts: 11

Re: Automatic actions (Notifications)

Hello,

Have the same problem. My cron stopped to work, notification queue is full of non-sent mails
I used command

"php \var\www\glpi\front\cron.php --force queuednotification"

and got info

0    Action completed, no processing required

.


In AUtomatic action - queuednotification in Logs I see only "Action completed, no processing required"

And also like OP, when I enter Notification queue and when I check all notifications then Actions -> Send all works fine.

Offline

#3 2024-01-24 09:44:28

Odisefs
Member
Registered: 2022-10-18
Posts: 7

Re: Automatic actions (Notifications)

Ok got it working ... In a short backalley street way smile
In the \front directory  I have created a Batch file (yes the good old .bat files ) with the following commands

C:\php\php.exe .\cron.php --force queuednotification
C:\php\php.exe .\cron.php --force mailgate

and then I've created a scheduled task with the following settings :

General : Run whether the user is logged on or not.
Triggers : On a schedule ,DAILY  Starts on 12:00:00 pm  , Recur every: 1 day , Repeat Task every : 2 minutes for 1 day , Enabled
Actions:  Start a program Script <path to the GLPI installation front directory>\autoactions.bat,
                        Start in (optional) <The previous path minus the file name>You MUST set this!..
Settings: Check -> Allow task to be run on demand ,
                                      Run Tastk as soon as possible after a scheduled task is missed,
                                      If the task fails ,restart every , 5 minute,
                                      Attempt to restart every 3 tine
                         Run a new instance in parallel

It goes without saying that the storage path for the .bat file can be anything you like and your security settings allow.
In that case take note to modify the directory for the cron.php file.

I think I've earned my daily bucket of Coffee.....Onwards to Coffee Land ....

Offline

Board footer

Powered by FluxBB