Skip to main content

Verify that inventory data is being properly uploaded to Medulla

Checks to perform on the client workstation (affected machine)

1) Verify that the inventory has been generated
Please run:
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 generate
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 you figure out how to resolve the error, or you send the command output tosupport@medulla-tech.io

Checks to perform on the Medulla server

3) Verify the URL for transmitting 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 you figure out how to resolve the error, or you send the command output tosupport@medulla-tech.io

4) Check if 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.
=> From Medulla, force a re-registration of the machine via Computers > Quick Action > Custom command > Reconfigure machine agent

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