You are not logged in.
Thanks for the feedback.
I've just update the wiki about plugin update.
++
Maybe I'm inpatient, but so far nothing gets imported.
I've got 32 machines waiting to be updated and "Update informations every" is set to 30 machines.
With what interval runs the cron?
Offline
With what interval runs the cron?
At the interval you want.
You must add an entry in the system crontab an then enable the synchro
You can also check the log (ocsng_fullsync.log)
++
Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/
Offline
yvesdm wrote:With what interval runs the cron?
At the interval you want.
You must add an entry in the system crontab an then enable the synchroYou can also check the log (ocsng_fullsync.log)
++
Ah ok, I thought this was set up autom.aticallywhen installing the plugin.
I've added an hourly crontab to the ocsng_fullsync.sh script, so I guess this will be ok now
kind regards
Yves
Offline
You should run it at least one manualy to check if all is ok.
And remember to run it as "apache" user (not root)
A+
Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/
Offline
You should run it at least one manualy to check if all is ok.
And remember to run it as "apache" user (not root)
A+
Yes of course ;-) tnx
Offline
Hi,
i installed the mass_import, but have problems running the cronjob if i run it manually everything is fine. I test this with the root login. Using the the entry from the faq it creates a permission denied. Then i tried to run the cronjob as a specified user www-data or root, but then i get an entry "/bin/sh: www-data: not found". my crontab looks this --> */5 * * * * www-data /var/www/glpi/plugins/mass_ocs_import/scripts/ocsng_fullsync.sh --thread_nbr=2 --server_id=1
Edit: I think i used the wrong crontab, now i put the entry in /etc/crontab and there i can use usernames for the cronjobs
Last edited by da_yoshman (2008-05-28 12:57:35)
Offline
If you use a user's crontab (using crontab -e) you don't have to specify the user, so
*/5 * * * * /var/www/glpi/plugins/mass_ocs_import/scripts/ocsng_fullsync.sh
You must specify the user if you add a file in /etc/cron.d
*/5 * * * * www-data /var/www/glpi/plugins/mass_ocs_import/scripts/ocsng_fullsync.sh
And I don't think it's a good idea to modify the global cron configuration file (/etc/crontab).
++
Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/
Offline
Hmmm... on my testing machine it now works with the /etc/crontab and as user root. But on my productive system it even doesn't work if i manually run the script --> ...sh: 12: php: not found
PS: i'm still a beginner using linux
Offline
it now works with the /etc/crontab and as user root
Bad idea.
For /etc/crontab (see previous post)
For root : it will create "cache" files that cannot be used/clean by GLPI (in web mode)
...sh: 12: php: not found
Bad PHP installation.
No information about your configuration (OS, version, installation...) no help.
++
Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/
Offline