Welcome to Questions - Ask OpenNMS, where you can ask questions and receive answers from other members of the community.

PRIS doesn't bringing all hosts from OCS Inventory

0 votes
40 views
Hello

I have an OCS Inventory already working with about 1100 machines inventoried by client.

Now I'm setting up a OpenNMS instance and PRIS to collect all this machines from OCS and monitor some default  services.

I done the integration and all works great, but I'm not getting all the machines from OCS, just about 800.

I tested the OCS SOAP and all 1100 machines are available on the response.

I don't know what's wrong...

I tried to use other values to source.checksum as the OCS SOAP documentation, but when I do this I get JAVA heap memory error on wget the requisition.

 

Here is my requisition.properties

### SOURCE ###
## connect to a real ocs and read computers
source = ocs.computers

## test with static files, no network calls
#source = ocs.computers.replay
#source.file = computers.xml

## OCS SOURCE PARAMETERS ##
source.url = http://localhost
source.username = SOAP_USER
source.password = SOAPPASS
source.checksum = 4611
source.tags =

### MAPPER ###
## Run the default mapper for computers
mapper = ocs.computers
mapper.ocs.url = https://myserverhostname

## Run a custom mapper script
#mapper = script
#mapper.file = bds-computers.groovy

### CATEGORIES ###
mapper.categoryMap = categorymap.properties
mapper.assetMap =
OpenNMS version
18.0.0
Java version
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
Operating system
Linux Debian 8
PostgreSQL version
psql (PostgreSQL) 9.4.8
asked Jul 7, 2016 by paulobini (220 points)
I think that I found the reason behind it;
I have OCS Inventory as well GLPI, when I make a sync between OCS and GLPI, all hosts synched disappears on the requisition generated by PRIS.
The problem still happening and I don't found a way to solve it...

1 Answer

0 votes
 
Best answer
I found the solution!

I changed the value of the parameter source.checksum from 4611 to 131071 and all the pain are GONE!

I followed the OCS Inventory Webservices documentation:

http://wiki.ocsinventory-ng.org/index.php?title=Developers:Web_services

I believe that checksum 4611 works only with not GLPI integrated OCS;
answered Aug 4, 2016 by paulobini (220 points)
...