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

#26 2008-02-25 11:45:10

yvesdm
Member
Registered: 2007-06-27
Posts: 132

Re: ocs auto synchronizing, still not working

remi wrote:

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

#27 2008-02-25 11:49:19

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: ocs auto synchronizing, still not working

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 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

#28 2008-02-25 11:59:37

yvesdm
Member
Registered: 2007-06-27
Posts: 132

Re: ocs auto synchronizing, still not working

remi wrote:
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 synchro

You 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

#29 2008-02-25 12:04:33

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: ocs auto synchronizing, still not working

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

#30 2008-02-25 12:13:51

yvesdm
Member
Registered: 2007-06-27
Posts: 132

Re: ocs auto synchronizing, still not working

remi wrote:

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

#31 2008-05-28 12:07:35

da_yoshman
Member
From: Germany
Registered: 2007-09-27
Posts: 14

Re: ocs auto synchronizing, still not working

Hi,

i installed the mass_import, but have problems running the cronjob sad 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

#32 2008-05-28 13:46:30

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: ocs auto synchronizing, still not working

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

#33 2008-05-28 15:23:16

da_yoshman
Member
From: Germany
Registered: 2007-09-27
Posts: 14

Re: ocs auto synchronizing, still not working

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 smile

Offline

#34 2008-05-28 16:08:37

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: ocs auto synchronizing, still not working

da_yoshman wrote:

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)

da_yoshman wrote:

...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

Board footer

Powered by FluxBB