You are not logged in.
Hello everyone,
I moved my GLPI installation from 9.5.6 with OCSinventory to 10.0.6 with GLPI-Inventory.
I have set up tasks and also receive data, for example from the printers. But the tasks are not started automatically.
With the automatic actions, wakeupAgents is started every 2 minutes, but no action is executed.
I set up an empty installation for testing and connected a computer to this installation. Inventory is reported to this instance. I have also set up a task here and it also starts automatically with the automatic actions and wakupAgents. The executed action is also displayed there.
So I believe I don't have a network connection issue or a permissions issue.
The connection to the agent is displayed in the computer inventory. When I click the request status link, nothing happens. In my test installation, the status was displayed. In the test installation, I was also able to start the inventory via the second link. Nothing happens here either. I can't find anything in the logs either.
But where should I look or what can I check to solve the problem?
PS:Sending the data with curl looks like this...
- works not / agent-id=6 -
curl "http://glpi/ajax/agent.php" -X POST
-H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0"
-H "Accept: application/json, text/javascript, */*; q=0.01"
-H "Accept-Language: de,en-US;q=0.7,en;q=0.3"
-H "Accept-Encoding: gzip, deflate"
-H "Content-Type: application/x-www-form-urlencoded; charset=UTF-8"
-H "X-Glpi-Csrf-Token: e49d28374f5f93a3c300fa8159aa596f13ba3e897780c6eef0753234d47aae90"
-H "X-Requested-With: XMLHttpRequest"
-H "Origin: http://glpi"
-H "Connection: keep-alive"
-H "Referer: http://glpi/front/computer.form.php?id=690"
-H "Cookie: glpi_98f8c01fb4b9b0bd1b2437fc55e255f2=nvftcsuo99kcm0glbqf8gcsvv9;
glpi_98f8c01fb4b9b0bd1b2437fc55e255f2_rememberme=^%^5B10^%^2C^%^22YW2ICOvjCWsbVcWRoWRgPDbDW2I5jCnlZps7XFzR^%^22^%^5D"
--data-raw "action=status&id=6"
{"answer":"Unbekannt"}
- works / agent-id=3 -
curl "http://glpi-test/ajax/agent.php" -X POST
-H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0"
-H "Accept: application/json, text/javascript, */*; q=0.01"
-H "Accept-Language: de,en-US;q=0.7,en;q=0.3"
-H "Accept-Encoding: gzip, deflate"
-H "Content-Type: application/x-www-form-urlencoded; charset=UTF-8"
-H "X-Glpi-Csrf-Token: 6c49b12ed27828a5ee9d1c83fa6889798def0719f95c7c33a896536b1b74c9d5"
-H "X-Requested-With: XMLHttpRequest"
-H "Origin: http://glpi-test"
-H "Connection: keep-alive"
-H "Referer: http://glpi-test/front/computer.form.php?id=1"
-H "Cookie: glpi_ae2ffba5045b9c904e2d92f88b7adef1=c1m453tvgf0btjlhlm2lvuun6m;
glpi_ae2ffba5045b9c904e2d92f88b7adef1_rememberme=^%^5B2^%^2C^%^22EpxqLpvxDbrF5atV6lkqmZjF3ih1xuVFZan7T3FU^%^22^%^5D"
--data-raw "action=status&id=3"
{"answer":"waiting"}
Last edited by edgar.giese (2023-03-13 15:27:22)
Offline