Skip to main content

Verify that inventory is being properly synced to Medulla

Checks to Perform on the Client Workstation (Affected Machine)

1) Verify that the inventory has been generated correctly
Please run the following command:
dir c:\progra~1\Medulla\tmp\inventory.txt*
If noinventory.txtorinventory.txt.backfile is present, this indicates a problem with inventory generation.

2) Force the inventory to be generated
If the inventory is not generated automatically, please run:
"c:\progra~1\GLPI-Agent\glpi-agent.bat" --config=none --scan-profiles --backend-collect-timeout=120 --local="c:\progra~1\Medulla\tmp\inventory.txt"
This command will return an explicit error if the generation fails.
=> Either figure out how to resolve the error yourself, or send the command output tosupport@medulla-tech.io

Checks to Perform on the Medulla Server

3) Verify the URL used to transmit the inventory to GLPI
Please run:
curl $(crudini --get /etc/pulse-xmpp-agent-substitute/agent_master_substitute_inv.ini.local glpi url_to_forward)
An error here would indicate a configuration issue or a problem with the URL’s accessibility.
=> Either figure out how to resolve the error yourself, or send the command output tosupport@medulla-tech.io

4) Verify that the machine is properly registered in GLPI
Please run the following (replacing the name if necessary):
mysql --defaults-group-suffix=itsm glpi -e "SELECT * FROM glpi_computers WHERE name='CLIENT_WORKSTATION_NAME'\G"
If the query returns no results, the machine has not been registered in GLPI.
=> From Medulla, force an inventory request from the Computers view > Quick Action > Run Inventory for the machine in question

5) Check the machine’s status in the Medulla database
Please run:
mysql --defaults-group-suffix=Medulla xmppmaster -e "SELECT jid, hostname, id_glpi, enabled FROM machines WHERE hostname='CLIENT_WORKSTATION_NAME'\G"
If theid_glpifield is empty, this means that the association between Medulla and the GLPI inventory could not be established.
=> In Medulla, force the machine to be re-registered via the Computers view > Quick Action > Custom command > Reconfigure machine agent

=> If the issue is still not resolved, send the output of all commands tosupport@medulla-tech.io