You are not logged in.
Pages: 1
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
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
Ok got it working ... In a short backalley street way
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
Pages: 1