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 2009-01-06 12:19:04

pravinpanday
Member
Registered: 2008-12-30
Posts: 47

mass_ocs_import plugin not working

Hi,

I can import the inventory from OCS manually through GLPI but cannot import it through cron or mass_ocs_import plugin.

I have set the cron to

Number of computers to synchronize using the cron : 10
Devices, Monitors, Printers are set to Global import
Activate the automatic link is set to "yes"

As far as the mass_import plugin is concerned the configuration is below:

Enable logging : yes
Display information if nothing was done : yes
Update information every : 5 machines
Delete processed after 24 hours
Number of seconds between to rereshs of the process page (0 means no refresh) : 10
Machine number of machines to process by thread (0 means no limit) : 0
Default OCS server : myserver
Warn if not imported machines : yes
Number of machines: 5

"Control the OCS import script"
Synchronization locked
Disable Synchronization

Rest everything is working fine in glpi and I can import the cimputers manually and they are visible in Inventory.

Also when I run the run.bat script in plugins directory I get the below error message:

Chemins php et du script a lancer
Definition du path
Le chemin vers run.php est incorrec
Press any key to continue . . .

Please help.

Offline

#2 2009-01-06 15:21:08

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

Re: mass_ocs_import plugin not working

> Number of computers to synchronize using the cron : 10

Should be 0 to use mass_ocs_import

> Synchronization locked

Should be unlocked

> Le chemin vers run.php est incorrec

Should be fixed

++


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

#3 2009-01-06 15:39:00

pravinpanday
Member
Registered: 2008-12-30
Posts: 47

Re: mass_ocs_import plugin not working

> Synchronization locked

Should be unlocked

I meant to say
The status shows Synchronization locked and below disable Synchronization

to unlock it i have to click on "disable Synchronization " Would not this disable the synchronization.

Also I do not what this means "> Le chemin vers run.php est incorrec" means. Can you help me with the meaning and how to fix it.

thanks for the response

Offline

#4 2009-01-06 15:46:41

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

Re: mass_ocs_import plugin not working

"Le chemin vers run.php est incorrec" mean "Path to run.php is not valid"

The run.bat provided is only a template for Windows Users (so more simple under linux)

++


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

#5 2009-01-06 16:03:59

pravinpanday
Member
Registered: 2008-12-30
Posts: 47

Re: mass_ocs_import plugin not working

thanks

I rectified the path in run.bat.  It was set to the default so I changed it to the right path of installation folder of xampp and php and the script now I do not see any error.

However I have this doubt which I asked in my previous reply.

You SAID

((((> Synchronization locked   

Should be unlocked )))))))

I meant to say
The status shows Synchronization locked and below the button says disable Synchronization

to unlock it i have to click on "disable Synchronization " Would not this disable the synchronization.

Please guide what exactly the status should be there.

Offline

#6 2009-01-06 16:19:08

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

Re: mass_ocs_import plugin not working

The text on the button is ok.

There is a translation error in the status field

French :

$OCSMASSIMPORTLANG["config"][9]="Verrouillage désactivé";
$OCSMASSIMPORTLANG["config"][10]="Verrouillage activé";

English :

$OCSMASSIMPORTLANG["config"][9]="Synchronization locked";
$OCSMASSIMPORTLANG["config"][10]="Synchronization unlocked";

Bug opened : https://dev.indepnet.net/plugins/ticket/161

++


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

#7 2009-01-06 16:42:16

pravinpanday
Member
Registered: 2008-12-30
Posts: 47

Re: mass_ocs_import plugin not working

Thanks, Thanks a lot.

Now Just for confirmation.

For me to use the mass import plugin what status it should display as of now considering that the bug issue is there.

Currently I have it like this.

" Synchronization unlocked"

and the button says "Enable Synchronization"

Is this the right setting or I should change it.

Thanks.

Offline

#8 2009-01-06 17:38:05

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

Re: mass_ocs_import plugin not working

Click "Enable Synchronization" as status is false.


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

#9 2009-01-07 07:50:04

pravinpanday
Member
Registered: 2008-12-30
Posts: 47

Re: mass_ocs_import plugin not working

Thanks,

I have done as your said. Will wait and watch and get back to you. Thanks for all the assistance.

Offline

#10 2009-01-07 10:19:39

wawa
GLPI-DEV
From: Montpellier / France
Registered: 2006-07-03
Posts: 6,019
Website

Re: mass_ocs_import plugin not working

Offline

#11 2009-01-07 12:01:15

pravinpanday
Member
Registered: 2008-12-30
Posts: 47

Re: mass_ocs_import plugin not working

Hi,

After rectifying the problem with php path in run.bat there is new issue I am facing

WHen I executed the run.bat file it generated ocsng_fullsync.log file. This log file has

PHP ERROR: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\Program Files\OCS Inventory NG\xampp\htdocs\glpi\inc\dbmysql.class.php at line 160


written everywhere. I do not understand what is this. Also the php-errors.log file refers to the same error.

Please help me get out of this.

Offline

#12 2009-01-07 12:02:43

pravinpanday
Member
Registered: 2008-12-30
Posts: 47

Re: mass_ocs_import plugin not working

Also thanks for fixing that control script status bugs.

Offline

#13 2009-01-07 12:08:06

wawa
GLPI-DEV
From: Montpellier / France
Registered: 2006-07-03
Posts: 6,019
Website

Re: mass_ocs_import plugin not working

can you copy paste the command line you use to lauch the script please ?

Offline

#14 2009-01-07 12:15:39

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

Re: mass_ocs_import plugin not working

And MySQL server version...


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

#15 2009-01-07 12:41:56

pravinpanday
Member
Registered: 2008-12-30
Posts: 47

Re: mass_ocs_import plugin not working

NOTE: I do not run the srcipt through command line.

I go to my plugin folder that is

"C:\Program Files\OCS Inventory NG\xampp\htdocs\glpi\plugins\scripts"

and then I double click the run.bat file. That folder also contains the run.php and other files.

MyQL server version is 5.0.27

Offline

#16 2009-01-07 12:45:22

pravinpanday
Member
Registered: 2008-12-30
Posts: 47

Re: mass_ocs_import plugin not working

When I double click the run.bat I get to see this in command line

Chemins php et du script a lancer
Definition du path
Lancement du script

Offline

#17 2009-01-09 12:43:56

pravinpanday
Member
Registered: 2008-12-30
Posts: 47

Re: mass_ocs_import plugin not working

HI,

Please update. The plugin is still not picking up the machines.

Offline

Board footer

Powered by FluxBB