You are not logged in.
Pages: 1
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
> 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
> 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
"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
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
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
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
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
Thanks,
I have done as your said. Will wait and watch and get back to you. Thanks for all the assistance.
Offline
Offline
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
Also thanks for fixing that control script status bugs.
Offline
can you copy paste the command line you use to lauch the script please ?
Offline
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
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
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
HI,
Please update. The plugin is still not picking up the machines.
Offline
Pages: 1