Database Inventory With GLPI Agent Not Working As Expected #940
Replies: 13 comments 6 replies
-
Hi @delboy1966 you should probably better use databaseinventory plugin to setup databases credentials. Can you share the result of the following command ?
At least the "content"->"databases_services" node. |
Beta Was this translation helpful? Give feedback.
-
Hi I tried as you suggested and also tried it with glpi-agent and get the same info, it does find the databases but it never updates the Database Instances for the server on glpi.
|
Beta Was this translation helpful? Give feedback.
-
I've tried as you suggested, and even though the output I get back lists all the databases on that server, they still don't get added to the list of Database Instances for that asset in GLPI. |
Beta Was this translation helpful? Give feedback.
-
Any idea why this data isn't going into GLPI even though running glpi-agent with the creds brings back the databases? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Thanks for the prompt reply. I outputted the data to a json file as you suggested and then run the glpi-injector line. The only output i got from the glpi-injector command was Loading ./databases.json...[CE8FE841] [agentid:02c4334f-e13a-4702-80bb-3212a316aa7e] DEBUG: Uncompressing received content Is there anywhere in GLPI that I can look at to see why they didn't get added? |
Beta Was this translation helpful? Give feedback.
-
In answer to your suggestions. Yes there was a databases_services in the json. And I'm getting nothing out of the php-errors.log file whilst I'm doing the import and tailing the log file. |
Beta Was this translation helpful? Give feedback.
-
Hello Yes we have other MySQL servers in GLPI. The databases.json file is attached. Thanks for your help. |
Beta Was this translation helpful? Give feedback.
-
Sorry, I was just signing off for the day and missed that one. GLPI 10.0.18 ( => /var/www/glpi) very strange that its working for you and not for us. Is there something we haven't enabled? |
Beta Was this translation helpful? Give feedback.
-
I'm going to fire up a new box this afternoon, and put a fresh install of GLPI 10.0.18 on it and then the only thing I'm going to try and do is replicate adding that one asset and the assets databases to it. If that works then I can start migrating stuff from our current GLPI server and move to the new one. |
Beta Was this translation helpful? Give feedback.
-
Well that worked ok, So, we now proceeding with using the new GLPI server as our server going forward, as it seems to be working fine now. If you have time to answer a couple of questions please? Can we use the same command line for servers that have mongo databases on them? Or is there a different format for the creds. And do we have to include the creds somewhere in the config for it to import the database instances? Or does it have to be included in the crontab file so it does it every time it runs. Thanks again for your assistance. |
Beta Was this translation helpful? Give feedback.
-
Tried DB inventory on the new GLPI server over the weekend. And it worked, where it didn't on the old POC GLPI server. When I tried the DB Inventory plugin, the MySQL server was sending its data via a GLPI proxy server, and it didn't propogate the DB Intances. Until I pointed the MySQL server directly at the GLPI server. Is this normal, any server we have configures in DB Inventory has to send its data directly to the GLPI server? |
Beta Was this translation helpful? Give feedback.
-
Again, you are correct. I've also noticed that some MSSQL servers and some MySQL servers Database Instances are being populated even though we have not set anything up in the Database Inventory plugin, or run glpi-agent on the Assets with any creds. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Documentation & bug reporting acknowledgment
Not applicable
Describe your problem
I'm trying to get GLPI to inventory Databases on a server, I've started with a MySQL server.
I have the latest version of glpi-agent on the server and run it with the --credentials arguement
But that didn't seem to produce any valid debug.
Bur when I use
i get the following debug output. But never get any population on the Database Instances tab on the Asset in GLPI.
Beta Was this translation helpful? Give feedback.
All reactions